-
Notifications
You must be signed in to change notification settings - Fork 0
/
lesson.php
100 lines (93 loc) · 4.16 KB
/
lesson.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
<?php
session_start();
if(!isset($_SESSION["stu_id"])){
header("Location: /login.php");
die();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>The Judge: Lesson</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<link rel="stylesheet" href="css/bsadmin.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/jq-3.3.1/dt-1.10.18/r-2.2.2/datatables.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
crossorigin="anonymous">
</head>
<body>
<nav class="navbar navbar-expand navbar-dark bg-success">
<a class="sidebar-toggle text-light mr-3">
<i class="fa fa-bars"></i>
</a>
<a class="navbar-brand" href="#">
<i class="fa fa-code-branch"></i> The Judge</a>
<div class="navbar-collapse collapse">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="profile-link" data-toggle="dropdown">
<i class="fa fa-address-card"></i>
<?php echo $_SESSION["stu_name"]; ?>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="profile-link">
<a class="dropdown-item" href="#">My Profile</a>
<form id="logout_form" method="POST">
<button type="submit" class="dropdown-item">Logout</a>
</form>
</div>
</li>
</ul>
</div>
</nav>
<div class="d-flex">
<nav class="sidebar bg-dark">
<ul class="list-unstyled">
<li class="active">
<a href="/the_judge/dashboard.php">
<i class="fas fa-heartbeat"></i> Dashboard</a>
</li>
<li>
<a href="/the_judge/lesson.php">
<i class="fas fa-book"></i> Judge Lesson</a>
</li>
<li>
<a href="/the_judge/problem.php">
<i class="fas fa-balance-scale"></i> Judge Exercise</a>
</li>
<li>
<a href="/the_judge/submit_history.php">
<i class="fas fa-check-circle"></i> Your Submit History</a>
</li>
</ul>
</nav>
<div class="content p-4">
<h1>The Judge Lesson</h1>
<table id="lesson" class="table table-striped table-bordered dt-responsive"" width=" 100%" cellspacing="0">
<thead>
<tr>
<th>Lesson</th>
<th>Detail</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="
anonymous "></script>
<script src="js/bsadmin.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/jq-3.3.1/dt-1.10.18/r-2.2.2/datatables.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="js/lesson.js"></script>
</body>
</html>