-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathindex.php
126 lines (106 loc) · 4.93 KB
/
index.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CronWeb by Fisher Innovation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A responsive HTML5/PHP crontab manager.">
<meta name="author" content="Fisher Innovation">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="masthead">
<ul class="nav nav-pills pull-right">
<li class="nav-home active"><a href="#" onclick="changePage('home');">Home</a></li>
<li class="nav-new"><a href="#new" onclick="changePage('new');">New Cronjob</a></li>
<li class="nav-active"><a href="#active" onclick="changePage('active');">Active Cronjobs</a></li>
</ul>
<h1><a onclick="changePage('home');">Cronweb <span class="muted">by Fisher Innovation</span></a></h1>
</div>
<hr>
<div id="home">
<div class="jumbotron">
<h1>Manage Your Cronjobs Anywhere!</h1>
<p class="lead">Enough dealing with tricky Cronjob syntax. Manage your users crontab via the web easily.</p>
</div>
<hr>
<div class="row-fluid marketing">
<div class="span6">
<h4>How it Works</h4>
<p>It's pretty simple. Rather then dealing with criptic crontab time syntax and script reference by hand, this simple and straight forward web interface allows you to easily add and remove cronjobs on your system in seconds.</p>
</div>
<div class="span6">
<h4>Project Source</h4>
<p>Feel free to contribute to this project at any time by visiting the project GitHub page. You can also find the issue track as well in case you have encounted any undocumented issues.</p>
<iframe src="http://ghbtns.com/github-btn.html?user=fisherinnovation&repo=CronWeb&type=fork&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="130" height="30"></iframe>
<iframe src="http://ghbtns.com/github-btn.html?user=fisherinnovation&repo=CronWeb&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
<br>
<iframe src="http://ghbtns.com/github-btn.html?user=fisherinnovation&repo=CronWeb&type=follow&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="250" height="30"></iframe>
</div>
</div>
</div>
<div id="new">
<div class="row-fluid">
<form>
<div class="span6">
<fieldset>
<legend>Legend</legend>
<label>Minute</label>
<input class="add-minute" type="text" placeholder="0-59 or *">
<label>Hour</label>
<input class="add-hour" type="text" placeholder="0-23 or *">
<label>Day of Week</label>
<input class="add-dayweek" type="text" placeholder="0-6 or *">
<label>Day of Month</label>
<input class="add-daymonth" type="text" placeholder="0-31 or *">
<label>Month</label>
<input class="add-month" type="text" placeholder="0-12 or *">
</fieldset>
</div>
<div class="span6">
<h4>Command to Execute</h4>
<p>Enter either a valid CLI command to run on the system with the current users permissions, or reference a external script for execution.</p>
<textarea class="add-command" style="width:100%;" rows="5"></textarea>
<p>
<a id="save-btn" class="btn btn-large btn-success">Save New Cronjob</a>
</p>
</div>
</form>
</div>
</div>
<div id="active">
<h3>Active Cronjobs</h3>
<p><a class="btn btn-danger delete-all-btn">Delete All Jobs</a></p>
<table class="table table-striped">
<thead>
<tr>
<th>Minute</th>
<th>Hour</th>
<th>Day of Week</th>
<th>Day of Month</th>
<th>Month</th>
<th>Command</th>
<th></th>
</tr>
</thead>
<tbody class="active-job-list">
</tbody>
</table>
</div>
<hr>
<div class="footer">
<p>© <?php echo date('Y'); ?> <a href="http://www.fisherinnovation.com" target="_blank">Fisher Innovation</a></p>
</div>
</div>
</div>
<script src="js/jquery-1.9.0.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/main.js"></script>
</body>
</html>