-
Notifications
You must be signed in to change notification settings - Fork 0
/
RankHistory.php
80 lines (59 loc) · 1.93 KB
/
RankHistory.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
<?php
/*if ($_COOKIE[$cookie_type] != "admin") {
header("location: LoginTutor.php");
echo $_COOKIE[$cookie_type] . "aaaaaa";
//exit;
}*/
session_start();
//$_SESSION["loggedin"] !== "tutor";
if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== "admin") {
header("location: LoginTutor.php");
exit;
}
?>
<?php
require_once 'model_z.php';
function fetchAllStudents()
{
return showAllHistory();
}
//echo $_SESSION["loggedin"];
$admin = showAllHistory();
?>
<!DOCTYPE html>
<html>
<title>ALL Admins History</title>
<head>
<link rel="stylesheet" type="text/css" href="css/style_Zahin.css?version=1">
<title></title>
</head>
<body>
<?php
require_once './model_z.php';
?>
<?php include 'headerAdmin.html'; ?>
<h2 class="hAdminsInfo">ALL Rank History </h2>
<table class="tableAdminsInfo">
<thead>
<tr id="trAdminsInfo trAdminsInfo2">
<th class="thAdminsInfo">Updater</th>
<th class="thAdminsInfo">Time</th>
<th class="thAdminsInfo">Name</th>
<th class="thAdminsInfo">Status</th>
</tr>
</thead>
<tbody>
<?php foreach ($admin as $i => $admin) : ?>
<form id="form" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" enctype="multipart/form-data">
<tr id="trAdminsInfo">
<td class="tdAdminsInfo"><?php echo $admin['Updater'] ?></td>
<td class="tdAdminsInfo"><?php echo $admin['Time'] ?></td>
<td class="tdAdminsInfo"><?php echo $admin['Name'] ?></td>
<td class="tdAdminsInfo"><?php echo $admin['Status'] ?></td>
</tr>
</form>
<?php endforeach; ?>
</tbody>
</table>
</body>
</html>