-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd.php
More file actions
202 lines (200 loc) · 7.89 KB
/
add.php
File metadata and controls
202 lines (200 loc) · 7.89 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
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
<?php
function __autoload($className) {
require(strtolower("./include/$className.php"));
}
Html::header();
?>
<section id="form">
<h2>Přidat aplikaci</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>
<?php
Html::footer();
?>