-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcategories.html
339 lines (322 loc) · 11.3 KB
/
categories.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<!DOCTYPE html>
<html>
<head>
<title>Categories - Tixati Web Interface</title>
<link rel="shortcut icon" href="/favicon.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<style>
<!--inline main.css-->
</style>
</head>
<script>
<!--
function udctrls()
{
var inputs = document.getElementsByClassName("selection");
var uiSelPlain=0;var uiSelAny=0;
for(var i=inputs.length-1; i>=0; i--)
{
var elem=inputs[i];
if(!elem.checked) continue;
uiSelAny++;
for(var ii=0;ii<8;ii++)
{
elem=elem.parentElement;
if(!elem) break;
if(elem.classList.contains("category")) uiSelPlain++;
}
}
var btns = document.getElementsByClassName("selctrl");
for(var i=btns.length-1; i>=0; i--) btns[i].disabled=!uiSelPlain;
var btnsRemove = document.getElementsByClassName("selremovectrl");
for(var i=btnsRemove.length-1; i>=0; i--) btnsRemove[i].disabled=!uiSelAny;
document.getElementsByClassName("selall")[0].checked=!!(inputs.length==uiSelAny);
}
function selall()
{
var bChecked=!!(document.getElementsByClassName("selall")[0].checked);
var inputs = document.getElementsByClassName("selection");
for(var i=inputs.length-1; i>=0; i--) inputs[i].checked=bChecked;
udctrls();
}
//-->
</script>
<body onload="udctrls()">
<table class="topnav">
<tr>
<td><a href="/home">Home</a></td>
<td><a href="/transfers">Transfers</a></td>
<td><a href="/bandwidth">Bandwidth</a></td>
<td><a href="/dht">DHT</a></td>
<td><a href="/settings">Settings</a></td>
<td><a href="/help">Help</a></td>
</tr>
</table>
<br/>
<form method="post" action="/categories/action" enctype="multipart/form-data">
<input type="submit" name="default" value="" hidden/>
<table class="listctrls">
<tr>
<td><input type="submit" name="addcategory" value="Add"/></td>
<td><input type="submit" name="start" value="Start" class="selctrl"/></td>
<td><input type="submit" name="stop" value="Stop" class="selctrl"/></td>
<td><input type="submit" name="remove" value="Remove" class="selremovectrl"/></td>
</tr>
</table>
<table class="listtable catlist" style="table-layout:fixed;min-width:60em;">
<thead>
<tr>
<th style="width:1.5em;"><input class="selall" type="checkbox" onclick="selall()"/></th>
<th style="">Category</th>
<th style="width:5em;">Transfers</th>
<th style="width:5em;text-align:right;">Complete</th>
<th style="width:5em;text-align:right;">Standby</th>
<th style="width:5em;text-align:right;">Seeding</th>
<th style="width:5em;text-align:right;">DLing</th>
<th style="width:5em;text-align:right;">Queued</th>
<th style="width:5em;text-align:right;">Offline</th>
<th style="width:8em;text-align:center;">Priority</th>
</tr>
</thead>
<tbody>
<!--list_start categories-->
<tr class="$statusclass$ $listlineclass$">
<td><input class="selection" type="checkbox" name="$guid$" value="1" onclick="udctrls()" $checked$/></td>
<td><div class="listcell" title="$name$"><a href="/categories/$guid$">$name$</a></div></td>
<td><div class="listcell" style="text-align:right;" title="$all$">$all$</div></td>
<td><div class="listcell" style="text-align:right;" title="$complete$">$complete$</div></td>
<td><div class="listcell" style="text-align:right;" title="$standby$">$standby$</div></td>
<td><div class="listcell" style="text-align:right;" title="$seeding$">$seeding$</div></td>
<td><div class="listcell" style="text-align:right;" title="$downloading$">$downloading$</div></td>
<td><div class="listcell" style="text-align:right;" title="$queued$">$queued$</div></td>
<td><div class="listcell" style="text-align:right;" title="$offline$">$offline$</div></td>
<td><div class="listcell" style="text-align:center;" title="$priority$">$priority$</div></td>
</tr>
<!--list_end-->
</tbody>
</table>
<table class="listctrls">
<tr>
<td>Bandwidth Priority Group
<select name="priogrp" class="selctrl">
<option value="8">Ultra High</option>
<option value="7">Very High</option>
<option value="6">High</option>
<option value="5">Above Normal</option>
<option value="4" selected>Normal</option>
<option value="3">Below Normal</option>
<option value="2">Low</option>
<option value="1">Very Low</option>
<option value="0">Ultra Low</option>
</select>
</td>
<td>Peer Allowance
<select name="share" class="selctrl">
<option value="1000">x10</option>
<option value="500">x5</option>
<option value="400">x4</option>
<option value="300">x3</option>
<option value="200">x2</option>
<option value="150">x1.5</option>
<option value="100" selected>Normal</option>
<option value="75">75%</option>
<option value="50">50%</option>
<option value="20">20%</option>
<option value="10">10%</option>
<option value="5">5%</option>
<option value="2">2%</option>
</select>
</td>
<td><input type="submit" name="update_prio" Value="Apply" class="selctrl"/></td>
</tr>
</table>
<table class="listctrls">
<tr>
<td>Incoming Bandwidth Limit
<select name="inlimit" class="selctrl">
<option value="0" selected>No Limit</option>
<option value="100000">100 KB/s</option>
<option value="75000">75 KB/s</option>
<option value="50000">50 KB/s</option>
<option value="40000">40 KB/s</option>
<option value="30000">30 KB/s</option>
<option value="25000">25 KB/s</option>
<option value="20000">20 KB/s</option>
<option value="15000">15 KB/s</option>
<option value="10000">10 KB/s</option>
<option value="7500">7.5 KB/s</option>
<option value="5000">5 KB/s</option>
<option value="4000">4 KB/s</option>
<option value="3000">3 KB/s</option>
<option value="2000">2 KB/s</option>
<option value="1000">1 KB/s</option>
</select>
</td>
<td>Priority Group
<select name="inpriogrp" class="selctrl">
<option value="8">Ultra High</option>
<option value="7">Very High</option>
<option value="6">High</option>
<option value="5">Above Normal</option>
<option value="4" selected>Normal</option>
<option value="3">Below Normal</option>
<option value="2">Low</option>
<option value="1">Very Low</option>
<option value="0">Ultra Low</option>
</select>
</td>
<td>Peer Allowance
<select name="inshare" class="selctrl">
<option value="1000">x10</option>
<option value="500">x5</option>
<option value="400">x4</option>
<option value="300">x3</option>
<option value="200">x2</option>
<option value="150">x1.5</option>
<option value="100" selected>Normal</option>
<option value="75">75%</option>
<option value="50">50%</option>
<option value="20">20%</option>
<option value="10">10%</option>
<option value="5">5%</option>
<option value="2">2%</option>
</select>
</td>
<td><input type="submit" name="update_inprio" Value="Apply" class="selctrl"/></td>
</tr>
</table>
<table class="listctrls">
<tr>
<td>Outgoing Bandwidth Limit
<select name="outlimit" class="selctrl">
<option value="0" selected>No Limit</option>
<option value="100000">100 KB/s</option>
<option value="75000">75 KB/s</option>
<option value="50000">50 KB/s</option>
<option value="40000">40 KB/s</option>
<option value="30000">30 KB/s</option>
<option value="25000">25 KB/s</option>
<option value="20000">20 KB/s</option>
<option value="15000">15 KB/s</option>
<option value="10000">10 KB/s</option>
<option value="7500">7.5 KB/s</option>
<option value="5000">5 KB/s</option>
<option value="4000">4 KB/s</option>
<option value="3000">3 KB/s</option>
<option value="2000">2 KB/s</option>
<option value="1000">1 KB/s</option>
</select>
</td>
<td>Priority Group
<select name="outpriogrp" class="selctrl">
<option value="8">Ultra High</option>
<option value="7">Very High</option>
<option value="6">High</option>
<option value="5">Above Normal</option>
<option value="4" selected>Normal</option>
<option value="3">Below Normal</option>
<option value="2">Low</option>
<option value="1">Very Low</option>
<option value="0">Ultra Low</option>
</select>
</td>
<td>Peer Allowance
<select name="outshare" class="selctrl">
<option value="1000">x10</option>
<option value="500">x5</option>
<option value="400">x4</option>
<option value="300">x3</option>
<option value="200">x2</option>
<option value="150">x1.5</option>
<option value="100" selected>Normal</option>
<option value="75">75%</option>
<option value="50">50%</option>
<option value="20">20%</option>
<option value="10">10%</option>
<option value="5">5%</option>
<option value="2">2%</option>
</select>
</td>
<td><input type="submit" name="update_outprio" Value="Apply" class="selctrl"/></td>
</tr>
</table>
<table class="listctrls">
<tr>
<td>Upload Ratio Limit
<select name="ratiolimit" class="selctrl">
<option value="def" selected>Default</option>
<option value="0">None</option>
<option value="100">1.00</option>
<option value="110">1.10</option>
<option value="120">1.20</option>
<option value="130">1.30</option>
<option value="140">1.40</option>
<option value="150">1.50</option>
<option value="160">1.60</option>
<option value="170">1.70</option>
<option value="180">1.80</option>
<option value="190">1.90</option>
<option value="200">2.00</option>
<option value="220">2.20</option>
<option value="240">2.40</option>
<option value="260">2.60</option>
<option value="280">2.80</option>
<option value="300">3.00</option>
<option value="350">3.50</option>
<option value="400">4.00</option>
<option value="450">4.50</option>
<option value="500">5.00</option>
<option value="600">6.00</option>
<option value="700">7.00</option>
<option value="800">8.00</option>
<option value=""></option>
</select>
</td>
<td>Upload Time Limit
<select name="minuteslimit" class="selctrl">
<option value="def" selected>Default</option>
<option value="0">None</option>
<option value="5">5 Minutes</option>
<option value="30">30 Minutes</option>
<option value="60">1 Hour</option>
<option value="120">2 Hours</option>
<option value="180">3 Hours</option>
<option value="240">4 Hours</option>
<option value="360">6 Hours</option>
<option value="720">12 Hours</option>
<option value="1440">1 Day</option>
<option value="10080">7 Days</option>
<option value="43200">30 Days</option>
<option value=""></option>
</select>
</td>
<td>Remote Seed Limit
<select name="seedlimit" class="selctrl">
<option value="def" selected>Default</option>
<option value="0">None</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="15">15</option>
<option value="20">20</option>
<option value="25">25</option>
<option value="30">30</option>
<option value="35">35</option>
<option value="40">40</option>
<option value="50">50</option>
</select>
</td>
<td><input type="submit" name="update_ullimits" Value="Apply" class="selctrl"/></td>
</tr>
</table>
</form>
<br/>
</body>
</html>