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
|
<?php require_once "inc/configure.php" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?=$system_var['COMPANY_NAME']?></title> <link rel="stylesheet" type="text/css" href="css/style.css" /> <?php require_once "inc/jsheader.php"; ?>
<script> $(document).ready(function() { //console.log(refid, nostocktake); $.blockUI({ theme: true, title: 'ENZA', message: '<p><?=LOADING?>...<br/><br/><span style="float:right;" ><input type="button" name="<?=CLOSE?>" value="<?=CLOSE?>" onclick="$.unblockUI();" /></span></p>', baseZ: 2000 }); $.unblockUI(); }); </script> </head> <body> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top" class="top"><?php require"mod_webhead.php"; ?></td> </tr> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="200" valign="top" class="menu_bg"><?php require"mod_menu.php"; ?></td> <td valign="top" class="padding1"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr></tr> <?php // designing user interface ?> <h3>Upload Files</h3> <form method ="POST" enctype="multipart/form-data" action="upload.php"> <input type="file" name="file"> <input type="submit" value="Upload"> </form>
<?php // delete file 2022-02-19 $a=$_SESSION['user']; // echo $a; if ($a == "ITDept" ||$a == "jmcenza"||$a == "onesolution"){ // echo $a;
?> <h3>Delete Files</h3>
<form method ="POST" enctype="multipart/form-data" action="deletefile.php"> <input type="text" name="filename" style="width:500px"> <input type="submit" value="Delete"> </form>
<?php } // Displaying all upload files ?> <h3>Download Files</h3> <?php
$files = scandir ("uploads"); for ($a = 2; $a < count($files); $a++ ) { // Displaying links for download ?> <p> <a download="<?php echo $files[$a] ?>" href="uploads/<?php echo $files[$a] ?>"><?php echo $files[$a] ?>></a> </p> <?php } ?> </table>
|