Project

General

Profile

Feature #2235 » changes.git.log

flobee, 09/09/2015 09:36 PM

 
diff --git a/template/default/epgsearch_list.html b/template/default/epgsearch_list.html
index b93cd57..9fec44c 100644
--- a/template/default/epgsearch_list.html
+++ b/template/default/epgsearch_list.html
@@ -2,281 +2,288 @@
<html id="scroller">
<?% USE JavaScript, HTML %?>
<head>
- <meta http-equiv="content-type" content="text/html;charset=<?% charset %?>"/>
- <title>VDRAdmin-AM - <?% gettext('EPG search') %?></title>
- <link href="style.css" rel="stylesheet" media="screen" type="text/css"/>
- <?% IF usercss %?>
- <link href="user.css" rel="stylesheet" media="screen" type="text/css"/>
- <?% END %?>
- <script type="text/javascript" language="JavaScript1.2" src="library.js"></script>
- <?% IF config.AT_TOOLTIP %?>
- <script type="text/javascript" language="JavaScript1.2" src="infobox.js"></script>
- <?% END %?>
+ <meta http-equiv="content-type" content="text/html;charset=<?% charset %?>"/>
+ <title>VDRAdmin-AM - <?% gettext('EPG search') %?></title>
+ <link href="style.css" rel="stylesheet" media="screen" type="text/css"/>
+ <?% IF usercss %?>
+ <link href="user.css" rel="stylesheet" media="screen" type="text/css"/>
+ <?% END %?>
+ <script type="text/javascript" language="JavaScript1.2" src="library.js"></script>
+
+ <?% IF config.AT_TOOLTIP %?>
+ <script type="text/javascript" language="JavaScript1.2" src="infobox.js"></script>
+ <?% END %?>
</head>
<body id="epgsearch_list">
<?% UNLESS did_search %?>
- <form action="<?% url %?>" method="get" name="FormName0">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading">
- <tr>
- <td class="col_title">
- <h1><?% gettext('EPG Search') %?></h1>
- </td>
- <td class="col_other">
- <?% IF templates.size() > 0 %?>
- <?% gettext('Use template') %?>
- <select name="template">
- <?% FOREACH templ = templates %?>
- <option value="<?% templ.id %?>" <?% IF templ.sel %?>selected="selected"<?% END %?>><?% templ.pattern %?></option>
- <?% END %?>
- </select>
- <?% END %?>
- <input type="submit" class="submit" name="new_search" value="<?% gettext('New Search') %?>" />
- <input type="submit" class="submit" name="edit_template" value="<?% gettext('Edit Template') %?>" />
- <input type="hidden" name="aktion" value="epgsearch_edit" />
- </td>
- <td class="col_help">
+ <form action="<?% url %?>" method="get" name="FormName0">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading">
+ <tr>
+ <td class="col_title">
+ <h1><?% gettext('EPG Search') %?></h1>
+ </td>
+ <td class="col_other">
+ <?% IF templates.size() > 0 %?>
+ <?% gettext('Use template') %?>
+ <select name="template">
+ <?% FOREACH templ = templates %?>
+ <option value="<?% templ.id %?>" <?% IF templ.sel %?>selected="selected"<?% END %?>><?% templ.pattern %?></option>
+ <?% END %?>
+ </select>
+ <?% END %?>
+ <input type="submit" class="submit" name="new_search" value="<?% gettext('New Search') %?>" />
+ <input type="submit" class="submit" name="edit_template" value="<?% gettext('Edit Template') %?>" />
+ <input type="hidden" name="aktion" value="epgsearch_edit" />
+ </td>
+ <td class="col_help">
<?% IF config_url %?>
<a href="<?% config_url %?>"><img src="bilder/configure.png" border="0" alt="settings" title="<?% gettext('Settings') %?>"/></a>
<?% END %?>
<?% IF help_url %?>
- <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>"/></a>
+ <a href="javascript:open_help('<?% help_url %?>');"><img src="bilder/help.png" border="0" alt="help" title="<?% gettext('Help') %?>"/></a>
<?% END %?>
- </td>
- </tr>
- </table>
- </form>
+ </td>
+ </tr>
+ </table>
+ </form>
<?% IF error_msg %?>
- <div class="error"><?% error_msg %?></div>
+ <div class="error"><?% error_msg %?></div>
<?% END %?>
- <form action="<?% url %?>" method="get" name="FormName">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="list hilight">
- <tr class="heading">
- <td class="col_active <?% IF sortbyactive %?>selected<?% END %?>">
- <h2>
- <a href="<?% sortbyactiveurl %?>"><?% gettext('Active') %?>
- <?% IF sortbyactive %?>
- <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
- <?% ELSE %?>
- <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
- <?% END %?>
- </a>
- </h2>
- </td>
- <td class="col_action <?% IF sortbyaction %?>selected<?% END %?>">
- <h2>
- <a href="<?% sortbyactionurl %?>"><?% gettext('Action') %?>
- <?% IF sortbyaction %?>
- <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
- <?% ELSE %?>
- <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
- <?% END %?>
- </a>
- </h2>
- </td>
- <td class="col_channel <?% IF sortbychannel %?>selected<?% END %?>">
- <h2>
- <?% gettext('Channel') %?>
- <!--
- <a href="<?% sortbychannelurl %?>"><?% gettext('Channel') %?>
- <?% IF sortbychannel %?>
- <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
- <?% ELSE %?>
- <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
- <?% END %?>
- </a>
- -->
- </h2>
- </td>
- <td class="col_start <?% IF sortbystart %?>selected<?% END %?>">
- <h2>
- <?% gettext('From') %?>
- <!--
- <a href="<?% sortbystarturl %?>"><?% gettext('Start') %?>
- <?% IF sortbystart %?>
- <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
- <?% ELSE %?>
- <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
- <?% END %?>
- </a>
- -->
- </h2>
- </td>
- <td class="col_stop <?% IF sortbystop %?>selected<?% END %?>">
- <h2>
- <?% gettext('To') %?>
- <!--
- <a href="<?% sortbystopurl %?>"><?% gettext('Stop') %?>
- <?% IF sortbystop %?>
- <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
- <?% ELSE %?>
- <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
- <?% END %?>
- </a>
- -->
- </h2>
- </td>
- <td class="col_name <?% IF sortbypattern %?>selected<?% END %?>">
- <h2>
- <a href="<?% sortbypatternurl %?>"><?% gettext('Search pattern') %?>
- <?% IF sortbypattern %?>
- <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
- <?% ELSE %?>
- <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
- <?% END %?>
- </a>
- </h2>
- </td>
- <td class="col_buttons"></td>
- <td class="col_checkbox"><input type="checkbox" name="SELALL" value="SELALL" onclick="AllMessages(this.form);" title="<?% gettext('Select all/none') %?>"/></td>
- </tr>
+ <form action="<?% url %?>" method="get" name="FormName">
+
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" id="content" class="list hilight">
+ <tr class="heading">
+ <td class="col_active <?% IF sortbyactive %?>selected<?% END %?>">
+ <h2>
+ <a href="<?% sortbyactiveurl %?>"><?% gettext('Active') %?>
+ <?% IF sortbyactive %?>
+ <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
+ <?% ELSE %?>
+ <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
+ <?% END %?>
+ </a>
+ </h2>
+ </td>
+ <td class="col_action <?% IF sortbyaction %?>selected<?% END %?>">
+ <h2>
+ <a href="<?% sortbyactionurl %?>"><?% gettext('Action') %?>
+ <?% IF sortbyaction %?>
+ <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
+ <?% ELSE %?>
+ <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
+ <?% END %?>
+ </a>
+ </h2>
+ </td>
+ <td class="col_channel <?% IF sortbychannel %?>selected<?% END %?>">
+ <h2>
+ <?% gettext('Channel') %?>
+ <!--
+ <a href="<?% sortbychannelurl %?>"><?% gettext('Channel') %?>
+ <?% IF sortbychannel %?>
+ <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
+ <?% ELSE %?>
+ <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
+ <?% END %?>
+ </a>
+ -->
+ </h2>
+ </td>
+ <td class="col_start <?% IF sortbystart %?>selected<?% END %?>">
+ <h2>
+ <?% gettext('From') %?>
+ <!--
+ <a href="<?% sortbystarturl %?>"><?% gettext('Start') %?>
+ <?% IF sortbystart %?>
+ <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
+ <?% ELSE %?>
+ <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
+ <?% END %?>
+ </a>
+ -->
+ </h2>
+ </td>
+ <td class="col_stop <?% IF sortbystop %?>selected<?% END %?>">
+ <h2>
+ <?% gettext('To') %?>
+ <!--
+ <a href="<?% sortbystopurl %?>"><?% gettext('Stop') %?>
+ <?% IF sortbystop %?>
+ <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
+ <?% ELSE %?>
+ <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
+ <?% END %?>
+ </a>
+ -->
+ </h2>
+ </td>
+ <td colspan="3" class="col_name <?% IF sortbypattern %?>selected<?% END %?>">
+ <h2>
+ <a href="<?% sortbypatternurl %?>"><?% gettext('Search pattern') %?>
+ <?% IF sortbypattern %?>
+ <img src="bilder/sortiert_<?% desc %?>.gif" alt="" width="9" height="11" border="0"/>
+ <?% ELSE %?>
+ <img src="bilder/spacer.gif" alt="" width="9" height="11" border="0"/>
+ <?% END %?>
+ </a>
+ </h2>
+ <!-- flobee adds -->
+ <div style="float: right;" align="right">
+ Select: <a href="javascript:CheckboxCheck('ignoreactiv', document.forms['FormName']);" title="<?% gettext('InActiv timers') %?>"><?% gettext('InActiv&nbsp;timers') %?></a> -
+ <a href="javascript:CheckboxCheck('toggle', document.forms['FormName']);" title="<?% gettext('Toggle selection') %?>">Toggle</a> -
+ <a href="javascript:CheckboxCheck('all', document.forms['FormName']);" title="<?% gettext('Select all') %?>">All</a> -
+ <a href="javascript:CheckboxCheck('none', document.forms['FormName']);" title="<?% gettext('Select none') %?>">None</a>
+ </div>
+ </td>
+ </tr>
<?% FOREACH searches %?>
- <tr class="<?% IF loop.count % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>">
- <td class="col_active <?% IF sortbyactive %?>selected<?% END %?>">
- <div>
- <?% IF has_action %?>
- <a href="<?% toggleurl %?>"><img src="bilder/poempl_gruen.png" alt="" align="middle" border="0"/> <?% gettext('Yes') %?></a>
- <?% ELSE %?>
- <a href="<?% toggleurl %?>"><img src="bilder/poempl_grau.png" alt="" align="middle" border="0"/> <?% gettext('No') %?></a>
- <?% END %?>
- </div>
- </td>
- <td class="col_active <?% IF sortbyactive %?>selected<?% END %?>">
- <div><?% action_text %?></div>
- </td>
- <td class="col_channel <?% IF sortbychannel %?>selected<?% END %?>">
- <div>
- <?% SWITCH use_channel %?>
- <?% CASE 1 %?>
- <?% channel_from_name %?><?% IF channel_from_name != channel_to_name %?> - <?% channel_to_name %?><?% END %?>
- <?% CASE 2 %?>
- <?% channels %?>
- <?% CASE %?>
- -
- <?% END %?>
- </div>
- </td>
- <td class="col_start <?% IF sortbystart %?>selected<?% END %?>">
- <div>
- <?% IF time_start %?><?% time_start %?><?% ELSE %?>--:--<?% END %?>
- </div>
- </td>
- <td class="col_stop <?% IF sortbystop %?>selected<?% END %?>">
- <div>
- <?% IF time_stop %?><?% time_stop %?><?% ELSE %?>--:--<?% END %?>
- </div>
- </td>
- <td class="col_name <?% IF sortbypattern %?>selected<?% END %?>">
- <div>
- <a href="<?% modurl %?>" title="<?% gettext('Edit') %?>"><?% pattern | html %?></a>
- </div>
- </td>
- <td class="col_buttons">
- <span class="action find">
- <a href="<?% findurl %?>"><img src="bilder/find.png" alt="find" border="0" title="<?% gettext('Find') %?>"/></a>
- </span>
- <span class="action edit">
- <a href="<?% modurl %?>"><img src="bilder/edit.png" alt="edit" border="0" title="<?% gettext('Edit') %?>"/></a>
- </span>
- <span class="action delete">
- <a href="javascript:del('<?% gettext('Delete timer?') %?>\n\n&quot;<?% pattern | js %?>&quot;', '<?% delurl %?>');"><img src="bilder/delete.png" alt="delete" border="0" title="<?% gettext('Delete') %?>"/></a>
- </span>
- </td>
- <td class="col_checkbox">
- <div>
- <input type="checkbox" name="xxxx_<?% id %?>"/>
- </div>
- </td>
- </tr>
+ <tr class="<?% IF loop.count % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>">
+ <td class="col_active <?% IF sortbyactive %?>selected<?% END %?>">
+ <div>
+ <?% IF has_action %?>
+ <a href="<?% toggleurl %?>"><img src="bilder/poempl_gruen.png" alt="" align="middle" border="0"/> <?% gettext('Yes') %?></a>
+ <?% ELSE %?>
+ <a href="<?% toggleurl %?>"><img src="bilder/poempl_grau.png" alt="" align="middle" border="0"/> <?% gettext('No') %?></a>
+ <?% END %?>
+ </div>
+ </td>
+ <td class="col_active <?% IF sortbyactive %?>selected<?% END %?>">
+ <div><?% action_text %?></div>
+ </td>
+ <td class="col_channel <?% IF sortbychannel %?>selected<?% END %?>">
+ <div>
+ <?% SWITCH use_channel %?>
+ <?% CASE 1 %?>
+ <?% channel_from_name %?><?% IF channel_from_name != channel_to_name %?> - <?% channel_to_name %?><?% END %?>
+ <?% CASE 2 %?>
+ <?% channels %?>
+ <?% CASE %?>
+ -
+ <?% END %?>
+ </div>
+ </td>
+ <td class="col_start <?% IF sortbystart %?>selected<?% END %?>">
+ <div>
+ <?% IF time_start %?><?% time_start %?><?% ELSE %?>--:--<?% END %?>
+ </div>
+ </td>
+ <td class="col_stop <?% IF sortbystop %?>selected<?% END %?>">
+ <div>
+ <?% IF time_stop %?><?% time_stop %?><?% ELSE %?>--:--<?% END %?>
+ </div>
+ </td>
+ <td class="col_name <?% IF sortbypattern %?>selected<?% END %?>">
+ <div>
+ <a href="<?% modurl %?>" title="<?% gettext('Edit') %?>"><?% pattern | html %?></a>
+ </div>
+ </td>
+ <td class="col_buttons">
+ <span class="action find">
+ <a href="<?% findurl %?>"><img src="bilder/find.png" alt="find" border="0" title="<?% gettext('Find') %?>"/></a>
+ </span>
+ <span class="action edit">
+ <a href="<?% modurl %?>"><img src="bilder/edit.png" alt="edit" border="0" title="<?% gettext('Edit') %?>"/></a>
+ </span>
+ <span class="action delete">
+ <a href="javascript:del('<?% gettext('Delete timer?') %?>\n\n&quot;<?% pattern | js %?>&quot;', '<?% delurl %?>');"><img src="bilder/delete.png" alt="delete" border="0" title="<?% gettext('Delete') %?>"/></a>
+ </span>
+ </td>
+ <td class="col_checkbox">
+ <div>
+ <input type="checkbox" name="xxxx_<?% id %?>" <?% IF has_action %?> id="activetimer" <?% END %?>/>
+ </div>
+ </td>
+ </tr>
<?% END %?>
- </table>
+ </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0" id="buttons">
- <tr>
- <td align="left">
- <input type="submit" class="submit" name="favorites" value="<?% gettext('Show Favorites') %?>" />
- <input type="submit" class="submit" name="upds" value="<?% gettext('Force Update') %?>" />
- </td>
- <td align="right">
- <input type="submit" class="submit" name="delete" value="<?% gettext('Delete Selected Searches') %?>" onclick="return mdel(this, '<?% gettext('Delete all selected searches?') %?>');" />
- <input type="submit" class="submit" name="execute" value="<?% gettext('Execute Selected Searches') %?>" />
- </td>
- </tr>
- </table>
- <input type="hidden" name="aktion" value="epgsearch_aktion"/>
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" id="buttons">
+ <tr>
+ <td align="left">
+ <input type="submit" class="submit" name="favorites" value="<?% gettext('Show Favorites') %?>" />
+ <input type="submit" class="submit" name="upds" value="<?% gettext('Force Update') %?>" />
+ </td>
+ <td align="right">
+ <input type="submit" class="submit" name="delete" value="<?% gettext('Delete Selected Searches') %?>" onclick="return mdel(this, '<?% gettext('Delete all selected searches?') %?>');" />
+ <input type="submit" class="submit" name="execute" value="<?% gettext('Execute Selected Searches') %?>" />
+ </td>
+ </tr>
+ </table>
+ <input type="hidden" name="aktion" value="epgsearch_aktion"/>
- </form>
+ </form>
<?% END %?>
<?% IF did_search %?>
- <form action="<?% url %?>" method="get" name="FormName0">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading">
- <tr>
- <td class="col_title">
- <h1><?% title %?></h1>
- </td>
- </tr>
- </table>
- </form>
+ <form action="<?% url %?>" method="get" name="FormName0">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" id="heading">
+ <tr>
+ <td class="col_title">
+ <h1><?% title %?></h1>
+ </td>
+ </tr>
+ </table>
+ </form>
- <?% IF matches.size() > 0 %?>
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list" id="content">
- <!--
- <tr class="heading">
- <td class="col_duration"><h2><?% gettext('Duration') %?></h2></td>
- <td class="col_center"><h2><?% gettext('Title') %?></h2></td>
- <td class="col_channel"><h2><?% gettext('Channel') %?></h2></td>
- <td class="col_folder"><h2><?% gettext('Stored in') %?></h2></td>
- <td class="col_buttons"></td>
- </tr>
- -->
- <?% FOREACH matches;
- IF olddate != date;
- olddate = date; %?>
- <tr class="newday">
- <td colspan="5"><span class="date_long"><?% date %?></span></td>
- </tr>
- <?% END %?>
- <tr class="<?% IF loop.count % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>">
- <td class="col_duration">
- <span class="time_duration"><span class="time_start"><?% start %?></span> - <span class="time_stop"><?% stop %?></span></span>
- </td>
- <td class="col_center">
- <div class="epg_title">
- <?% IF infurl %?>
- <a href="javascript:popup('<?% infurl %?>', <?% config.GUI_POPUP_WIDTH %?>, <?% config.GUI_POPUP_HEIGHT %?>);" title="<?% gettext('More Information') %?>">
- <?% END %?>
- <?% title %?>
- <?% IF infurl %?>
- </a>
- <?% END %?>
- </div>
- <?% IF subtitle %?>
- <div class="epg_subtitle"><?% subtitle %?></div>
- <?% ELSE %?>
- <div class="epg_subtitle">&nbsp;</div>
- <?% END %?>
- </td>
- <td class="col_channel">
- <div class="channel_name"><a href="<?% proglink %?>" title="<?% gettext('Channels') %?>"><?% channel %?></a></div>
- </td>
- <td class="col_folder">
- <?% folder %?>
- </td>
- <td class="col_folder">
- <?% IF recurl %?>
- <span class="action record"><a href="<?% recurl %?>"><img src="bilder/rec_button.png" border="0" alt="record" title="<?% gettext('Record') %?>" /></a></span>
- <?% END %?>
- </td>
- </tr>
- <?% END %?>
- </table>
- <?% ELSE %?>
- <div class="warning"><?% gettext('No matches found!') %?></div>
- <?% END %?>
+ <?% IF matches.size() > 0 %?>
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list" id="content">
+ <!--
+ <tr class="heading">
+ <td class="col_duration"><h2><?% gettext('Duration') %?></h2></td>
+ <td class="col_center"><h2><?% gettext('Title') %?></h2></td>
+ <td class="col_channel"><h2><?% gettext('Channel') %?></h2></td>
+ <td class="col_folder"><h2><?% gettext('Stored in') %?></h2></td>
+ <td class="col_buttons"></td>
+ </tr>
+ -->
+ <?% FOREACH matches;
+ IF olddate != date;
+ olddate = date; %?>
+ <tr class="newday">
+ <td colspan="5"><span class="date_long"><?% date %?></span></td>
+ </tr>
+ <?% END %?>
+ <tr class="<?% IF loop.count % 2 == 0 %?>row_even<?% ELSE %?>row_odd<?% END %?>">
+ <td class="col_duration">
+ <span class="time_duration"><span class="time_start"><?% start %?></span> - <span class="time_stop"><?% stop %?></span></span>
+ </td>
+ <td class="col_center">
+ <div class="epg_title">
+ <?% IF infurl %?>
+ <a href="javascript:popup('<?% infurl %?>', <?% config.GUI_POPUP_WIDTH %?>, <?% config.GUI_POPUP_HEIGHT %?>);" title="<?% gettext('More Information') %?>">
+ <?% END %?>
+ <?% title %?>
+ <?% IF infurl %?>
+ </a>
+ <?% END %?>
+ </div>
+ <?% IF subtitle %?>
+ <div class="epg_subtitle"><?% subtitle %?></div>
+ <?% ELSE %?>
+ <div class="epg_subtitle">&nbsp;</div>
+ <?% END %?>
+ </td>
+ <td class="col_channel">
+ <div class="channel_name"><a href="<?% proglink %?>" title="<?% gettext('Channels') %?>"><?% channel %?></a></div>
+ </td>
+ <td class="col_folder">
+ <?% folder %?>
+ </td>
+ <td class="col_folder">
+ <?% IF recurl %?>
+ <span class="action record"><a href="<?% recurl %?>"><img src="bilder/rec_button.png" border="0" alt="record" title="<?% gettext('Record') %?>" /></a></span>
+ <?% END %?>
+ </td>
+ </tr>
+ <?% END %?>
+ </table>
+ <?% ELSE %?>
+ <div class="warning"><?% gettext('No matches found!') %?></div>
+ <?% END %?>
<?% END %?>
</body>
diff --git a/template/default/library.js b/template/default/library.js
index d307ca6..023cbc2 100644
--- a/template/default/library.js
+++ b/template/default/library.js
@@ -47,3 +47,49 @@ function AllMessages(myform) {
}
}
}
+
+/**
+ * checkbox check none, all or toggle.
+ *
+ * $Id: script.lib.js 2030 2011-02-06 16:21:17Z flobee $
+ * @param string what none|all|toggle|ignoreactiv
+ * @param string theform The form name where the checkboxes are
+ */
+function CheckboxCheck(what, theform)
+{
+ var fieldcnt = theform.elements.length;
+
+ for (cnt=0; cnt < fieldcnt; cnt++)
+ {
+ var y = theform.elements[cnt];
+
+ switch(what) {
+ case 'all':
+ y.checked = true;
+ break;
+
+ case 'none':
+ y.checked = false;
+ break;
+
+ case 'toggle':
+ if(y.checked) {
+ y.checked = false;
+ } else {
+ y.checked = true;
+ }
+ break;
+
+ case 'ignoreactiv':
+ if (y.id != undefined && y.id == 'activetimer') {
+ y.checked = false;
+ } else {
+ y.checked = true;
+ }
+ break;
+ }
+ }
+
+ return void(0);
+}
+
(1-1/2)