-
Notifications
You must be signed in to change notification settings - Fork 1
/
dashboard.php
169 lines (132 loc) · 2.94 KB
/
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
include("header.php");
if(!isset($_SESSION[staff_id]))
{
echo "<script>window.location=index.php;</script>";
}
?>
</header>
<div id="about" class="section">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="section-title">
<center><h2 class="title">DASHBOARD</h2></center>
</div>
</div>
</div>
</div>
</div>
<div id="numbers" class="section">
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-6">
<div class="number">
<img src="img/alubm.jpg" style="width:100%;height: 150px;">
<h3>
<?php
$sql ="SELECT * FROM album";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h3>
<span>Album Records</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="number">
<img src="img/appointment.jpg" style="width:100%;height: 150px;">
<h3>
<?php
$sql ="SELECT * FROM appointment";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h3>
<span>appointment Records</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="number">
<img src="img/donor.jpg" style="width:100%;height: 150px;">
<h3>
<?php
$sql ="SELECT * FROM donor";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h3>
<span>donor Records</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="number">
<img src="img/food donation.jpg" style="width:100%;height: 150px;">
<h3>
<?php
$sql ="SELECT * FROM food_donor";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h3>
<span>food donor Records</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="number">
<img src="img/fund1.jpg" style="width:100%;height: 150px;">
<h3>
<?php
$sql ="SELECT * FROM fund_raiser";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h3>
<span>fund raiser Records</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="number">
<img src="img/fundcollect.jpg" style="width:100%;height: 150px;">
<h3>
<?php
$sql ="SELECT * FROM fund_collection ";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h3>
<span>Fund collection donor Records</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="number">
<img src="img/member_type.jpg" style="width:100%;height: 150px;">
<h3>
<?php
$sql ="SELECT * FROM member_type ";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h3>
<span>Member type Records</span>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="number">
<img src="img/staff.jpg" style="width:100%;height: 150px;">
<h3>
<?php
$sql ="SELECT * FROM staff ";
$qsql = mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h3>
<span>staff Records</span>
</div>
</div>
</div>
</div>
</div>
<?php
include("footer.php");
?>