-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload.php
executable file
·47 lines (42 loc) · 1.62 KB
/
upload.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
<?php
include_once('includes/util.php');
require_authenticated();
?>
<!DOCTYPE html>
<html>
<head>
<?php include_once('includes/util.php'); ?>
<?php include_once('includes/head.php'); ?>
<script src="/js/upload.js"></script>
</head>
<body>
<div class="container">
<?php include_once('includes/nav.php'); ?>
<div id="after-nav"></div>
<div style="display:flex;justify-content:center;align-items:center;" id="select">
<div style="width:560px;height:480px;" id="select-inner">
<form style="display: none" id="form-upload">
<input type="file" id="file-chooser" name="file">
<input type="text" id="category-chooser" name="type">
</form>
<button class="btn btn-primary" id="select-button" onclick="selectFile()">Select File</button>
<div class="dropdown" id="type-chooser" style="display: none">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" id="category-button">
Document Category
<span class="caret"></span>
</button>
<ul id="dropdown-items" class="dropdown-menu" aria-labelledby="dropdownMenu1">
</ul>
</div>
<br/>
<button class="btn btn-primary" style="display: none" id="upload-button" onclick="doUpload()">Upload!</button>
</div>
</div>
<div class="row marketing">
</div>
<footer class="footer">
<p>© 2015 CDC, Inc.</p>
</footer>
</div> <!-- /container -->
</body>
</html>