-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstaff.php
More file actions
157 lines (129 loc) · 3.66 KB
/
staff.php
File metadata and controls
157 lines (129 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php
require_once 'includes\dbh.inc.php';
?>
<html>
<head>
<!--boostrap-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<title>Staff</title>
<style>
.staff {
width: 100%;
justify-content: space-between;
background-size: cover;
background-position: cover;
display: flex;
align-items: center;
background-color: white;
padding: 30px 10%;
}
.details {
max-width: 700px;
}
.details h3 {
font-size: 32px;
font-weight: 700;
color: black;
}
.details h1 {
font-size: 50px;
font-weight: 700;
color: black;
}
span {
color: orange;
}
.details p {
display: inline;
justify-content: space-between;
align-items: center;
width: 40px;
font-size: 20px;
color: gray;
text-decoration: none;
margin: 30px 15px 30px 0;
}
.profilepic {
right: 100px;
width: 280px;
height: 280px;
border-radius: 50%;
border: 1px solid orange;
border-color: orange;
overflow: hidden;
}
.profilepic img {
width: 100%;
height: 100%;
object-fit: cover;
}
html {
scroll-behavior: smooth;
}
/*---------Button-----------*/
#staff-btn {
background-color: black;
border: 2px solid white;
border-radius: 10px;
color: white;
font-size: 15px;
font-weight: bold;
padding: 10px 25px;
float: right;
margin-top: 50px;
margin-right: 50px;
}
#staff-btn:hover {
color: orange;
border-color: orange;
box-shadow: 0px 0px 12px orange;
}
</style>
</head>
<body>
<button id = "staff-btn" type="button" onclick="openPopup()">Staff Login</button>
<?php
include_once 'admin.login.form.php';
?>
<?php
$sql = "SELECT * FROM admins";
$result = mysqli_query($conn, $sql);
if ($result) {
if (mysqli_num_rows ($result)>0) {
while ($row = mysqli_fetch_assoc ($result)) {
echo '<div class = "staff">
<div class = "details">
<h3>Hi Everyone !</h3>
<h1>I am <span>'.$row['adminsName'].'</span></h1>
<h3>'.$row['adminsPosition'].'</h3>
<p>'.$row['adminsAbout'].'</p>
</div>
<div class = "profilepic">
<img src="Image/admins.profile.pic/'.$row['adminsPic'].'">
</div>
</div>';
}
}
else {
echo '<thead>
<tr>
<td style="color: orange; font-weight: bold;">No results found</td>
</tr>
</thead>';
}
}
?>
<!--...................................................................
..................................Footer...............................
....................................................................-->
<?php
include_once 'Footer/footer.php';
?>
</body>
</html>