diff options
author | Andreas Mair <amair.sob@googlemail.com> | 2006-09-06 12:55:02 +0200 |
---|---|---|
committer | Andreas Mair <amair.sob@googlemail.com> | 2006-09-06 12:55:02 +0200 |
commit | b689d61d6a800ef8a74f74f08f05218770e0f52d (patch) | |
tree | da884f9eb3c93b66e60a361e3e730a044533d0f4 /template/default/prog_list.html | |
parent | 8652aa0a9b228e21df5dd68ccf83badb5e20bab8 (diff) | |
download | vdradmin-am-3.4.7beta.tar.gz vdradmin-am-3.4.7beta.tar.bz2 |
2006-09-06: 3.4.7betav3.4.7beta
- Fixed: Smaller bugs (see ChangeLog).
- Changed: Hide select boxes for templates and skins if it contains only a single choice.
- Fixed: Another fix for the refering pages problem(s).
- Changed: Hide "AutoTimer" menu item unless $FEATURE{AUTOTIMER} is set.
- Changed: Use date instead of empty subtitle in timers programed by AutoTimer with activated "Episode" option.
- Fixed: Don't show outdated broadcast as search result.
- Added: Display warning message if lists is empty.
- Added: UTF8 locales patch by Zoolook (see Bug #124).
- Fixed: AutoTimer test feature didn't find broadcasts if they were in vdradmind.done.
- Removed: HTML::Template dependency.
- Changed: Only use Template-Toolkit's Template.pm.
- Fixed: Hide "switch" button in prog_summary2 if broadcast is not running (Based on suggestion by Hardy Flor).
- Fixed: Initial display of rec_list was empty.
- Added: New PLAY and EDIT actions in rec_list.
- Added: Remember selected size and interval in TV.
- Added: check for features available with VDR's SVDRP, disable missing ones and show them in about.html (ATM used for RENR).
- Changed: handling of sorting in rec_list (should always keep the current sorting).
- Changed: handling of sorting in at_timer_list (should always keep the current sorting).
- New: option to autosave config on exit (also saves sorting state in lists and viewmode in prog_summary).
- Added: Czech translation (Submitted by Karel Borkovec).
- Changed: handling of sorting in timer_list (should always keep the current sorting).
- Changed: Moved favicon.ico from a template's skin folder to the template's main folder.
Diffstat (limited to 'template/default/prog_list.html')
-rw-r--r-- | template/default/prog_list.html | 143 |
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 %?> + +<?% END %?> </td> - <td class="col_other"><%! Channel: !%> - <select name="vdr_id" class="submit" onchange="window.open('<tmpl_var url>?aktion=prog_list&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:') %?> + <select name="vdr_id" class="submit" onchange="window.open('<?% url %?>?aktion=prog_list&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>&aktion=prog_summary&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 %?>&aktion=prog_summary&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> |