-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarks.php
143 lines (95 loc) · 4.58 KB
/
marks.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
include('session.php');
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<link rel="icon" type="image/x-icon" href="favicon.ico" >
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.8/js/materialize.min.js"></script>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/materialize.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Time Table</title>
</head>
<body style="background-color: rgba(200, 220, 225, 0.9);">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.js"></script>
<!--***************************************************************************-->
<ul id="slide-out" class="side-nav" >
<li><div class="userView">
<div class="background" style="height: 150px;">
<img src="images/galaxy.png">
</div>
<span class="white-text name"><?php echo $_SESSION['name']; ?></span></a>
<span class="white-text email"><?php echo $_SESSION['id']; ?></span></a>
</div></li>
<div style="padding-top: 40px;">
<li ><a href="timetable.php" ><i class="material-icons">schedule</i>Time Table</a></li>
<li class="active"><a href="marks.php"><i class="material-icons">assignment</i>Marks</a></li>
<li><div class="divider"></div></li>
<li><a class="subheader">Others</a></li>
<li><a class="waves-effect" href="#!"><i class="material-icons">account_balance_wallet</i>Fee Calculator</a></li>
<li><a class="waves-effect" href="pswd.php" style="height: 100px;display: inline-block;"><i class=" material-icons" style="margin-top: 25px;">security</i>Change Password and Profile Pic</a></li>
</div>
</ul>
<!--***************************************************************************-->
<ul id="notifications" class="dropdown-content" style="width: auto;margin-top: 70px; ">
<?php
$sql1 = "SELECT * FROM notif where id = ".$user_check." ORDER BY date DESC;";
$result1 = mysqli_query($db,$sql1);
if (mysqli_num_rows($result1) > 0) {
// output data of each row
while($row1 = mysqli_fetch_assoc($result1)) {
echo "<li>".'<a href="#!" >'.$row1['notifications']."</li>";
echo "<li class='divider'></li>";
}
}
else {
echo '<li>'."No recent Notifications".'</li>';
echo "<li class='divider'></li>";
}
?>
<!-- <li><a href="#!" style="width: auto;">one is a test case</a></li>
<li class="divider"></li>
<li><a href="#!">two</a></li>
<li class="divider"></li>
<li><a href="#!">three</a></li> -->
</ul>
<div class="navbar-fixed">
<nav class="nav-extended">
<div class="nav-wrapper">
<a href="#" data-activates="slide-out" class="button-collapse show-on-large">Menu<i class="material-icons left">menu</i></a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a class="dropdown-button" href="#!" data-activates="notifications">Notifications<i class="material-icons right">arrow_drop_down</i></a></li>
<li><a href="welcome.php" ><i class="material-icons left">account_circle</i>Home</a></li>
<li><a href="logout.php"><i class="material-icons left">power_settings_new</i>Log Out</a></li>
</ul>
</div>
</nav>
</div>
<div class="container">
<div class="row">
<h1 style="text-align: center;">Marks</h1>
<div class="col l12 pull-l2 " style="margin-left: 180px;margin-top: 20px;">
<table border="2" cellspacing="10" align="center" class="bordered striped" >
<thead>
<tr >
<th data-field="id"><strong>Subject</strong></th>
<th data-field="id"><strong>Mid term 1</strong></th>
<th data-field="id"><strong>Mid term 2</strong></th>
<th data-field="id"><strong>Final</strong></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>