-
Notifications
You must be signed in to change notification settings - Fork 0
/
teacherlab.php
102 lines (90 loc) · 2.58 KB
/
teacherlab.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
<?php
session_start();
$con = mysqli_connect('localhost','root');
if($con){
echo"";
}else{
echo " no connection";
}
mysqli_select_db($con, 'sessionpractical');
$q = " select * from files ";
$result = mysqli_query($con, $q);
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<style type="text/css">
#notification{
background-color: #CFD2CE;
width: 300px;
height:150px;
border-radius: 5px
}
#administrator{
background-color: #CFD2CE;
width: 300px;
height:150px;
border-radius: 5px
}
footer {
background-color:black;
color: white;
padding: 15px;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--<img src="iit logo.png" class="img.circle" height="65" width="65">-->
<ul class="nav navbar-nav">
<li><a href="https://www.iitdh.ac.in/">IIT DHARWAD</a></li>
</ul>
<ul class="nav navbar-nav">
<li><a href="teacher.php">DASHBOARD</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="logout.php"><style="color:red">LOGOUT</style></a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<h2 align="center"><b>Student Assignment Record</b></h2>
<table align="center" class="table">
<t>
<th> ID </th>
<th> Time </th>
<th colspan="2"> Filename </th>
</t>
<?php
while ($row = $result->fetch_assoc()) {
?>
<tr>
<td><?php echo $row['name'] ?></td>
<td><?php echo $row['time'] ?></td>
<td><?php echo $row['filename']; $_SESSION['filename'] = $row['filename']; ?></td>
<td><button class="btn btn-info" onclick="window.location.href='fileopen.php'">Open</button></td>
</tr>
<?php
}
?>
</table>
</div>
<footer class="container-fluid text-center">
<p><a href="teacher.php">GO TO DASHBOARD</p>
</footer>
</body>
</html>