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
|
<!-- tlist -->
<body class="frame">
<div id="body">
<?% ######################################################################## %?>
<?% aus = gettext('Off') %?>
<?% an = gettext('On') %?>
<?% enableform = ( allow('ttoggle') || allow('tdelete') ) && data.size > 1 %?>
<?% ######################################################################## %?>
<?% total = 0 %?>
<?% BLOCK summe %?>
<?% IF aktiv == 1; # Errechnen der Differenzen
total = total + duration;
END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK printsumme %?>
<p class="description" style="padding: 0; width:<?% width %?>px; text-align:right;">
<?% IF total > 0;
sec = total mod 60;
min = total div 60 mod 60;
hour = total div 3600;
%?>
<?% hour FILTER format('%02d') %?>:<?% min FILTER format('%02d') %?>
<?% END %?>
</p>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK totalsumme %?>
<p class="description" style="padding: 0; width:<?% width %?>px; text-align:right;">
<?% IF total > 0;
sec = total mod 60;
min = total div 60 mod 60;
hour = total div 3600;
%?>
<?% gettext("total time") %?> :
<?% IF hour > 0 %?><?% hour FILTER format('%02d') %?>:<?% END %?><?% min FILTER format('%02d') %?><br />
<?% END %?>
<?% IF param.capacity;
secf = param.capacity mod 60;
minf = param.capacity div 60 mod 60;
hourf = param.capacity div 3600;
%?>
<?% gettext("available capacity") %?> :
<?% IF hourf > 0 %?><?% hourf FILTER format('%02d') %?>:<?% END %?><?% minf FILTER format('%02d') %?>
<?% END %?>
</p>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK RowButtons %?>
<a href="?cmd=search&data=<?% url( title.split('~').first ) %?>">
<img src="images/find.<?% global.imagetyp %?>" alt="" title="<?% gettext("Search for repeats") %?>" />
</a>
<?% IF allow('tedit') %?>
<a href="javascript:popup('tedit','<?% id %?>',620,670,1)">
<img src="images/edit.<?% global.imagetyp %?>" alt="" title="<?% gettext("Edit this timer") %?>" />
</a>
<?% END %?>
<?% IF allow('tdelete') %?>
<a href="javascript:surecmd('<?% gettext("Would you like to delete this timer?") %?>','<?% escape(title) %?><?% IF subtitle != "";"~";escape(subtitle);END %?>','tdelete','<?% id %?>',620,670)">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete timer") %?>" />
</a>
<?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK SetState %?>
<?% state = '' %?>
<?% UNLESS aktiv %?>
<?% state = "deactive" %?>
<?% ELSIF conflict %?>
<?% state = "problem" %?>
<?% ELSIF running %?>
<?% state = "running" %?>
<?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK StateImage %?>
<?% IF aktiv %?>
<?% IF param.capacity && param.capacity <= total %?>
<img id='toggle<?% id %?>' src="images/warning.<?% global.imagetyp %?>" alt="" title="<?% gettext("Not enough space to record this timer!") %?>" />
<?% ELSE %?>
<img id='toggle<?% id %?>' src="images/on.<?% global.imagetyp %?>" alt="" title="<?% an %?>" />
<?% END %?>
<?% ELSE %?>
<img id='toggle<?% id %?>' src="images/off.<?% global.imagetyp %?>" alt="" title="<?% aus %?>" />
<?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK ItemAsFlat %?>
<?% PROCESS SetState %?>
<tr id="item<?% id %?>" valign="bottom" <?% ' class="two"' IF z mod 2 == 0 %?>>
<td class="fieldinline">
<?% IF allow('ttoggle') %?>
<a href="javascript:toggle('ttoggle','<?% id %?>')">
<?% END %?>
<?% PROCESS StateImage %?>
<?% '</a>' IF allow('ttoggle') %?>
</td>
<td class="fieldinline">
<?% IF allow('program') %?><a class="fieldinline" href="?cmd=program&data=<?% channel %?><?% IF eventid %?>#E<?% eventid %?><?% END %?>" title="<?% gettext("Jump to program:") %?><?% sender %?>" style="vertical-align:bottom;"><?% END %?>
<font class="title<?% IF state != "";" ";state;END %?>"><?% sender %?></font>
<?% '</a>' IF allow('program') %?>
</td>
<td class="fieldinline">
<?% IF enableform %?>
<input class="push" type="checkbox" value="<?% id %?>" name="<?% title %?><?% IF subtitle != "";"~";subtitle;END %?>" />
<?% END %?>
<font class="description<?% IF state != "";" ";state;END %?>">
<?% start %?>-<?% stop %?>
<?% IF pdc;"(";gettext("PDC");")";END %?>
</font>
</td>
<td class="fieldinline">
<?% IF allow('tedit') %?>
<a href="javascript:popup('tedit','<?% id %?>',620,670,1)" class="fieldinline">
<?% END %?>
<font class="title<?% IF state != "";" ";state;END %?>"><?% title %?></font>
<?% IF subtitle.length > 0 %?>
<font class="subtitle<?% IF state != "";" ";state;END %?>"> - <?% subtitle %?></font>
<?% END %?>
<?% '</a>' IF allow('tedit') %?>
</td>
<td class="fieldinline push">
<?% INCLUDE widgets/tooltip.inc cmd="display" linkid=eventid ttp_offset=-300 %?>
<?% PROCESS RowButtons %?>
</td>
</tr>
<?% IF ( param.recorder > 1 ) || ( global.hideDescription != 1 && description.length > 0 ) %?>
<tr id="desc<?% id %?>"<?% ' class="two"' IF z mod 2 == 0 %?>>
<td class="fieldinline"></td>
<td class="fieldinline"><?% IF param.recorder > 1;host;END %?></td>
<td class="fieldinline" colspan="3">
<?% IF global.hideDescription != 1 && description.length > 0 %?>
<a href="javascript:popup('display','<?% eventid %?>',620,670,0)" class="fieldinline">
<font class="description<?% IF state != "";" ";state;END %?>"><?% chop(description,100,1) %?></font>
</a>
<?% END %?>
</td>
</tr>
<?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<h1><?% gettext("Planned recordings") %?></h1>
<?% IF data.size > 1 %?>
<?% fields = data.shift %?>
<form name="tlist" action="">
<?% z = 1 %?>
<?% FOREACH zeile IN data %?>
<?% IF verbose;"<!-- Item: ";FOREACH x IN zeile;loop.count - 1;":";x.replace("-"," ");"|";END;"-->";END %?>
<?%- id=zeile.0;
aktiv= ( zeile.1 ? zeile.1 mod 2 : 0 );
sender=zeile.2;
channel=zeile.3;
day=zeile.4;
start=zeile.5;
stop=zeile.6;
title=zeile.7;
priority=zeile.8;
conflict=zeile.9;
eventid=zeile.10;
autotimerid=zeile.11;
duration=zeile.12;
description=zeile.13;
running=zeile.14;
host=zeile.15;
t = zeile.7.split('~');IF t.size > 1;subtitle = t.pop;ELSE;subtitle="";END;title=t.join('~');
pdc= ( zeile.1 ? zeile.1 mod 8 div 4 : 0 ) %?>
<?% IF !old.defined || day != old %?>
<?% IF old.defined %?>
</table>
</td>
</tr>
<tr><td class="largebottom"></td></tr>
</table>
<?% PROCESS printsumme width=980 %?>
<?% END %?>
<table class="largetable" summary="">
<tr><td class="largehead"><?% day %?></td></tr>
<tr>
<td class="largetext" align="left">
<table summary="" width="100%">
<?% z = 1 %?>
<tr height="0"><th width="20"></th><th width="130"></th><th width="130"></th><th></th><th width="60" align="right"></th></tr>
<?% END %?>
<?% PROCESS summe %?>
<?% PROCESS ItemAsFlat %?>
<?% old = day %?>
<?% z = z + 1 %?>
<?% END %?>
</table>
</td>
</tr>
<tr><td class="largebottom"></td></tr>
</table>
<?% PROCESS totalsumme width=980 %?>
</form>
<?% END %?>
</div>
<!-- ###### Seite ###### -->
<div id="sidebar">
<?% IF enableform || allow('tnew') || allow('tupdate') %?>
<table summary="">
<tr><td class="sidehead"><?% gettext("Timers",20) %?></td></tr>
<tr>
<td class="sidetext">
<?% IF allow('topten') %?>
<a href="?cmd=topten"><img src="images/topten.<?% global.imagetyp %?>" alt="" /></a>
<a href="?cmd=topten"><?% gettext("Top Ten entrys",20) %?></a><br />
<?% END %?>
<?% IF allow('tnew') %?>
<a href="javascript:popupcmd('tnew',620,670,1)"><img src="images/new.<?% global.imagetyp %?>" alt="" /></a>
<a href="javascript:popupcmd('tnew',620,670,1)"><?% gettext("Create new timer",20) %?></a><br />
<?% END %?>
<?% IF allow('tupdate') %?>
<a href="javascript:fire('tupdate','0')"><img src="images/refresh.<?% global.imagetyp %?>" alt="" /></a>
<a href="javascript:fire('tupdate','0')"><?% gettext("Update timers",20) %?></a><br />
<?% END %?>
<?% IF allow('movetimerlist') %?>
<a href="?cmd=movetimerlist"><img src="images/edit.<?% global.imagetyp %?>" alt="" /></a>
<a href="?cmd=movetimerlist"><?% gettext("Rules to move timer",20) %?></a><br />
<?% END %?>
</td>
</tr>
<tr>
<td class="sidebottom"></td>
</tr>
</table>
<?% END %?>
<?% IF enableform %?>
<table summary="">
<tr><td class="sidehead"><?% gettext("Selection") %?></td></tr>
<tr>
<td class="sidetext">
<a href="javascript:selAll(document.tlist,1)"><img src="images/select.<?% global.imagetyp %?>" alt="" /></a>
<a href="javascript:selAll(document.tlist,1)"><?% gettext("Select all",20) %?></a><br />
<a href="javascript:selAll(document.tlist,0)"><img src="images/deselect.<?% global.imagetyp %?>" alt="" /></a>
<a href="javascript:selAll(document.tlist,0)"><?% gettext("Unselect all",20) %?></a><br />
<a href="javascript:reverse(document.tlist)"><img src="images/invers.<?% global.imagetyp %?>" alt="" /></a>
<a href="javascript:reverse(document.tlist)"><?% gettext("Reverse select",20) %?></a>
</td>
</tr>
<tr>
<td class="sidetext">
<?% IF allow('ttoggle') %?>
<a href="javascript:selToggle('<?% gettext("Nothing selected!") %?>',document.tlist)"><img src="images/onoff.<?% global.imagetyp %?>" alt="" /></a>
<a href="javascript:selToggle('<?% gettext("Nothing selected!") %?>',document.tlist)"><?% gettext("Toggle timer",20) %?></a><br />
<?% END %?>
<?% IF allow('tdelete') %?>
<a href="javascript:DoitReally('<?% gettext("Would you like to delete these timers?") %?>','<?% gettext("Nothing selected!") %?>','tdelete',document.tlist,620,670,'delete')"><img src="images/delete.<?% global.imagetyp %?>" alt="" /></a>
<a href="javascript:DoitReally('<?% gettext("Would you like to delete these timers?") %?>','<?% gettext("Nothing selected!") %?>','tdelete',document.tlist,620,670,'delete')"><?% gettext("Delete timer",20) %?></a><br />
<?% END %?>
</td>
</tr>
<tr>
<td class="sidebottom"></td>
</tr>
</table>
<?% END %?>
<table summary="">
<tr><td class="sidehead"><?% gettext("Search for timers",20) %?></td></tr>
<tr>
<td class="sidetext">
<form name="searchform" action="">
<input type="hidden" name="cmd" value="tsearch" />
<input type="text" id="timertext" name="data" alt="<?% gettext("Search for timers") %?>"
onkeyup="suggest('tsuggest','timertext','timersuggest');"
<?% IF cgi.param('cmd')=='ts' || cgi.param('cmd')=='tsearch' %?>value="<?% cgi.param('data')%?>"<?% END %?>
autocomplete="off" />
<br /><div class="suggestbox" id="timersuggest"></div>
</form>
</td>
</tr>
<tr><td class="sidebottom"></td></tr>
</table>
<?% IF param.keywords.size > 0 && allow('tk') %?>
<table summary="">
<tr><td class="sidehead"><?% gettext("Keywords",20) %?></td></tr>
<tr>
<td class="sidetext">
<?% steps = 25 %?>
<?% range = (param.keywordsmax - param.keywordsmin) %?>
<?% IF range > 2 %?>
<?% factor = steps / range %?>
<?% basis = param.keywordsmin %?>
<?% ELSE %?>
<?% factor = 1 %?>
<?% basis = param.keywordsmin - steps %?>
<?% END %?>
<?% IF param.keywords.size < steps %?>
<?% factor = factor * (param.keywords.size / steps) %?>
<?% END %?>
<?% FOREACH keyword IN param.keywords %?>
<?% level = 80 + (3*(((keyword.1 - basis) * factor) div 1)) %?>
<a href="?cmd=tk&data=<?% keyword.0 %?>">
<font style="font-size:<?% level %?>%"><?% keyword.0 %?></font>
</a>
<?% END %?>
</td>
</tr>
<tr>
<td class="sidetext">
<form name="keywordsform" action="">
<input type="hidden" name="cmd" value="tkeywords" />
<input type="text" id="keytext" name="data" alt="<?% gettext("Keywords") %?>"
onkeyup="suggest('tsuggestkeywords','keytext','keysuggest');"
<?% IF keywords.defined %?>value="<?% keywords %?>"<?% END %?>
autocomplete="off" />
<br /><div class="suggestbox" id="keysuggest"></div>
</form>
</td>
</tr>
<tr>
<td class="sidebottom"></td>
</tr>
</table>
<?% END %?>
<p id="sidefooter"> </p>
</div>
<?% INCLUDE header.inc %?>
|