-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchoice.php
73 lines (56 loc) · 2.04 KB
/
choice.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
<?php
include_once 'includes/db_connect.php';
include_once 'includes/functions.php';
sec_session_start();
include_once 'includes/classlist.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Kaushik">
<link rel="shortcut icon" href="images/experiments.ico">
<title>Jumbotron - Choice</title>
<!-- Bootstrap core CSS -->
<link href="../css/bootstrap.css" rel="stylesheet">
</head>
<body>
<?php if (login_check($mysqli) == true) : ?>
<a class="pull-right" href="includes/logout.php">LogOut </a>
<!-- <br/><br/><br/><br/><br/> -->
<center><h3> Good to see you, <?php echo htmlentities($_SESSION['user_name']); ?>!</h3></center>
<br/>
<h4 class="text-muted"><center>Please choose an option</center></h4>
<div class="well" style="max-width: 400px; margin: 0 auto 10px;">
<a href="create.php" class="btn btn-primary btn-lg btn-block">
Create Class
</a>
<br/>
<a href="joinclass.php" class="btn btn-success btn-lg btn-block">
Join Class
</a>
</div>
<br/><br/>
<div class="col-md-4 col-md-offset-1">
<h4> <center>Classes By YOU</center> </h4>
<?php myclasslist() ?>
</div>
<div class="col-md-4 col-md-offset-1">
<h4><center>Attended Classes</center></h4>
<?php attendedclass() ?>
</div>
<?php else : ?>
<script>
window.alert("You are not authorized to access this page.\n\n\t\t\tPlease LogIn");
window.location.href='index.php';
</script>
<?php endif; ?>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/docs.js"></script>
</body>
</html>