blob: 487a468b21a5dc42f9afeb0a43ed1cdb11f32f86 (
plain)
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
|
<!-- TableTemplate -->
<h1><?% gettext("Wished automated recordings") %?></h1>
<?% IF allow('anew') %?>
<a href="?cmd=anew">[<?% gettext("Create new autotimer") %?>]</a>
<?% END %?>
<a href="#" onClick="suche('<?% gettext("Search text") %?>', '?cmd=asearch&data=')"><?% gettext("Search in autotimer") %?></a>
<?% IF allow('aupdate') %?>
<a href="?cmd=aupdate">[<?% gettext("Search autotimer") %?>]</a>
<?% END %?>
<p>
<table border="0" width="95%">
<form name='Autotimer'>
<?% INCLUDE 'widgets/referer.tmpl' %?>
<?% IF data.size %?>
<?% fields = data.shift %?>
<tr>
<?% FOREACH field IN fields %?>
<th style="white-space: nowrap">
<?% field %?>
<?% IF param.sortable %?>
<a href="?cmd=<?% cgi.param('cmd') %?>&__sortby=<?% field %?>&__desc=0"><img src="images/asc.png"></a>
<a href="?cmd=<?% cgi.param('cmd') %?>&__sortby=<?% field %?>&__desc=1"><img src="images/desc.png"></a>
<?% END %?>
</th>
<?% END %?>
</tr>
<?% x = -1 %?>
<?% FOREACH zeile IN data %?>
<?% IF zeile.1 == 'n' %?>
<?% myclass = "deactive" %?>
<?% ELSE %?>
<?% myclass = "" %?>
<?% END %?>
<?% x = x + 1 %?>
<tr class="<?% myclass %?>" <?% IF (x mod 2) == 0 %?>bgcolor='#F5F5F5'<?% END %?>>
<?% c = 0 %?>
<?% FOREACH field IN zeile %?>
<?% c = c + 1 %?>
<?% IF c == 1; # Id Field %?>
<td><nobr>
<?% IF allow('aedit') %?>
<a title="<?% gettext("Edit autotimer") %?>"
href="?cmd=aedit&data=<?% zeile.0 %?>">[<?% gettext("Edit") %?>]</a>
<?% END %?>
<?% IF allow('adelete') %?>
<a title="<?% gettext("Delete autotimer") %?>"
href="javascript:sure(document.Autotimer, '<?% gettext("Would you like to delete this autotimer?") %?>\n<?% escape(zeile.2) %?>','?cmd=adelete&data=<?% zeile.0 %?>')">
[<?% gettext("Del") %?>]
</a>
<?% END %?>
</td>
<?% ELSIF c == 2; # Activ Field %?>
<td>
<?% aus = gettext('Off') %?>
<?% an = gettext('On') %?>
<?% IF allow('atoggle') %?>
<a href="javascript:tostatus('?cmd=atoggle&data=<?% zeile.0 %?>')">[<?% zeile.1 == 'n' ? aus : an %?>]</a>
<?% ELSE %?>
[<?% zeile.1 == 'n' ? aus : an %?>]
<?% END %?>
</td>
<?% ELSIF c == 4; # Channel Field %?>
<td>
<select style="width: 100%">
<?% FOREACH ch IN field.split(',') %?>
<option><?% ch %?></option>
<?% END %?>
</select>
</td>
<?% ELSE %?>
<td><?% field %?></td>
<?% END %?>
<?% END %?>
</tr>
<?% END %?>
<?% END %?>
</form>
</table>
|