-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminlist.php
92 lines (66 loc) · 3.92 KB
/
adminlist.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
<?php
include("student.php");
$Query="SELECT * from chats where too = '$_SESSION[admin]' and status = 'offline' order by timemsg DESC";
$dbresult=mysql_query($Query);
$s=0;
if(mysql_num_rows($dbresult) >0)
{ echo "<div class='fixed'><div class='title' align='center'>LATEST NOTICE OR MESSAGE TO YOU</div><div class='content'>";
while($row=mysql_fetch_row($dbresult))
{
if($s!==5)
{ echo "<div class='menu'><a href= '/notice.php?n=$row[2]&ti=$row[6]'>$row[2]    FROM $row[1]</a>"."</div>";
$s++;
}
} echo "</div></div>";
}
else
{
}
?>
<?php
include("student.php");
$Query="SELECT * from uploads where semester LIKE '%ADMIN%' order by uptime DESC";
$dbresult=mysql_query($Query);
$s=0;
if(mysql_num_rows($dbresult) >0)
{ echo "<div class='fixed'><div class='title' align='center'>LATEST ADMIN UPLOADED FILES TO ADMIN</div><div class='content'>";
while($row=mysql_fetch_row($dbresult))
{
if($s!==4)
{ echo "<div class='menu'>File Name : "."$row[0]"."    UPLOADED ON :'$row[6]'<br>UPLOADED '$row[5]':-'$row[4]'"."</div>";
echo "<div class='menu'>"."  <a href ='$row[3]'download>CLICK HERE TO DOWNLOAD $row[0]</a>"."</div>";
$s++;
}
}
}
else
{
}
?>
<?php
include("student.php");
$Query="SELECT * from uploads where uploaded_in='admin' and semester='ALL' order by uptime DESC";
$dbresult=mysql_query($Query);
$s=0;
if(mysql_num_rows($dbresult) >0)
{ echo "<div class='fixed'><div class='title' align='center'>LATEST ADMIN UPLOADED FILES TO ALL</div><div class='content'>";
while($row=mysql_fetch_row($dbresult))
{
if($s!==2)
{ echo "<div class='menu'>File Name : "."$row[0]"."    UPLOADED ON :'$row[6]'<br>UPLOADED '$row[5]':-'$row[4]'"."</div>";
echo "<div class='menu'>"."  <a href ='$row[3]'download>CLICK HERE TO DOWNLOAD $row[0]</a>"."</div>";
$s++;
}
}
}
else
{
}
?>
<div class="fixed"><div class="title" align="center">Select Categories</div><div class="content"><div class='menu'>∆<a href='/editadmindata.php'> Edit My Profile</a></div><div class='menu'>∆<a href='/regadmin.php'> Add New Admin</a></div></div></div>
<div class="fixed"><div class="title" align="center">Uploads</div><div class="content"><div class='menu'>∆<a href='/uploadfile.php'> New Upload</a></div><div class='menu'>∆<a href='/deletefile.php'> Delete Uploaded file </a></div><div class='menu'>∆<a href='/viewfile.php'> View All Uploaded file </a></div><div class='menu'>∆<a href='/uploadmsg.php'> Send Individual Notice,File or message </a></div></div></div>
<?php
include("msglist.php");
?>
<div class="fixed"><div class="title" align="center">Teacher's Area</div><div class="content"><div class='menu'>∆<a href='regteacher.php'> Add new teacher</a></div><div class='menu'>∆<a href='updateteachert.php'> Update Teacher</a></div><div class='menu'>∆<a href='deleteteachertt.php'> Delete Teacher</a></div><div class='menu'>∆<a href='searchnamet.php'> Search Teachers</a></div><div class='menu'>∆<a href='depwise.php'> Department Wise Teachers List</a></div></div></div>
<div class="fixed"><div class="title" align="center">Student Area</div><div class="content"><div class='menu'>∆<a href='insertstudent.php'> Add new student</a></div><div class='menu'>∆<a href='updateadmin.php'> Update Student</a></div><div class='menu'>∆<a href='deleteadmin.php'> Delete Student</a></div><div class='menu'>∆<a href='searchname.php'> Search Student</a></div><div class='menu'>∆<a href='classwise.php'> Class Wise Student List</a></div></div></div>