Update index.php

This commit is contained in:
Josh North 2014-08-25 14:57:20 -04:00
parent fd3a8bd6c3
commit 8e263f5987

View File

@ -102,9 +102,11 @@
</div>
</div>
</form>
<?php
<?php
// initialize scanned files directory path
$scans_dir = $app_dir . $scan_dir;
@ -154,29 +156,30 @@ if (isset($_POST["scan"])) {
echo "";
}
?>
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-2">
<h2>Previous Document Scans (PDF)</h2>
<?php
$phpfiles = array_reverse(glob($scan_dir . "*.pdf"));
foreach($phpfiles as $phpfile) {
echo "<a target=\"_blank\" href=$phpfile>".basename($phpfile)."</a><br />";
}
?>
</div>
<div class="pure-u-1 pure-u-md-1-2">
<h2>Previous Image Scans (JPG)</h2>
<?php
$phpfiles = array_reverse(glob($scan_dir . "*.jpg"));
foreach($phpfiles as $phpfile) {
echo "<a target=\"_blank\" href=$phpfile>".basename($phpfile)."</a><br />";
}
?>
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-2">
<h2>Previous Document Scans (PDF)</h2>
<?php
$phpfiles = array_reverse(glob($scan_dir . "*.pdf"));
foreach($phpfiles as $phpfile) {
echo "<a target=\"_blank\" href=$phpfile>".basename($phpfile)."</a><br />";
}
?>
</div>
<div class="pure-u-1 pure-u-md-1-2">
<h2>Previous Image Scans (JPG)</h2>
<?php
$phpfiles = array_reverse(glob($scan_dir . "*.jpg"));
foreach($phpfiles as $phpfile) {
echo "<a target=\"_blank\" href=$phpfile>".basename($phpfile)."</a><br />";
}
?>
</div>
</div>
</body>
</html>