summaryrefslogtreecommitdiff
path: root/template/default/prog_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'template/default/prog_list.html')
-rw-r--r--template/default/prog_list.html143
1 files changed, 77 insertions, 66 deletions
diff --git a/template/default/prog_list.html b/template/default/prog_list.html
index 5bbdd3c..b8308fe 100644
--- a/template/default/prog_list.html
+++ b/template/default/prog_list.html
@@ -2,34 +2,41 @@
<html>
<head>
- <meta http-equiv="content-type" content="text/html;charset=<%! ISO-8859-1 !%>" />
- <title>VDRAdmin-AM - <%! Channels !%></title>
+ <meta http-equiv="content-type" content="text/html;charset=<?% gettext('ISO-8859-1') %?>" />
+ <title>VDRAdmin-AM - <?% gettext('Channels') %?></title>
<link href="style.css" rel="stylesheet" media="screen" type="text/css" />
- <tmpl_if usercss>
+ <?% IF usercss %?>
<link href="user.css" rel="stylesheet" media="screen" type="text/css" />
- </tmpl_if>
+ <?% END %?>
<script type="text/javascript" language="JavaScript" src="library.js"></script>
</head>
<body id="prog_list">
- <form action="<tmpl_var url>" method="get" name="FormName">
+ <form action="<?% url %?>" method="get" name="FormName">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading">
<tr>
<td class="col_title">
+<?% IF progname %?>
<h1>
- <a href="javascript:callurl('<tmpl_var switchurl>');" title="<%! TV select !%>"><tmpl_var progname></a>
-<tmpl_if stream_live_on>
- <span class="action stream"><a href="<tmpl_var streamurl>" title="<%! Stream !%>"><img src="bilder/stream.png" border="0" alt="<%! Stream !%>" onmouseover="window.status='<%! Stream !%>';return true" title="<%! Stream !%>" /></a></span>
-</tmpl_if>
+ <a href="javascript:callurl('<?% switchurl %?>');" title="<?% gettext('TV select') %?>"><?% progname %?></a>
+ <?% IF stream_live_on %?>
+ <span class="action stream"><a href="<?% streamurl %?>" title="<?% gettext('Stream') %?>"><img src="bilder/stream.png" border="0" alt="<?% gettext('Stream') %?>" onmouseover="window.status='<?% gettext('Stream') %?>';return true" title="<?% gettext('Stream') %?>" /></a></span>
+ <?% END %?>
</h1>
+<?% ELSE %?>
+ &nbsp;
+<?% END %?>
</td>
- <td class="col_other"><%! Channel: !%>&nbsp;
- <select name="vdr_id" class="submit" onchange="window.open('<tmpl_var url>?aktion=prog_list&amp;vdr_id=' + this.options[this.selectedIndex].value,'main')">
-<tmpl_loop chanloop>
- <option value="<tmpl_var vdr_id>" <tmpl_if current>selected</tmpl_if>><tmpl_var name escape="html"></option>
-</tmpl_loop>
+ <td class="col_other">
+<?% IF chanloop.size() > 0 %?>
+ <?% gettext('Channel:') %?>&nbsp;
+ <select name="vdr_id" class="submit" onchange="window.open('<?% url %?>?aktion=prog_list&amp;vdr_id=' + this.options[this.selectedIndex].value,'main')">
+ <?% FOREACH chan = chanloop %?>
+ <option value="<?% chan.vdr_id %?>" <?% IF chan.current %?>selected="selected"<?% END %?>><?% chan.name | html %?></option>
+ <?% END %?>
</select>
- <input type="submit" class="submit" name="submit" value="<%! Go! !%>" />
+ <input type="submit" class="submit" name="submit" value="<?% gettext('Go!') %?>" />
+<?% END %?>
</td>
</tr>
</table>
@@ -37,57 +44,61 @@
</form>
<div id="content">
-<tmpl_loop loop>
- <tmpl_if newd>
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight">
- <tr class="heading">
- <td colspan="2">
- <span class="channel_name"><tmpl_var progname></span>
- <span class="date_long"><tmpl_var longdate></span>
- </td>
- <td class="col_navi"><tmpl_if prev_channel><a href="<tmpl_var prev_channel>"><img src="bilder/pfeile_nachlinks.png" border="0" alt="" /></a><tmpl_else><img src="bilder/pfeile_nachlinks_soft.png" border="0" alt="" /></tmpl_if><tmpl_if next_channel><a href="<tmpl_var next_channel>"><img src="bilder/pfeile_nachrechts.png" border="0" alt="" /></a><tmpl_else><img src="bilder/pfeile_nachrechts_soft.png" border="0" alt="" /></tmpl_if></td>
- </tr>
- <tmpl_else>
- <tmpl_unless endd>
- <tr class="<tmpl_if __ODD__>row_odd<tmpl_else>row_even</tmpl_if>">
- <td class="col_duration">
- <a name="<tmpl_var anchor>"><tmpl_var emit> - <tmpl_var duration></a>
- </td>
- <td class="col_title">
- <div class="epg_title">
- <tmpl_if infurl>
- <a href="javascript:popup('<tmpl_var infurl>');" title="<%! More Information !%>">
- </tmpl_if>
- <tmpl_var title>
- <tmpl_if infurl>
- </a>
- </tmpl_if>
- </div>
- <tmpl_if subtitle>
- <div class="epg_subtitle"><tmpl_var subtitle></div>
- <tmpl_else>
- <br />
- </tmpl_if>
- </td>
- <td class="col_buttons">
- <span class="action repeatings"><a href="vdradmin.pl?search=<tmpl_var find_title>&amp;aktion=prog_summary&amp;submit=go11"><img src="bilder/find.png" border="0" alt="<%! Search for other show times !%>" onmouseover="window.status='<%! Search for other show times !%>';return true" title="<%! Search for other show times !%>" /></a></span>
- <tmpl_if infurl>
- <span class="action info"><a href="javascript:popup('<tmpl_var infurl>');" title="<%! More Information !%>"><img src="bilder/info_button.png" border="0" alt="info" /></a></span>
- <tmpl_else>
- <span class="action info"><img src="bilder/info_button_disabled.png" border="0" alt="noinfo" title="<%! No Information !%>" /></span>
- </tmpl_if>
- <span class="action record"><a href="<tmpl_var recurl>"><img src="bilder/rec_button.png" border="0" alt="record" title="<%! Record !%>" /></a></span>
- <tmpl_if imdburl>
- <span class="action imdb"><a href="<tmpl_var imdburl>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>';return true" title="<%! Lookup movie in the Internet-Movie-Database (IMDb) !%>" /></a></span>
- </tmpl_if>
- </td>
- </tr>
- </tmpl_unless>
- </tmpl_if>
- <tmpl_if endd>
- </table>
- </tmpl_if>
-</tmpl_loop>
+<?% IF loop.size() > 0 %?>
+ <?% FOREACH bc = loop %?>
+ <?% IF bc.newd %?>
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list hilight">
+ <tr class="heading">
+ <td colspan="2">
+ <span class="channel_name"><?% bc.progname %?></span>
+ <span class="date_long"><?% bc.longdate %?></span>
+ </td>
+ <td class="col_navi"><?% IF bc.prev_channel %?><a href="<?% bc.prev_channel %?>"><img src="bilder/pfeile_nachlinks.png" border="0" alt="" /></a><?% ELSE %?><img src="bilder/pfeile_nachlinks_soft.png" border="0" alt="" /><?% END %?><?% IF bc.next_channel %?><a href="<?% bc.next_channel %?>"><img src="bilder/pfeile_nachrechts.png" border="0" alt="" /></a><?% ELSE %?><img src="bilder/pfeile_nachrechts_soft.png" border="0" alt="" /><?% END %?></td>
+ </tr>
+ <?% ELSE %?>
+ <?% UNLESS bc.endd %?>
+ <tr class="<?% IF loop.count() % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>">
+ <td class="col_duration">
+ <a name="<?% bc.anchor %?>"><?% bc.emit %?> - <?% bc.duration %?></a>
+ </td>
+ <td class="col_title">
+ <div class="epg_title">
+ <?% IF bc.infurl %?>
+ <a href="javascript:popup('<?% bc.infurl %?>');" title="<?% gettext('More Information') %?>">
+ <?% END %?>
+ <?% bc.title %?>
+ <?% IF bc.infurl %?>
+ </a>
+ <?% END %?>
+ </div>
+ <?% IF bc.subtitle %?>
+ <div class="epg_subtitle"><?% bc.subtitle %?></div>
+ <?% ELSE %?>
+ <br />
+ <?% END %?>
+ </td>
+ <td class="col_buttons">
+ <span class="action repeatings"><a href="vdradmin.pl?search=<?% bc.find_title %?>&amp;aktion=prog_summary&amp;submit=go11"><img src="bilder/find.png" border="0" alt="<?% gettext('Search for other show times') %?>" onmouseover="window.status='<?% gettext('Search for other show times') %?>';return true" title="<?% gettext('Search for other show times') %?>" /></a></span>
+ <?% IF bc.infurl %?>
+ <span class="action info"><a href="javascript:popup('<?% bc.infurl %?>');" title="<?% gettext('More Information') %?>"><img src="bilder/info_button.png" border="0" alt="info" /></a></span>
+ <?% ELSE %?>
+ <span class="action info"><img src="bilder/info_button_disabled.png" border="0" alt="noinfo" title="<?% gettext('No Information') %?>" /></span>
+ <?% END %?>
+ <span class="action record"><a href="<?% bc.recurl %?>"><img src="bilder/rec_button.png" border="0" alt="record" title="<?% gettext('Record') %?>" /></a></span>
+ <?% IF bc.imdburl %?>
+ <span class="action imdb"><a href="<?% bc.imdburl %?>" target="_blank"><img src="bilder/imdb.png" border="0" alt="IMDb" onmouseover="window.status='<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>';return true" title="<?% gettext('Lookup movie in the Internet-Movie-Database (IMDb)') %?>" /></a></span>
+ <?% END %?>
+ </td>
+ </tr>
+ <?% END %?>
+ <?% END %?>
+ <?% IF bc.endd %?>
+ </table>
+ <?% END %?>
+ <?% END %?>
+<?% ELSE %?>
+ <div class="warning"><?% gettext('No EPG information available') %?></div>
+<?% END %?>
</div>
</body>