-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_sem2_hvpe.php
71 lines (52 loc) · 1.37 KB
/
admin_sem2_hvpe.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
<html>
<head>
<title>viewing HUMAN ETHICS(HVPE) files</title>
<style>
*{
background-color:a4ebf3;
}
table
{
width:60%;
border-collapse:collapse;
margin: 100px auto;
}
th,td
{
height: 50px;
vertical-align:center;
border:2px solid grey;
}
table th{
font-size:20px;
}
table tbody{
text-align:center;
}
</style>
</head>
<body>
<?php
$conn = mysqli_connect("localhost","root","","project");
$sql = "SELECT * FROM sem2 WHERE Subject='hvpe' ";
$res = mysqli_query($conn,$sql);
$files_array = mysqli_fetch_all($res,MYSQLI_ASSOC);
?>
<table>
<thead>
<th>Filename</th>
<th>Size</th>
<th>Action </th>
<thead>
<tbody>
<?php foreach($files_array as $f) :?>
<tr>
<td><?php echo $f['Name'];?></td>
<td><?php echo round($f['Size']/1024,2) ."KB";?></td>
<td><a href="admin_sem2_hvpe_download.php?file=<?php echo $f['Name'] ?>">Download</a></td>
<tr>
<?php endforeach; ?>
</tbody>
</table>
</body>
</html>