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
|
<!-- topten -->
<body class="frame">
<div id="body">
<?% ######################################################################## %?>
<?% BLOCK RowButtons %?>
<a href="?cmd=search&data=<?% url( title ) %?>">
<img src="images/find.<?% global.imagetyp %?>" alt="" title="<?% gettext("Search for repeats") %?>" />
</a>
<?% IF timerid %?>
<?% IF allow('tedit') %?>
<a href="javascript:popup('tedit','<?% timerid %?>',620,670,1)">
<img src="images/onoff.<?% 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','<?% timerid %?>',620,670)">
<img src="images/delete.<?% global.imagetyp %?>" alt="" title="<?% gettext("Delete timer") %?>" />
</a>
-->
<?% END %?>
<?% ELSE %?>
<?% IF allow('tnew') %?>
<a href="javascript:popup('tnew','<?% id %?>',620,670,1)">
<img src="images/record.<?% global.imagetyp %?>" alt="" title="<?% gettext("To record") %?>" />
</a>
<?% END %?>
<?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK SetState %?>
<?% state = '' %?>
<?% IF running %?>
<?% state = "running" %?>
<?% ELSIF timerid %?>
<?% UNLESS recording %?>
<?% state = "deactive" %?>
<?% ELSE %?>
<?% state = "active" %?>
<?% END %?>
<?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% BLOCK ItemAsFlat %?>
<?% PROCESS SetState %?>
<tr<?% ' class="two"' IF z mod 2 == 0 %?>>
<td class="fieldinline">
<a class="fieldinline<?% IF state != "";" ";state;END %?>" style="vertical-align:bottom;" href="?cmd=program&data=<?% channel %?><?% IF id > 0 %?>#E<?% id %?><?% END %?>" title="<?% gettext("Program guide for") %?> <?% sender %?>">
<font class="channel<?% IF state != "";" ";state;END %?>"><?% channel %?>. <?% chop(sender,20) %?></font></a>
</td>
<td class="fieldinline">
<a href="javascript:popup('display','<?% id %?>',620,670,0)" class="fieldinline">
<font class="title<?% IF state != "";" ";state;END %?>"><?% chop(title,45) %?></font>
<?% IF subtitle.length > 0 %?><font class="subtitle<?% IF state != "";" ";state;END %?>"> - <?% chop(subtitle,55) %?></font><?% END %?>
</a>
</td>
<td class="fieldinline subtitle<?% IF state != "";" ";state;END %?>" style="white-space: nowrap">
<?% day %?> <?% start %?>-<?% stop %?>
</td>
<td class="fieldinline push">
<?% INCLUDE widgets/tooltip.inc cmd="display" eventid=id linkid=id ttp_offset=-300 %?>
<?% PROCESS RowButtons %?>
</td>
</tr>
<?% IF global.hideDescription != 1 && description.length > 0 %?>
<tr<?% ' class="two"' IF z mod 2 == 0 %?>>
<td class="fieldinline" > </td>
<td class="fieldinline" colspan="4">
<a href="javascript:popup('display','<?% id %?>',620,670,0)" class="fieldinline">
<font class="description<?% IF state != "";" ";state;END %?>"><?% chop(description,100,1) %?></font>
</a>
</td>
</tr>
<?% END %?>
<?% END %?>
<?% ######################################################################## %?>
<?% IF data.size > 1 %?>
<?% fields = data.shift %?>
<h1><?% gettext("Top Ten entrys") %?></h1>
<?% FOREACH zeile IN data %?>
<?% IF verbose;"<!-- Item: ";FOREACH x IN zeile;loop.count - 1;":";x.replace("-"," ");"|";END;"-->";END %?>
<?% id=zeile.0;title=zeile.1;subtitle=zeile.2;sender=zeile.3;
channel=zeile.4;start=zeile.5;stop=zeile.6;day=zeile.7;description=zeile.8;
pdc=zeile.9;timerid=zeile.10;recording=zeile.11;running=zeile.12;
rank=zeile.13;level=zeile.14;quantity=zeile.15;
%?>
<?% IF !old.defined || 1 != old %?>
<?% IF old.defined %?>
</table>
</td>
</tr>
<tr><td class="largebottom"></td></tr>
</table>
<?% END %?>
<table class="largetable" summary="">
<tr><td class="largehead"></td></tr>
<tr>
<td class="largetext" align="left">
<table summary="" width="100%">
<?% z = 1 %?>
<tr height="0"><th width="120"></th><th></th><th width="100"></th><th width="40" align="right"></th></tr>
<?% END %?>
<?% PROCESS ItemAsFlat %?>
<?% old = 1 %?>
<?% z = z + 1 %?>
<?% END %?>
</table>
</td>
</tr>
<tr><td class="largebottom"></td></tr>
</table>
<?% 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 %?>
</td>
</tr>
<tr>
<td class="sidebottom"></td>
</tr>
</table>
<?% END %?>
<table summary="">
<tr><td class="sidehead"><?% gettext("Search",20) %?></td></tr>
<tr>
<td class="sidetext">
<form method="post" action="?cmd=tsearch" name="searchform">
<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>
<p id="sidefooter"> </p>
</div>
<?% INCLUDE header.inc %?>
|