-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_dashboard.php
130 lines (106 loc) · 5.39 KB
/
admin_dashboard.php
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
<?php
require_once('header.php');
?>
<h1 class="font-weight-bold">Reception List</h1>
<table class="table">
<thead class="thead-dark">
<tr>
<th><h5><small>First Name</small></h5></th>
<th><h5><small>Last Name</small></h5></th>
<th><h5><small>Email Address</small></h5></th>
<th><h5><small>Id Number</small></h5></th>
<th><h5><small>Address</small></h5></th>
<th><h5><small>City</small></h5></th>
<th><h5><small>DOB</small></h5></th>
<th><h5><small>Telephone Number</small></h5></th>
<th><h5><small>Last Login</small></h5></th>
</tr>
</thead>
<tbody>
<?php
//getting the list of users
$query = "SELECT * FROM admin_db WHERE User_Delete=0 ORDER BY First_Name";
$users = mysqli_query($connection, $query);
while ($user = mysqli_fetch_assoc($users)) {
?>
<tr>
<td><h6><small><?php echo $user['First_Name'] ?></small></h6></td>
<td><h6><small><?php echo $user['Last_name'] ?></small></h6></td>
<td><h6><small><?php echo $user['User_Name'] ?></small></h6></td>
<td><h6><small><?php echo $user['ID_Number'] ?></small></h6></td>
<td><h6><small><?php echo $user['Address'] ?></small></h6></td>
<td><h6><small><?php echo $user['City'] ?></small></h6></td>
<td><h6><small><?php echo $user['DOB'] ?></small></h6></td>
<td><h6><small><?php echo $user['Telephone_Number'] ?></small></h6></td>
<td><h6><small><?php echo $user['Last_Login'] ?></small></h6></td>
</tr>
<?php } ?>
</tbody>
</table>
<br>
<hr class="bg-danger">
<h1 class="font-weight-bold">Doctor List</h1>
<table class="table">
<thead class="thead-dark">
<tr>
<th><h5><small>First Name</small></h5></th>
<th><h5><small>Last Name</small></h5></th>
<th><h5><small>Email Address</small></h5></th>
<th><h5><small>Doctor Speciality</small></h5></th>
<th><h5><small>Id Number</small></h5></th>
<th><h5><small>Telephone Number</small></h5></th>
<th><h5><small>Last Login</small></h5></th>
</tr>
</thead>
<tbody>
<?php
//getting the list of users
$query = "SELECT * FROM doctor_db WHERE User_Delete=0 ORDER BY First_Name";
$users = mysqli_query($connection, $query);
while ($user = mysqli_fetch_assoc($users)) {
?>
<tr>
<td><h6><small>Dr.<?php echo $user['First_Name'] ?></small></h6></td>
<td><h6><small><?php echo $user['Last_Name'] ?></small></h6></td>
<td><h6><small><?php echo $user['Email'] ?></small></h6></td>
<td><h6><small><?php echo $user['Doctor_Speciality'] ?></small></h6></td>
<td><h6><small><?php echo $user['ID_Number'] ?></small></h6></td>
<td><h6><small><?php echo $user['Telephone_Number'] ?></small></h6></td>
<td><h6><small><?php echo $user['Last_Login'] ?></small></h6></td>
</tr>
<?php } ?>
</tbody>
</table>
<br>
<hr class="bg-danger">
<h1 class="font-weight-bold">Paction List</h1>
<table class="table">
<thead class="thead-dark">
<tr>
<th><h5><small>First Name</small></h5></th>
<th><h5><small>Last Name</small></h5></th>
<th><h5><small>Email Address</small></h5></th>
<th><h5><small>DOB</small></h5></th>
<th><h5><small>Telephone Number</small></h5></th>
<th><h5><small>Last Login</small></h5></th>
</tr>
</thead>
<tbody>
<?php
//getting the list of users
$query = "SELECT * FROM paction_db WHERE User_Delete=0 ORDER BY First_Name";
$users = mysqli_query($connection, $query);
while ($user = mysqli_fetch_assoc($users)) {
?>
<tr>
<td><h6><small><?php echo $user['First_Name'] ?></small></h6></td>
<td><h6><small><?php echo $user['Last_Name'] ?></small></h6></td>
<td><h6><small><?php echo $user['User_Name'] ?></small></h6></td>
<td><h6><small><?php echo $user['DOB'] ?></small></h6></td>
<td><h6><small><?php echo $user['Telephone_Number'] ?></small></h6></td>
<td><h6><small><?php echo $user['Last_Login'] ?></small></h6></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php require_once('footer.php'); ?>