forked from loadmybowl/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vault_upload.php
87 lines (70 loc) · 3.57 KB
/
vault_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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
session_start();
ob_start();
require_once('check-login.php');
include_once 'header-logged-in.php';
?>
<script type="text/javascript" src="js/vault.js"></script>
<div class="container theme-showcase" role="main">
<h2>PrimeVault</h2>
<br>
<div class="row">
<div class="col-md-10">
<section class="panel panel-primary">
<header class="panel-heading">
<div class="panel-actions">
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
</div>
<h2 class="panel-title">Upload document</h2>
</header>
<div class="panel-body">
<form>
<div class="row form-group">
<label class="col-md-4 control-label" for="filebutton">Date of Upload</label>
<div class="col-md-8">
<div class="input-group col-md-6">
<span class="input-group-addon">
<i class="fa fa-calendar"></i>
</span>
<input class="form-control" type="datetime-local" id="dou" name="dou" value="<?php date_default_timezone_set('Asia/Kolkata'); echo str_replace("/", "T", date('Y-m-d/H:i:s')); ?>" required />
</div>
</div>
</div><br/>
<div class="row form-group">
<label class="col-md-4 control-label" for="file">File</label>
<div class="col-md-8">
<input id="file" name="filename" class="input-file" type="file" accept="image/*,application/pdf">
</div>
</div><br/>
<div class="row form-group">
<label class="col-md-4 control-label" for="desc">Description</label>
<div class="col-md-8">
<textarea id="desc" name="desc" rows="5" class="form-control" placeholder="Description" required></textarea>
</div><br/><br/><br/>
</div><br/>
<div class="row form-group">
<div class="col-md-4">
<input type="reset" class="mb-xs mt-xs mr-xs btn btn-primary" onclick="uploadFile(dou, file, desc, this, output);" value="Upload">
</div>
</div><br/>
<div class="row progress light m-md" style="width: 50%" hidden="true">
<label id="progressLabel" for="progress"></label>
<div id="progress" class="row progress-bar progress-bar-primary" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 50px;">
Upload progress
</div>
</div><br/>
<div class="row form-group">
<div class="col-sm-12 text-left">
<div id="output">
</div>
</div>
</div>
</form>
</div>
</section>
</div>
</div>
</div>
<?php
include_once 'footer.php';
?>