-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.php
216 lines (215 loc) · 8.54 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?php
include("header.php");
if(!isset($_SESSION[user_id]))
{
echo "<script>window.location=userlogin.php;</script>";
}
?>
<section id="contentSection">
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-8">
<div class="left_content">
<div class="contact_area">
<h2>Dashboard</h2>
<ul class="spost_nav">
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/chat.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title"> Number of Chat records<br />
<h2>
<?php
$sql = "SELECT * FROM chat";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/chatmsg.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of Chat Message records<br/>
<h2>
<?php
$sql= "SELECT * FROM chat_message";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/course.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of Course records<br/>
<h2>
<?php
$sql= "SELECT * FROM course";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
<h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/discussion.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of discussion records<br/>
<h2>
<?php
$sql= "SELECT * FROM discussion";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/disrply.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of discussion reply records<br/>
<h2>
<?php
$sql= "SELECT * FROM discussion_reply";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/grpchat.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of group chat records<br/>
<h2>
<?php
$sql= "SELECT * FROM group_chat";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/notice.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of notice records<br/>
<h2>
<?php
$sql= "SELECT * FROM notice";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/question.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of question records<br/>
<h2>
<?php
$sql= "SELECT * FROM question";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/quiz.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of quiz records<br/>
<h2>
<?php
$sql= "SELECT * FROM quiz";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/quizres.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of quiz result records<br/>
<h2>
<?php
$sql= "SELECT * FROM quiz_result";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/student.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of student records<br/>
<h2>
<?php
$sql= "SELECT * FROM student";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/studymat.png"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of study material records<br/>
<h2>
<?php
$sql= "SELECT * FROM study_material";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/subject.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of subject records<br/>
<h2>
<?php
$sql= "SELECT * FROM subject";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/timeline.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of timeline records<br/>
<h2>
<?php
$sql= "SELECT * FROM timeline";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/tlcomment.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of timeline comments records<br/>
<h2>
<?php
$sql= "SELECT * FROM timeline_comments";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
<li>
<div class="media wow fadeInDown"> <a href="#" class="media-left"> <img alt="" src="images/user.jpg"> </a>
<div class="media-body"> <a href="#" class="catg_title">Number of user records<br/>
<h2>
<?php
$sql= "SELECT * FROM user";
$qsql= mysqli_query($con,$sql);
echo mysqli_num_rows($qsql);
?>
</h2></a> </div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<?php
include("footer.php")
?>