-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
102 lines (89 loc) · 4.34 KB
/
index.php
File metadata and controls
102 lines (89 loc) · 4.34 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<title>Worker</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel = "stylesheet"
type = "text/css"
href = "workerstyle.css" />
</head>
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.php"></a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="index.php">Home</a></li>
<!--<li><a href="#">About</a></li>-->
<li><a href="results.php">Results</a></li>
<!--<li><a href="#">Contact</a></li>-->
</ul>
<ul class="nav navbar-nav navbar-right">
<!--<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>-->
</ul>
</div>
</div>
</nav>
<div class="container-fluid text-center">
<div class="row content">
<div class="col-sm-2 sidenav">
<p><a href="#"></a></p>
<p><a href="#"></a></p>
<p><a href="#"></a></p>
</div>
<div class="col-sm-8 text-left">
<h1>Welcome to Worker</h1>
<p>Using this webpage you will be able to run your simulation on the server and get the results back to your machine. You can fill the form below or upload a JSON file that contains the details of your task. Please note that:
<!--<li>Maximum number of files must not exceed 20 files.</li>-->
<li>File must be in <strong>.zip</strong> format.</li>
<li>Maximum size of uploaded file must not exceed <strong>300MB </strong>.</li>
</p>
<hr>
<h2>Using JSON file</h2>
<form action="processjson.php" method="POST" enctype="multipart/form-data">
<label for="jsonfile"> Select JSON file </label><input type="file" name="jsonfile" required="required" id="jsonfile"/><br/>
<label for="fileFromJson"> Zipped file </label><input type="file" name="fileFromJson" id="fileFromJson"class="form-control" /> <br/>
<!--<label for="files"> Input directory </label> <input type="file" name="files[]" required="required" id="files" multiple="" directory="" webkitdirectory="" mozdirectory="" class="form-control" /> <br/>-->
<input type="submit" value="Submit JSON" class="btn btn-info" /><br/>
</form>
<hr>
<h2>Using web form</h2>
<p>Fill the following form with the details of your task</p>
<form action="process.php" method="POST" enctype="multipart/form-data">
<label for="username">User name</label> <input type="text" name="username" required="required" id="username" class="form-control" /> <br/>
<label for="taskname">Task name</label> <input type="text" name="taskname" required="required" id="taskname" class="form-control" /> <br/>
<label for="useremail">Email address</label> <input type="email" name="useremail" id="useremail" required="required" class="form-control" /> <br/>
<label for="commands">Commands</label> <textarea name="commands" id="commands" required="required" class="form-control" rows="5"></textarea> <br/>
<label for="file"> Zipped file </label><input type="file" name="fileToUpload" id="fileToUpload"class="form-control" /> <br/>
<!--<label for="files"> Input directory </label> <input type="file" name="files[]" id="files" multiple="" directory="" webkitdirectory="" mozdirectory="" class="form-control" /> <br/>-->
<input type="submit" value="Submit Task" class="btn btn-info" />
</form>
<br/>
</div>
<div class="col-sm-2 sidenav">
<!--<div class="well">
<p>ADS</p>
</div>
<div class="well">
<p>ADS</p>
</div>-->
</div>
</div>
</div>
<footer class="container-fluid text-center">
<p>Worker</p>
</footer>
</body>
</html>