-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
268 lines (267 loc) · 9.97 KB
/
template.html
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<!DOCTYPE html>
<html>
<head>
<title>backITup</title>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="./css/style.css" media="all" />
</head>
<body>
<header>
<h1>backITup</h1>
<span id="version">
0.1 alpha
</span>
</header>
<section id="app-list">
<h2>Seznam aplikací</h2>
<span class="section-head-link">
<a href="#new"><span class="icon-no-float icon-new"></span>Přidat zálohu</a>
</span>
<table class='datagrid'>
<tr>
<th>
Id
</th>
<th>
Název aplikace
</th>
<th>
FTP
</th>
<th>
MySQL
</th>
<th>
Akce
</th>
</tr>
<tr>
<td>
1
</td>
<td>
studioteam.cz
</td>
<td>
<a href="#switchFtp" title="Zapnout/vypnout zálohu FTP">
<span class="icon-no-float icon-green-flag"></span>
</a>
</td>
<td>
<a href="#switchDb" title="Zapnout/vypnout zálohu MySQL">
<span class="icon-no-float icon-red-flag"></span>
</a>
</td>
<td>
<a href="#edit" title="Editovat">
<span class="icon icon-edit"></span>
</a>
<a href="#delete" title="Smazat">
<span class="icon icon-delete"></span>
</a>
</td>
</tr>
</table>
</section>
<section id="cron-list">
<h2>Akce CRONu</h2>
<span class="section-head-link">
<a href="#refresh"><span class="icon-no-float icon-refresh"></span>Aktualizovat</a>
</span>
</section>
<section id="form">
<h2>Nová aplikace</h2>
<form method="post" action="./processForm.php">
<table>
<tr>
<th>
<label for="input-app-name">Název aplikace:</label>
</th>
<td>
<input type="text" name="name" id="input-app-name" />
</td>
</tr>
<tr><th></th><td></td></tr>
<tr>
<th>
<label for="input-ftp-backup">Zálohovat FTP:</label>
</th>
<td>
<input type="checkbox" name="ftpBackup" checked="checked" id="input-ftp-backup" />
</td>
</tr>
<tr>
<th>
<label for="input-ftp-server">Adresa FTP serveru:</label>
</th>
<td>
<input type="text" name="ftpServer" id="input-ftp-server" />
</td>
</tr>
<tr>
<th>
<label for="input-ftp-user">Přihlašovací jméno k FTP:</label>
</th>
<td>
<input type="text" name="ftpUser" id="input-ftp-user" />
</td>
</tr>
<tr>
<th>
<label for="input-ftp-password">Heslo k FTP:</label>
</th>
<td>
<input type="text" name="ftpPassword" id="input-ftp-password" />
</td>
</tr>
<tr>
<th>
<label for="input-ftp-dir">Kořenový adresář:</label>
</th>
<td>
<input type="text" name="ftpDir" id="input-ftp-dir" />
</td>
</tr>
<tr>
<th>
<label for="select-ftp-method">Metoda FTP zálohy:</label>
</th>
<td>
<select name="ftpMethod" size="1" id="select-ftp-method">
<option value="normal">Normální</option>
<option value="gzip">Archív gzip</option>
<!-- <option value="diff">Rozdílová</option>
<option value="gzdiff">Rozdílová gzip</option> -->
</select>
</td>
</tr>
<tr>
<th>
<label for="input-sql-backup">Zálohovat DB:</label>
</th>
<td>
<input type="checkbox" name="dbBackup" checked="checked" id="input-sql-backup" />
</td>
</tr>
<tr>
<th>
<label for="input-db-server">Adresa DB serveru:</label>
</th>
<td>
<input type="text" name="dbServer" id="input-db-server" />
</td>
</tr>
<tr>
<th>
<label for="input-db-user">Přihlašovací jméno k DB:</label>
</th>
<td>
<input type="text" name="dbUser" id="input-db-user" />
</td>
</tr>
<tr>
<th>
<label for="input-db-password">Heslo k DB:</label>
</th>
<td>
<input type="text" name="dbPassword" id="input-db-password" />
</td>
</tr>
<tr>
<th>
<label for="input-db-daabase">Název databáze:</label>
</th>
<td>
<input type="text" name="dbDatabase" id="input-db-database" />
</td>
</tr>
<tr>
<th>
<label for="select-db-method">Metoda DB zálohy:</label>
</th>
<td>
<select name="dbMethod" size="1" id="select-db-method">
<option value="normal">Normální</option>
<option value="gzip">Archív gzip</option>
<option value="bz2">Archív bz2</option>
<!-- <option value="diff">Rozdílová</option>
<option value="gzdiff">Rozdílová gzip</option> -->
</select>
</td>
</tr>
<tr>
<th>
<label for="input-date-limit">Časový limit zálohy:</label>
</th>
<td>
<input type="checkbox" name="dateLimit" id="input-date-limit" />
</td>
</tr>
<tr>
</tr>
<tr>
<th>
<label for="input-backup-from">Zálohovat od:</label><span class="x-small">(YYYY-mm-dd)</span>
</th>
<td>
<input type="date" name="backupFrom" id="input-backup-from" />
</td>
</tr>
<tr>
<th>
<label for="input-backup-to">Zálohovat do:</label><span class="x-small">(YYYY-mm-dd)</span>
</th>
<td>
<input type="date" name="backupTo" id="input-backup-to" />
</td>
</tr>
<tr>
<th>
<label for="select-frequency">Frekvence záloh:</label>
</th>
<td>
<select name="frequency" id="select-frequency" size="1">
<option value="m">Mesíčně</option>
<option value="w">Týdně</option>
<option value="d">Denně</option>
</select>
</td>
</tr>
<tr>
<th>
<label for="select-weekday">Den v týdnu:</label><span class="x-small">(Týdenní zálohy)</span>
</th>
<td>
<select name="weekday" size="1" id="select-weekday">
<option value="1">Pondělí</option>
<option value="2">Úterý</option>
<option value="3">Sředa</option>
<option value="4">Čtvrtek</option>
<option value="5">Pátek</option>
<option value="6">Sobota</option>
<option value="0">Neděle</option>
</select>
</td>
</tr>
<tr>
<th>
<label for="input-time">Čas zálohy:</label>
</th>
<td>
<input type="time" name="time" id="input-time" />
</td>
</tr>
<tr>
<th></tr>
<td>
<input type="submit" name="submit" value="Uložit" />
</td>
</tr>
</table>
</form>
</section>
<footer>
Created for job admission - KDV czech v.o.s., contact author: dittrich.r(at)gmail.com
</footer>
</body>
</html>