-
Notifications
You must be signed in to change notification settings - Fork 4
/
doctor_dashboard.php
154 lines (102 loc) · 3.24 KB
/
doctor_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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<head>
<title>Doctor Dashboard | Healing Infirmary</title>
<link rel="icon" href="assets/img/mlogo.png">
</head>
<?php
session_start();
require_once('sql.php');
$_SESSION['email'];
$eamil=$_SESSION['email'];
$result = mysqli_query($conn,"SELECT * FROM doctor_reg Where email='$eamil'");
if (mysqli_num_rows($result) > 0) {
$i=0;
$row = mysqli_fetch_array($result);
}
else{
echo "No result found";
}
include_once('include/header.php');
include_once('include/Doctor-sidebar.php');
?>
//========================================================================================================
<?php
session_start();
include_once('include/conn.php');
include_once('sql.php');
$_SESSION['email'];
$eamil=$_SESSION['email'];
$result = mysqli_query($conn,"SELECT * FROM admin_registration Where email='$eamil'");
if (mysqli_num_rows($result) > 0) {
$i=0;
$row = mysqli_fetch_array($result);
}
else{
echo "No result found";
}
if(strlen($_SESSION['email'])==0)
{
header('location:login.php');
}
else{
?>
<main class="app-content">
<div class="app-title">
<div>
<h1><i class="fa fa-dashboard"></i> Doctor Dashboard</h1>
</div>
</div>
<div class="row">
<div class="col-md-5 col-lg-4">
<div class="widget-small primary coloured-icon"> <i class="icon fa fa-users fa-3x"> </i>
<div class="info">
<h4>Todays Appointment</h4>
<p><b>
<?php
$admin=$dbh->prepare("SELECT count(id) FROM appointment_req");
$admin->execute();
$adminrow = $admin->fetch(PDO::FETCH_NUM);
$admincount = $adminrow[0];
echo $admincount;
?>
</b></p>
</div>
</div>
</div>
<div class="col-md-5 col-lg-4">
<div class="widget-small info coloured-icon"><i class=" icon fa fa-user-md"> </i>
<div class="info">
<h4>Approve Apointment</h4>
<p><b>
<?php
$admin=$dbh->prepare("SELECT count(id) FROM apporved_appointment");
$admin->execute();
$adminrow = $admin->fetch(PDO::FETCH_NUM);
$admincount = $adminrow[0];
echo $admincount;
?>
</b></p>
</div>
</div>
</div>
<div class="col-md-5 col-lg-4">
<div class="widget-small warning coloured-icon"><i class="icon fa fa-bed" aria-hidden="true"></i>
<div class="info">
<h4>Users</h4>
<p><b>
<?php
$admin=$dbh->prepare("SELECT count(id) FROM users");
$admin->execute();
$adminrow = $admin->fetch(PDO::FETCH_NUM);
$admincount = $adminrow[0];
echo $admincount;
?>
</b></p>
</div>
</div>
</div>
</main>
<?php
include_once('include/footer.php');
include_once('include/Hfooter.php');
}
?>