-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminaccount.php
96 lines (87 loc) · 3.23 KB
/
adminaccount.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
<?php
include("adheader.php");
include("dbconnection.php");
session_start();
if(!isset($_SESSION['adminid'])){
echo "<script>window.location='adminlogin.php';</script>";
}
if(!isset($_SESSION['adminid'])){
echo "<script>window.location='adminlogin.php';</script>";
}
?>
<div class="container-fluid">
<div class="block-header">
<h2>Dashboard</h2>
<small class="text-muted">Welcome to Admin Panel</small>
</div>
<div class="row clearfix">
<div class="col-lg-3 col-md-3 col-sm-6">
<div class="info-box-4 hover-zoom-effect">
<div class="icon"> <i class="zmdi zmdi-male-female col-blush"></i> </div>
<div class="content">
<div class="text">Total Patient</div>
<div class="number">
<?php
$sql = "SELECT * FROM patient WHERE status='Active'";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6">
<div class="info-box-4 hover-zoom-effect">
<div class="icon"> <i class="zmdi zmdi-account-circle col-cyan"></i> </div>
<div class="content">
<div class="text">Total Doctor </div>
<div class="number">
<?php
$sql = "SELECT * FROM doctor WHERE status='Active' ";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6">
<div class="info-box-4 hover-zoom-effect">
<div class="icon"> <i class="zmdi zmdi-account-box-mail col-blue"></i> </div>
<div class="content">
<div class="text">Total Administrator</div>
<div class="number">
<?php
$sql = "SELECT * FROM admin WHERE status='Active'";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6">
<div class="info-box-4 hover-zoom-effect">
<div class="icon" > <i class="zmdi zmdi-money col-green" ></i> </div>
<div class="content">
<div class="text">Hospital Earning</div>
<div class="number">₹
<?php
$sql = "SELECT sum(bill_amount) as total FROM `billing_records` ";
$qsql = mysqli_query($con,$sql);
while ($row = mysqli_fetch_assoc($qsql))
{
echo $row['total'];
}
?>
</div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?php
include("adfooter.php");
?>