summaryrefslogtreecommitdiff
path: root/html/tlist.tmpl
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-08-13 18:41:27 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-08-13 18:41:27 +0000
commitbcbf441e09fb502cf64924ff2530fa144bdf52c5 (patch)
treef377707a2dac078db8cd0c7d7abfe69ac1006d71 /html/tlist.tmpl
downloadxxv-bcbf441e09fb502cf64924ff2530fa144bdf52c5.tar.gz
xxv-bcbf441e09fb502cf64924ff2530fa144bdf52c5.tar.bz2
* Move files to trunk
Diffstat (limited to 'html/tlist.tmpl')
-rw-r--r--html/tlist.tmpl143
1 files changed, 143 insertions, 0 deletions
diff --git a/html/tlist.tmpl b/html/tlist.tmpl
new file mode 100644
index 0000000..ab5c825
--- /dev/null
+++ b/html/tlist.tmpl
@@ -0,0 +1,143 @@
+<!-- tlist -->
+<?% USE date %?>
+<?% enableform = allow('tdelete') || allow('ttoggle');
+ rest = param.capacity;
+%?>
+
+<?% IF data.size <= 1 %?>
+<h1><?% gettext("Planned recordings") %?></h1>
+<?% ELSE %?>
+<h1><?% gettext("Planned recordings") %?> - <?% date.format(data.1.9, "%A, %x", locale) %?></h1>
+<?% END %?>
+
+<?% IF allow('tnew') %?>
+<a href="?cmd=tnew">[<?% gettext("Create a new timer") %?>]</a>
+<?% END %?>
+<?% IF allow('tupdate') %?>
+<a href="javascript:tostatus('?cmd=tupdate')">[<?% gettext("Update timers") %?>]</a>
+<?% END %?>
+<form name='Timer'>
+<?% INCLUDE 'widgets/referer.tmpl' %?>
+
+<?% IF allow('ttoggle') %?>
+<a href="#" onClick="Toggle('<?% gettext("You have nothing selected!") %?>',document.TimerList)">
+ [<?% gettext("Toggle timer") %?>]
+</a>
+<?% END %?>
+<?% IF allow('tdelete') %?>
+<a href="#" onClick="Delete('<?% gettext("You would delete follow timers?") %?>',
+'<?% gettext("You have nothing selected!") %?>','tdelete',document.TimerList)">
+ [<?% gettext("Delete timer") %?>]
+</a>
+&nbsp;
+<?% END %?>
+ <?% gettext("Search for timers") %?>:
+ <input type="hidden" name="cmd" value='tsearch' >
+ <input type="text" name="data" size='18' <?% IF cgi.param('cmd')=='ts' || cgi.param('cmd')=='tsearch' %?>value='<?% cgi.param('data')%?>'<?% END %?>>
+</form>
+<?% IF enableform %?>
+<form name='TimerList'>
+ <?% INCLUDE 'widgets/referer.tmpl' %?>
+<?% END %?>
+<table border="0" width="95%">
+ <tr>
+ <?% fields = data.shift %?>
+ <?% FOREACH field = fields %?>
+ <?% NEXT IF field.match('^__') %?>
+ <th><?% field %?></th>
+ <?% END %?>
+<?% IF enableform %?>
+ <th><?% gettext("Select") %?></th>
+<?% END %?>
+ </tr>
+ <?% FOREACH zeile = data %?>
+ <?% aktiv = ( zeile.1 mod 2 );
+ vps = zeile.1 mod 8 div 4;
+ day = date.format(zeile.9, "%A, %x", locale);
+ IF aktiv; rest = rest - zeile.last; END;
+ %?>
+ <?% IF oldDay != day %?>
+ <tr><td colspan='<?% zeile.size + 1 %?>' bgcolor='#DDDDDD'><b><?% day %?></b></td><tr>
+ <?% END %?>
+ <?% myclass = "normal" %?>
+ <?% UNLESS aktiv %?>
+ <?% myclass = "deactive" %?>
+ <?% ELSIF zeile.10 %?>
+ <?% myclass = 'problem' %?>
+ <?% ELSIF param.runningTimer.exists(zeile.0) %?>
+ <?% myclass = "active" %?>
+ <?% END %?>
+ <tr class="<?% myclass %?>" <?% IF (loop.count mod 2) == 0 %?>bgcolor='#F5F5F5'<?% END %?>>
+ <?% c = -1 %?>
+ <?% FOREACH field = zeile %?>
+ <?% c = c + 1 %?>
+ <?% NEXT IF fields.$c.match('^__') %?>
+ <?% IF c == 0; # Id Field %?>
+ <td nowrap><nobr>
+ <a href="?cmd=search&amp;data=<?% url( zeile.7.split('~').last ) %?>" title="<?% gettext("Search for repeats") %?>"><div class="<?% myclass %?>">[R]</div></a>
+ <?% IF allow('tedit') %?>
+ <a href="?cmd=tedit&amp;data=<?% zeile.0 %?>" title="<?% gettext("Edit this timer") %?>"><div class="<?% myclass %?>">[E]</div></a>
+ <?% END %?>
+ <?% IF allow('tdelete') %?>
+ <a href="javascript:sure(document.TimerList, '<?% gettext("You will delete this timer") %?> : <?% escape(zeile.7.split('~').first) %?>','?cmd=tdelete&amp;data=<?% zeile.0 %?>')" title="<?% gettext("Delete this timer") %?>"><div class="<?% myclass %?>">[D]</div></a>
+ <?% END %?>
+ </td>
+ <?% ELSIF c == 1; # Id Status %?>
+ <td>
+ <?% aus = gettext('Off') %?>
+ <?% an = gettext('On') %?>
+ <?% IF allow('ttoggle') %?>
+ <a name='<?% zeile.0 %?>' href="javascript:tostatus('?cmd=ttoggle&amp;data=<?% zeile.0 %?>', <?% zeile.0 %?>)" title="<?% gettext("Toggle timer") %?>&nbsp;<?% aktiv ? aus : an %?>"><div class="<?% myclass %?>">[<?% aktiv ? an : aus %?>]</div></a>
+ <?% vps ? '(VPS)' : '' %?>
+ <?% IF zeile.12 && allow('aedit') %?>
+ <a href="?cmd=aedit&amp;data=<?% zeile.12 %?>" title="<?% gettext("Edit autotimer") %?>"><div class="<?% myclass %?>">(AT)</div></a><br>
+ <?% END %?>
+ <?% IF rest <= 0 %?><a href="javascript:alert('<?% gettext("Not enough space to record this timer!") %?>')">(!)</a><br/><?% END %?>
+ <?% ELSE %?>
+ [<?% aktiv ? aus : an %?>]<?% vps ? '&nbsp;(VPS)' : '' %?>
+ <?% END %?>
+
+ <?% level = getModule('SHARE').getEventLevel(zeile.11) %?>
+ <?% IF level %?><?% "*" FILTER repeat(level) %?><?% END %?>
+ </td>
+ <?% ELSIF c == 2; # Channel Field %?>
+ <td nowrap>
+ <a href="?cmd=program&amp;data=<?% field %?>" title="<?% gettext("Jump to program guide:") %?> <?% zeile.2 %?>"><div class="<?% myclass %?>"><?% zeile.2 %?></div></a>
+ </td>
+ <?% ELSIF c == 7; # Title %?>
+ <td>
+ <?% IF zeile.11 %?><?% INCLUDE bloecke/tooltip.tmpl cmd="display" title=field desc=zeile.14 eventid=zeile.11 linkid=zeile.11 ttp_offset=0 %?><?% END %?>
+ <?% FOREACH f = field.split('~') %?>
+ <div class="<?% myclass %?>"><?% f %?></div>
+ <?% END %?>
+ <?% IF zeile.11 %?></a><?% END %?>
+ </td>
+ <?% ELSIF c == 8; # Prio %?>
+ <td>
+ <?% IF myclass == 'fastproblem' %?>
+ <div class="fastproblemgreen"><?% field %?></div>
+ <?% ELSIF myclass == 'problem' %?>
+ <div class="problemred"><?% field %?></div>
+ <?% ELSE %?>
+ <?% field %?>
+ <?% END %?>
+ </td>
+ <?% ELSE %?>
+ <td><?% field %?></td>
+ <?% END %?>
+ <?% END %?>
+ <?% IF enableform %?>
+ <td>
+ <input type="checkbox" value="<?% zeile.0 %?>" name="<?% zeile.7 | replace('~',' ') %?>" />
+ </td>
+ <?% END %?>
+ </tr>
+ <?% oldDay = day %?>
+ <?% END %?>
+</table>
+<?% IF enableform %?>
+</form>
+<a href="#" onClick="selAll(document.TimerList, 1)">[<?% gettext("Select all") %?>]</a>
+<a href="#" onClick="selAll(document.TimerList, 0)">[<?% gettext("Unselect all") %?>]</a>
+<a href="#" onClick="reverse(document.TimerList)">[<?% gettext("Reverse select") %?>]</a>
+<?% END %?>