-
Notifications
You must be signed in to change notification settings - Fork 1
/
view_todays.php
188 lines (145 loc) · 4.61 KB
/
view_todays.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?php
session_start();
include "db_conn.php";
date_default_timezone_set("Asia/Calcutta");
$date=date('d-M-y');
?>
<!DOCTYPE html>
<html>
<head>
<title>HOME</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
background-color: rgba(24, 146, 89, 0.8);
background-repeat: repeat-y;
}
#header {
display: inline-flex;
color: aliceblue;
padding: 8px;
margin-left: 8px;
}
#container {
background-color: rgb(249, 251, 253, .5);
position: static;
align-self: center;
width: 82%;
margin-left: 5%;
height: max-content;
border-radius: 8px;
box-shadow: 2px 2px rgb(97, 86, 86);
padding: 4%;
}
#student {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#student td,#student th {
border: 1px solid #ddd;
padding: 8px;
text-align: center;
}
#student tr:nth-child(even) {
background-color: #ddd;
}
#student th {
padding-top: 12px;
padding-bottom: 12px;
background-color: #04AA6D;
color: white;
}
.right_nav{
position: relative;
}
#navr{
font-size: x-large;
margin-bottom: 30px;
color: #f2f2f2;
text-decoration: underline;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
float:right;
padding: 8px;
}
.nav_div {
overflow: hidden;
width: fit-content;
float: right;
margin-top: -30px;
margin-right: 80px;
left: 800px;
}
</style>
<body>
<div class="right_nav">
<h1 id="header">vardhaman college of engineering</h1><br>
<h1 id="header">STUDENT ATTENDENCE OF CSE-D</h1>
<div class="nav_div">
<a href="logout.php"><p id="navr">Logout</p></a>
</div>
</div>
<div id="container">
<h1>Today's classes : </h1>
<?php
$select_stmt = "select * from sub_topic where DAY='${date}'";
$stid = oci_parse($conn, $select_stmt);
oci_execute($stid);
echo "<table border='1' id='student'>\n";
echo "<tr>\n";
echo "<th>".'DATE'." </th>\n";
echo "<th>". 'HOUR' . "</th>\n";
echo "<th>". 'SUBJECT' . "</th>\n";
echo "<th>". 'TOPIC' . "</th>\n";
echo "</tr>\n";
while ($row = oci_fetch_assoc($stid)) {
echo "<tr>\n";
echo "<td>". $row["DAY"] . "</td>\n";
echo "<td>". $row["HOUR"] . "</td>\n";
echo "<td>". $row["SUBJECT"] . "</td>\n";
echo "<td>". $row["TOPIC"] . "</td>\n";
echo "</tr>\n";
}
echo "</table><br><br>\n";
?>
<h1>Total student's attendence today : </h1>
<?php
$select_stmt = "select * from csed where DAY='${date}'";
$stid = oci_parse($conn, $select_stmt);
oci_execute($stid);
echo "<table border='1' id='student'>\n";
echo "<tr>\n";
echo "<th>".'DATE'." </th>\n";
echo "<th>".'ROLL NO'." </th>\n";
echo "<th>". 'HOUR1' . "</th>\n";
echo "<th>". 'HOUR2' . "</th>\n";
echo "<th>". 'HOUR3' . "</th>\n";
echo "<th>". 'HOUR4' . "</th>\n";
echo "<th>". 'HOUR5' . "</th>\n";
echo "<th>". 'HOUR6' . "</th>\n";
echo "<th>". 'HOUR7' . "</th>\n";
echo "</tr>\n";
while ($row = oci_fetch_assoc($stid)) {
echo "<tr>\n";
echo "<td>". $row["DAY"] . "</td>\n";
echo "<td>". $row["ROLL_NO"] . "</td>\n";
echo "<td>". $row["HOUR1"] . "</td>\n";
echo "<td>". $row["HOUR2"] . "</td>\n";
echo "<td>". $row["HOUR3"] . "</td>\n";
echo "<td>". $row["HOUR4"] . "</td>\n";
echo "<td>". $row["HOUR5"] . "</td>\n";
echo "<td>". $row["HOUR6"] . "</td>\n";
echo "<td>". $row["HOUR7"] . "</td>\n";
echo "</tr>\n";
}
echo "</table>\n";
?>
</div>
</body>
</head>
</html>