-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_viewdocs.php
More file actions
executable file
·61 lines (50 loc) · 1.96 KB
/
Copy pathadmin_viewdocs.php
File metadata and controls
executable file
·61 lines (50 loc) · 1.96 KB
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
<?php
include 'tpl/auth.php';
include 'tpl/sql.php';
$directory_listing = scandir($upload_dir);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>growTENT page template</title>
<!-- Sets initial viewport load and disables zooming -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<!-- Makes your prototype chrome-less once bookmarked to your phone's home screen -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Include the compiled Ratchet CSS -->
<link rel="stylesheet" href="ratchet-theme-ios.min.css">
<link rel="stylesheet" href="ratchet.min.css">
<link rel="stylesheet" href="app.css">
<!-- Include the compiled Ratchet JS -->
<!-- <script src="ratchet.js"></script> -->
<script src="html5-qrcode.min.js"></script>
</head>
<body>
<!-- Make sure all your bars are the first things in your <body> -->
<header class="bar bar-nav">
<a href="admin.php"><button class="btn btn-link btn-nav pull-left">
<span class="icon icon-home"></span>
Home
</button></a>
<h1 class="title">Procedural documents</h1>
</header>
<!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) -->
<div class="content">
<p class="content-padded" align='center'>Here's a list of all the uploaded procedural documents (sorted alphabetically)</p>
<?php if($savesuccess=='true'){ echo "<p class='content-padded'><font color='red'>Saved!</font></p>";} ?>
<div class="card">
<ul class="table-view">
<?php
foreach($directory_listing as $current_file) {
if($current_file != "." && $current_file != ".." && $current_file != "index.php") {
echo " <li class='table-view-cell'>\n<a href='" . $upload_dir . $current_file . "' class='navigate-right' target='_blank'>" . $current_file . "</a></li>";
}
}
?>
</div>
</ul>
</div>
</body>
</html>