-
Notifications
You must be signed in to change notification settings - Fork 0
/
course_page.php
71 lines (48 loc) · 1.76 KB
/
course_page.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
<!DOCTYPE html>
<html lang="en">
<!-- dynamically generates a table of links -->
<?php
$course = $_SERVER['QUERY_STRING'];
include 'list_files.php';
?>
<head>
<style>
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: orange;
color: white;
text-align: center;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>IITP Notes Archive</h1>
<table>
<tr><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
<tr><th colspan="5"><hr></th></tr>
<tr><td valign="top"><img src="/icons/back.gif" alt="[PARENTDIR]"></td><td><a href="/">Parent Directory</a> </td><td> </td><td align="right"> - </td><td> </td></tr><tr><th colspan="5"><hr></th></tr>
<?php echo $list; ?>
</table>
<ul id="files"> <?php echo $uploaded_files; ?> </ul>
<div id="container">
<h3>Upload your notes and slides here</h3>
<fieldset>
<legend>MAX_FILE_SIZE=20Mb</legend>
<form method="post" action= "upload.php" enctype="multipart/form-data">
<input type="hidden" name="course_name" value="<?php echo $course ; ?>" />
<input type="hidden" name="maxfilesize" value="21000000" />
<p><label for="name">Select file</label><br />
<input type="file" name="file"/></p>
<p><input type="submit" name="submit" value="Start upload" /></p>
</form>
</fieldset>
</div>
<footer class="footer">Produced by <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">Naren Nath</a> and <a href="www.facebook.com">Sujeeth</a></footer>
</body>
</html>