-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamTimetable.php
38 lines (38 loc) · 1.56 KB
/
examTimetable.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
<?php $child = 'exam'; $page = 'Timetable'; include 'menu.php' ?>
<nav class="nav-wraper teal accent-5" style="position:sticky;top:0px;z-index:9;">
<div class="container flow-text center ">
<i class="fa bar fa-bars left" style="padding-top:15px;margin-left:-10px;cursor:pointer;"></i>
<span class="flow-text">My Exam Timetable</span>
<?php
if($_SESSION['userType'] == 'teacher'){
$time=mysqli_query($pcon,"SELECT * FROM teacher WHERE username='$user'");
$timeState=mysqli_fetch_assoc($time);
$diV=$timeState['showTime'];
if($diV == 'checked'){
echo '<div class="timeStamp right"></div>';
}
}elseif($_SESSION['userType'] == 'student'){
$time=mysqli_query($pcon,"SELECT * FROM studentinfo WHERE username='$user'");
$timeState=mysqli_fetch_assoc($time);
$diV=$timeState['showTime'];
if($diV == 'checked'){
echo '<div class="timeStamp right"></div>';
}
}elseif($_SESSION['userType'] == 'parent'){
$time=mysqli_query($pcon,"SELECT * FROM parentinfo WHERE username='$user'");
$timeState=mysqli_fetch_assoc($time);
$diV=$timeState['showTime'];
if($diV == 'checked'){
echo '<div class="timeStamp right"></div>';
}
}else{
$time=mysqli_query($pcon,"SELECT * FROM teacher WHERE username='$user'");
$timeState=mysqli_fetch_assoc($time);
$diV=$timeState['showTime'];
if($diV == 'checked'){
echo '<div class="timeStamp right"></div>';
}
}
?>
</div>
</nav>