forked from ndlibersa/usage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
66 lines (43 loc) · 1.94 KB
/
index.php
File metadata and controls
66 lines (43 loc) · 1.94 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
62
63
64
65
66
<?php
$pageTitle='Home';
include 'templates/header.php';
?>
<table class="headerTable">
<tr style='vertical-align:top;'>
<td style="width:235px;padding-right:10px;">
<div class="headerText" style='margin-bottom:9px;'>Usage Statistics File Upload</div>
<?php
#print errors if passed in
if (isset($_GET['error'])){
$errorNumber = $_GET['error'];
switch ($errorNumber){
case 1:
echo "<font color='red'>Incorrect File format, must be .txt!</font><br /><br />";
break;
case 2:
echo "<font color='red'>There was an error uploading the file. Please verify the size is not over 5MB and try again!</font><br /><br />";
break;
case 3:
echo "<font color='red'>File has an incorrectly formatted name - try filename.txt!</font><br /><br />";
break;
}
}
?>
<font color='red'>Save file as .txt files in tab delimited format</font><br /><br />
<form id="form1" name="form1" enctype="multipart/form-data" onsubmit="return validateForm()" method="post" action="uploadConfirmation.php">
<b>Choose File:</b><span id='span_error' style='color:red'></span><br /><input type="file" name="usageFile" id="usageFile" accept="text/html" class='bigger' /><br /><br />
<input type="checkbox" name="archiveInd" id="archiveInd" /> This is an Archive Report (JR1a)<br />
<input type="checkbox" name="overrideInd" id="overrideInd" /> Override previous month verification<br /><br />
<input type="submit" name="submitFile" id="submitFile" value="Upload" />
<input type="hidden" name="MAX_FILE_SIZE" value="5000000" />
</form>
<h1> </h1>
</td>
<td>
<div class="headerText" style='margin-bottom:9px;'>Recent Imports <span id='span_feedback'></span></div>
<div id='div_recentImports'>
</div>
</td></tr>
</table>
<script type="text/javascript" src="js/index.js"></script>
<?php include 'templates/footer.php'; ?>