diff options
Diffstat (limited to 'pages/searchepg.ecpp')
-rw-r--r-- | pages/searchepg.ecpp | 479 |
1 files changed, 237 insertions, 242 deletions
diff --git a/pages/searchepg.ecpp b/pages/searchepg.ecpp index bb33c91..da86589 100644 --- a/pages/searchepg.ecpp +++ b/pages/searchepg.ecpp @@ -69,8 +69,8 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); }> <%cpp> -#define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" ); -#define CHECKIF(x) reply.out() << ( (x) ? "checked=\"checked\"" : "" ); +#define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" ); +#define CHECKIF(x) reply.out() << ( (x) ? "checked=\"checked\"" : "" ); searchtimer = 0; @@ -96,7 +96,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); infos.push_back(os.str()); } searchtimer.SetExtEPGInfo(infos); - } + } searchtimer.SetUseChannel((SearchTimer::eUseChannel)usechannel); if (usechannel == SearchTimer::Interval) { @@ -105,19 +105,19 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); } if (usechannel == SearchTimer::Group) searchtimer.SetChannelText(changrpsel); - + searchtimer.SetUseTime(usetime); if (usetime) { searchtimer.SetStartTime(StringToInt(start_h) * 100 + StringToInt(start_m)); searchtimer.SetStopTime(StringToInt(stop_h) * 100 + StringToInt(stop_m)); - } + } searchtimer.SetUseDuration(useduration); if (useduration) { searchtimer.SetMinDuration(durationmin); searchtimer.SetMaxDuration(durationmax); - } + } searchtimer.SetUseDayOfWeek(useweekday); if (useweekday) { @@ -134,7 +134,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); searchtimer.SetBlacklistMode(blacklistmode); if (blacklistmode == 1) searchtimer.ParseBlacklist(blacklistids_internal); - + searchtimer.SetId(0); string md5 = SearchResults::AddQuery(searchtimer.ToText()); return reply.redirect("searchresults.html?searchtimerquery=" + md5); @@ -150,8 +150,10 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <& pageelems.doc_type &> <html> <head> - <& pageelems.ajax_js &> + <title>VDR Live - <$ tr("Search") $></title> + <link rel="stylesheet" type="text/css" href="styles.css" /> <& tooltip.javascript var=("domTT_styleClass") value=("domTTepg") &> + <& pageelems.ajax_js &> <script type="text/javascript"><!-- function initform() @@ -211,279 +213,272 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); function changedextepginfo(selection) { - var i; + var i; document.getElementById(selection.name + "_value").value = ""; - for(i=0;i<selection.length;i++) - { + for(i=0;i<selection.length;i++) + { if (selection.options[i].selected) { if (document.getElementById(selection.name + "_value").value != "") document.getElementById(selection.name + "_value").value += ","; - document.getElementById(selection.name + "_value").value += selection.options[i].value; + document.getElementById(selection.name + "_value").value += selection.options[i].value; } } } function changedblacklistmode(selection) { - document.getElementById("blacklistmodesettings").style.display = + document.getElementById("blacklistmodesettings").style.display = (selection.options[selection.selectedIndex].value == 1 ? "block" : "none"); } function changedblacklistsel(selection) { - var i; + var i; document.getElementById("blacklistids_internal").value = ""; - for(i=0;i<selection.length;i++) - { + for(i=0;i<selection.length;i++) + { if (selection.options[i].selected) { if (document.getElementById("blacklistids_internal").value != "") document.getElementById("blacklistids_internal").value += "|"; - document.getElementById("blacklistids_internal").value += selection.options[i].value; + document.getElementById("blacklistids_internal").value += selection.options[i].value; } } } //--></script> - - <title>VDR Live - <$ tr("Search") $></title> - <link rel="stylesheet" type="text/css" href="styles.css" /> </head> - <body onload="initform()"> - <div class="left_area"> - <& pageelems.logo &> - <& menu active=("searchepg") &> - </div> - <div class="right_area"> - <div class="inhalt"> - <form method="POST" name="searchepg" action="searchepg.ecpp"> - <input type="hidden" name="blacklistids_internal" value="<$ blacklistids_internal $>" id="blacklistids_internal"/> - <table class="edit" cellpadding="0" cellspacing="0"> + <body onload="<& pageelems.infobox_start_update &>; initform()"> + <& pageelems.logo &> + <& menu active=("searchepg") &> + <div class="inhalt"> + <form method="POST" name="searchepg" action="searchepg.ecpp"> + <input type="hidden" name="blacklistids_internal" value="<$ blacklistids_internal $>" id="blacklistids_internal"/> + <table class="edit" cellpadding="0" cellspacing="0"> + <tr> + <td class="head" colspan="4"><div class="boxheader"><div><div><$ tr("Search settings") $></div></div></div></td> + </tr> + + <!-- Search term --> + <tr> + <td class="border" style="border-left: 1px solid black"></td> + <td class="label"><$ tr("Search term") $>:</td> + <td><input type="text" name="search" value="<$ search $>" size="90" id="searchterm" /></td> + <td class="border" style="border-right: 1px solid black"></td> + </tr> + <tr> + <td class="border" style="border-left: 1px solid black"></td> + <td class="label"><$ tr("Extended search") $>:</td> + <td> + <input type="checkbox" name="useextendedsearch" value="1" <{ CHECKIF(useextendedsearch) }> onclick="changeduseextendedsearch(this)" id="useextendedsearch"/> + <div id="extendedsearch" style="display: none"> + <table class="dependent" border="0" cellpadding="0" cellspacing="0"> + <!-- Search mode --> + <tr> + <td class="label"><$ tr("Search mode" ) $>:</td> + <td> + <div style="float:left; max-width:50%; margin-right:20px"> + <select onchange="changedsearchmode(this)" name="mode" size="1" id="search_mode"> + <option value="0" <{ SELECTIF(mode == 0) }> ><$ tr("phrase") $></option> + <option value="1" <{ SELECTIF(mode == 1) }> ><$ tr("all words") $></option> + <option value="2" <{ SELECTIF(mode == 2) }> ><$ tr("at least one word") $></option> + <option value="3" <{ SELECTIF(mode == 3) }> ><$ tr("match exactly") $></option> + <option value="4" <{ SELECTIF(mode == 4) }> ><$ tr("regular expression") $></option> + <option value="5" <{ SELECTIF(mode == 5) }> ><$ tr("fuzzy") $></option> + </select> + </div> + <div id="tolerance" style="display: none"> + <$ tr("Tolerance" ) $>: + <input type="text" name="tolerance" size="2" value="<$ tolerance $>" /> + </div> + </td> + </tr> + + <!-- Match case --> <tr> - <td class="head" colspan="4"><div class="boxheader"><div><div><$ tr("Search settings") $></div></div></div></td> + <td class="label"><$ tr("Match case") $>:</td> + <td><input type="checkbox" name="matchcase" value="1" <{ CHECKIF(matchcase) }> id="matchcase"/></td> </tr> - - <!-- Search term --> + + <!-- Search in --> <tr> - <td class="border" style="border-left: 1px solid black"></td> - <td class="label"><$ tr("Search term") $>:</td> - <td><input type="text" name="search" value="<$ search $>" size="90" id="searchterm" /></td> - <td class="border" style="border-right: 1px solid black"></td> + <td class="label"><$ tr("Search in") $>:</td> + <td> + <input type="checkbox" name="usetitle" value="1" <{ CHECKIF(usetitle) }> /> + <label for="usetitle"><$ tr("Title") $> </label> + + <input type="checkbox" name="usesubtitle" value="1" <{ CHECKIF(usesubtitle) }> /> + <label for="usesubtitle"><$ tr("Episode") $> </label> + + <input type="checkbox" name="usedescr" value="1" <{ CHECKIF(usedescr) }> /> + <label for="usedescr"><$ tr("Description") $> </label> + </td> </tr> + +% if (extEPGInfos.size() > 0) { + <!-- Use ext. EPG categories --> <tr> - <td class="border" style="border-left: 1px solid black"></td> - <td class="label"><$ tr("Extended search") $>:</td> + <td class="label"><$ tr("Use extended EPG info" ) $>:</td> <td> - <input type="checkbox" name="useextendedsearch" value="1" <{ CHECKIF(useextendedsearch) }> onclick="changeduseextendedsearch(this)" id="useextendedsearch"/> - <div id="extendedsearch" style="display: none"> - <table class="dependent" border="0" cellpadding="0" cellspacing="0"> - <!-- Search mode --> - <tr> - <td class="label"><$ tr("Search mode" ) $>:</td> - <td> - <div style="float:left; max-width:50%; margin-right:20px"> - <select onchange="changedsearchmode(this)" name="mode" size="1" id="search_mode"> - <option value="0" <{ SELECTIF(mode == 0) }> ><$ tr("phrase") $></option> - <option value="1" <{ SELECTIF(mode == 1) }> ><$ tr("all words") $></option> - <option value="2" <{ SELECTIF(mode == 2) }> ><$ tr("at least one word") $></option> - <option value="3" <{ SELECTIF(mode == 3) }> ><$ tr("match exactly") $></option> - <option value="4" <{ SELECTIF(mode == 4) }> ><$ tr("regular expression") $></option> - <option value="5" <{ SELECTIF(mode == 5) }> ><$ tr("fuzzy") $></option> - </select> - </div> - <div id="tolerance" style="display: none"> - <$ tr("Tolerance" ) $>: - <input type="text" name="tolerance" size="2" value="<$ tolerance $>" /> - </div> - </td> - </tr> - - <!-- Match case --> - <tr> - <td class="label"><$ tr("Match case") $>:</td> - <td><input type="checkbox" name="matchcase" value="1" <{ CHECKIF(matchcase) }> id="matchcase"/></td> - </tr> - - <!-- Search in --> - <tr> - <td class="label"><$ tr("Search in") $>:</td> - <td> - <input type="checkbox" name="usetitle" value="1" <{ CHECKIF(usetitle) }> /> - <label for="usetitle"><$ tr("Title") $> </label> - - <input type="checkbox" name="usesubtitle" value="1" <{ CHECKIF(usesubtitle) }> /> - <label for="usesubtitle"><$ tr("Episode") $> </label> - - <input type="checkbox" name="usedescr" value="1" <{ CHECKIF(usedescr) }> /> - <label for="usedescr"><$ tr("Description") $> </label> - </td> - </tr> - -% if (extEPGInfos.size() > 0) { - <!-- Use ext. EPG categories --> - <tr> - <td class="label"><$ tr("Use extended EPG info" ) $>:</td> - <td> - <input type="checkbox" name="useextepginfo" value="1" <{ CHECKIF(useextepginfo) }> onclick="changeduseextepginfo(this)" id="useextepginfo"/> - <div id="use_extepg_settings" style="display: none"> - <table border="0" cellspacing="0" cellpadding="0"> -% int i=0; for (ExtEPGInfos::iterator extinfo = extEPGInfos.begin(); extinfo != extEPGInfos.end(); ++extinfo, i++) { - <tr valign="top"> - <td align="left" valign="top"><$ extinfo->Name() $></td> - <td align="left" valign="top"> - <input type="text" name="extepgvalues" value="<$extepgvalues[i]$>" size="10" id="extepg_<{ reply.out() << extinfo->Id(); }>_value"/> - </td> -% if (extinfo->Values().size() > 0) { - <td> - <select size="3" multiple="multiple" align="left" valign="top" name="extepg_<{ reply.out() << extinfo->Id(); }>" onchange="changedextepginfo(this)"> -% for (unsigned int j=0; j<extinfo->Values().size(); j++) { - <option value="<{ reply.out() << extinfo->Values()[j];}>" -% if (extinfo->Selected(j, extepgvalues[i])) { - selected="selected" -% } - > <{ reply.out() << extinfo->Values()[j]; }> </option> -% } - </select> - </td> - </tr> -% } + <input type="checkbox" name="useextepginfo" value="1" <{ CHECKIF(useextepginfo) }> onclick="changeduseextepginfo(this)" id="useextepginfo"/> + <div id="use_extepg_settings" style="display: none"> + <table border="0" cellspacing="0" cellpadding="0"> +% int i=0; for (ExtEPGInfos::iterator extinfo = extEPGInfos.begin(); extinfo != extEPGInfos.end(); ++extinfo, i++) { + <tr valign="top"> + <td align="left" valign="top"><$ extinfo->Name() $></td> + <td align="left" valign="top"> + <input type="text" name="extepgvalues" value="<$extepgvalues[i]$>" size="10" id="extepg_<{ reply.out() << extinfo->Id(); }>_value"/> + </td> +% if (extinfo->Values().size() > 0) { + <td> + <select size="3" multiple="multiple" align="left" valign="top" name="extepg_<{ reply.out() << extinfo->Id(); }>" onchange="changedextepginfo(this)"> +% for (unsigned int j=0; j<extinfo->Values().size(); j++) { + <option value="<{ reply.out() << extinfo->Values()[j];}>" +% if (extinfo->Selected(j, extepgvalues[i])) { + selected="selected" +% } + > <{ reply.out() << extinfo->Values()[j]; }> </option> +% } + </select> + </td> + </tr> % } - </table> - </div> - </td> - </tr> -% } - - - <!-- Use channel --> - <tr> - <td class="label"><$ tr("Use channel" ) $>:</td> - <td> - - <select onchange="changedchannelmode(this)" name="usechannel" size="1" id="channel_mode"> - <option value="0" <{ SELECTIF(usechannel == 0) }> ><$ tr("no") $></option> - <option value="1" <{ SELECTIF(usechannel == 1) }> ><$ tr("interval") $></option> - <option value="2" <{ SELECTIF(usechannel == 2) }> ><$ tr("channel group") $></option> - <option value="3" <{ SELECTIF(usechannel == 3) }> ><$ tr("only FTA") $></option> - </select> - - <div id="channelinterval" style="display: none;" class="dependent"> - <$ tr("from channel" ) $>: - <& channels_widget name=("channelfrom") channelid=(true) selected=(channelfrom) &><br /> - <$ tr("to channel" ) $>: - <& channels_widget name=("channelto") channelid=(true) selected=(channelto) &> - </div> - - <div id="channelgroup" style="display: none"> -% if (channelGroups.size() > 0) { - <select name="changrpsel" size="1" id="changrpsel"> -% int i=0; for (ChannelGroups::iterator changrp = channelGroups.begin(); changrp != channelGroups.end(); ++changrp, i++) { - <option value="<$ changrp->Name() $>" <{ SELECTIF(changrpsel == changrp->Name()) }> ><$ changrp->Name() $></option> -% } - </select> -% } - </div> - </td> - </tr> - - <!-- Use time --> - <tr> - <td class="label"><$ tr("Use time") $>:</td> - <td> - <input type="checkbox" name="usetime" value="1" <{ CHECKIF(usetime) }> onclick="changedusetime(this)" id="usetime" /> - <div id="timesettings" style="display: none"> - <table border="0" cellpadding="0" cellspacing="0" class="dependent"> - <tr> - <td><$ tr("Start after") $>:</td> - <td> - <input type="text" size="2" maxlength="2" name="start_h" value="<$ start_h $>" /> : <input type="text" size="2" maxlength="2" name="start_m" value="<$ start_m $>" /> - <& tooltip.help text=(tr("The time the show may start at the earliest")) &> - </td> - </tr> - <tr> - <td><$ tr("Start before") $>:</td> - <td> - <input type="text" size="2" maxlength="2" name="stop_h" value="<$ stop_h $>" /> : <input type="text" size="2" maxlength="2" name="stop_m" value="<$ stop_m $>" /> - <& tooltip.help text=(tr("The time the show may start at the latest")) &> - </td> - </tr> - </table> - </div> - </td> - </tr> - - <!-- Use duration --> - <tr> - <td class="label"><$ tr("Use duration") $>:</td> - <td> - <input type="checkbox" name="useduration" value="1" <{ CHECKIF(useduration) }> onclick="changeduseduration(this)" id="useduration" /> - <div id="durationsettings" style="display: none"> - <table border="0" cellpadding="0" cellspacing="0" class="dependent"> - <tr> - <td><$ tr("Min. duration") $>:</td> - <td><input type="text" size="3" maxlength="3" name="durationmin" value="<$ durationmin $>" /> min</td> - </tr> - <tr> - <td><$ tr("Max. duration") $>:</td> - <td><input type="text" size="3" maxlength="3" name="durationmax" value="<$ durationmax $>" /> min</td> - </tr> - </table> - </div> - </td> - </tr> - - <!-- Use weekday --> - <tr> - <td class="label"><$ tr("Use day of week") $>:</td> - <td> - <input type="checkbox" name="useweekday" value="1" <{ CHECKIF(useweekday) }> onclick="changeduseweekday(this)" id="useweekday" /> - <div id="weekdaysettings" style="display: none" class="dependent"> - <input type="checkbox" name="wday_mon" value="1" <{ CHECKIF(wday_mon) }> /> <$ tr("Monday") $> - <input type="checkbox" name="wday_tue" value="1" <{ CHECKIF(wday_tue) }> /> <$ tr("Tuesday") $> - <input type="checkbox" name="wday_wed" value="1" <{ CHECKIF(wday_wed) }> /> <$ tr("Wednesday") $> - <input type="checkbox" name="wday_thu" value="1" <{ CHECKIF(wday_thu) }> /> <$ tr("Thursday") $> - <input type="checkbox" name="wday_fri" value="1" <{ CHECKIF(wday_fri) }> /> <$ tr("Friday") $> - <input type="checkbox" name="wday_sat" value="1" <{ CHECKIF(wday_sat) }> /> <$ tr("Saturday") $> - <input type="checkbox" name="wday_sun" value="1" <{ CHECKIF(wday_sun) }> /> <$ tr("Sunday") $> - </div> - </td> - </tr> - - <!-- Use blacklists --> - <tr> - <td class="label"><$ tr("Use blacklists" ) $>:</td> - <td> - <select onchange="changedblacklistmode(this)" name="blacklistmode" size="1" id="blacklistmode"> - <option value="0" <{ SELECTIF(blacklistmode == 0) }> ><$ tr("no") $></option> - <option value="1" <{ SELECTIF(blacklistmode == 1) }> ><$ tr("Selection") $></option> - <option value="2" <{ SELECTIF(blacklistmode == 2) }> ><$ tr("all") $></option> - </select> - <div class="dependent" id="blacklistmodesettings" style="display: none"> -% if (blacklists.size() > 0) { - <select name="blacklists" multiple="multiple" size="5" onchange="changedblacklistsel(this)"> -% int i=0; for (Blacklists::iterator blacklist = blacklists.begin(); blacklist != blacklists.end(); ++blacklist, i++) { - <option value="<$ blacklist->Id() $>" <{ SELECTIF(searchtimer && searchtimer->BlacklistSelected(blacklist->Id())) }>><$ blacklist->Search() $></option> +% } + </table> + </div> + </td> + </tr> +% } + + + <!-- Use channel --> + <tr> + <td class="label"><$ tr("Use channel" ) $>:</td> + <td> + + <select onchange="changedchannelmode(this)" name="usechannel" size="1" id="channel_mode"> + <option value="0" <{ SELECTIF(usechannel == 0) }> ><$ tr("no") $></option> + <option value="1" <{ SELECTIF(usechannel == 1) }> ><$ tr("interval") $></option> + <option value="2" <{ SELECTIF(usechannel == 2) }> ><$ tr("channel group") $></option> + <option value="3" <{ SELECTIF(usechannel == 3) }> ><$ tr("only FTA") $></option> + </select> + + <div id="channelinterval" style="display: none;" class="dependent"> + <$ tr("from channel" ) $>: + <& channels_widget name=("channelfrom") channelid=(true) selected=(channelfrom) &><br /> + <$ tr("to channel" ) $>: + <& channels_widget name=("channelto") channelid=(true) selected=(channelto) &> + </div> + + <div id="channelgroup" style="display: none"> +% if (channelGroups.size() > 0) { + <select name="changrpsel" size="1" id="changrpsel"> +% int i=0; for (ChannelGroups::iterator changrp = channelGroups.begin(); changrp != channelGroups.end(); ++changrp, i++) { + <option value="<$ changrp->Name() $>" <{ SELECTIF(changrpsel == changrp->Name()) }> ><$ changrp->Name() $></option> % } - </select> + </select> % } - </div> - </td> - </tr> - </table> - </div> - </td> - <td class="border" style="border-right: 1px solid black"></td> + </div> + </td> + </tr> + + <!-- Use time --> + <tr> + <td class="label"><$ tr("Use time") $>:</td> + <td> + <input type="checkbox" name="usetime" value="1" <{ CHECKIF(usetime) }> onclick="changedusetime(this)" id="usetime" /> + <div id="timesettings" style="display: none"> + <table border="0" cellpadding="0" cellspacing="0" class="dependent"> + <tr> + <td><$ tr("Start after") $>:</td> + <td> + <input type="text" size="2" maxlength="2" name="start_h" value="<$ start_h $>" /> : <input type="text" size="2" maxlength="2" name="start_m" value="<$ start_m $>" /> + <& tooltip.help text=(tr("The time the show may start at the earliest")) &> + </td> + </tr> + <tr> + <td><$ tr("Start before") $>:</td> + <td> + <input type="text" size="2" maxlength="2" name="stop_h" value="<$ stop_h $>" /> : <input type="text" size="2" maxlength="2" name="stop_m" value="<$ stop_m $>" /> + <& tooltip.help text=(tr("The time the show may start at the latest")) &> + </td> + </tr> + </table> + </div> + </td> + </tr> + + <!-- Use duration --> + <tr> + <td class="label"><$ tr("Use duration") $>:</td> + <td> + <input type="checkbox" name="useduration" value="1" <{ CHECKIF(useduration) }> onclick="changeduseduration(this)" id="useduration" /> + <div id="durationsettings" style="display: none"> + <table border="0" cellpadding="0" cellspacing="0" class="dependent"> + <tr> + <td><$ tr("Min. duration") $>:</td> + <td><input type="text" size="3" maxlength="3" name="durationmin" value="<$ durationmin $>" /> min</td> + </tr> + <tr> + <td><$ tr("Max. duration") $>:</td> + <td><input type="text" size="3" maxlength="3" name="durationmax" value="<$ durationmax $>" /> min</td> + </tr> + </table> + </div> + </td> + </tr> + + <!-- Use weekday --> + <tr> + <td class="label"><$ tr("Use day of week") $>:</td> + <td> + <input type="checkbox" name="useweekday" value="1" <{ CHECKIF(useweekday) }> onclick="changeduseweekday(this)" id="useweekday" /> + <div id="weekdaysettings" style="display: none" class="dependent"> + <input type="checkbox" name="wday_mon" value="1" <{ CHECKIF(wday_mon) }> /> <$ tr("Monday") $> + <input type="checkbox" name="wday_tue" value="1" <{ CHECKIF(wday_tue) }> /> <$ tr("Tuesday") $> + <input type="checkbox" name="wday_wed" value="1" <{ CHECKIF(wday_wed) }> /> <$ tr("Wednesday") $> + <input type="checkbox" name="wday_thu" value="1" <{ CHECKIF(wday_thu) }> /> <$ tr("Thursday") $> + <input type="checkbox" name="wday_fri" value="1" <{ CHECKIF(wday_fri) }> /> <$ tr("Friday") $> + <input type="checkbox" name="wday_sat" value="1" <{ CHECKIF(wday_sat) }> /> <$ tr("Saturday") $> + <input type="checkbox" name="wday_sun" value="1" <{ CHECKIF(wday_sun) }> /> <$ tr("Sunday") $> + </div> + </td> </tr> + + <!-- Use blacklists --> <tr> - <td class="border" style="border-left: 1px solid black"></td> - <td class="buttonpanel" colspan="2"> - <button class="green" type="submit" name="save" onclick="return checksearch();"><$ tr("Search") $></button> + <td class="label"><$ tr("Use blacklists" ) $>:</td> + <td> + <select onchange="changedblacklistmode(this)" name="blacklistmode" size="1" id="blacklistmode"> + <option value="0" <{ SELECTIF(blacklistmode == 0) }> ><$ tr("no") $></option> + <option value="1" <{ SELECTIF(blacklistmode == 1) }> ><$ tr("Selection") $></option> + <option value="2" <{ SELECTIF(blacklistmode == 2) }> ><$ tr("all") $></option> + </select> + <div class="dependent" id="blacklistmodesettings" style="display: none"> +% if (blacklists.size() > 0) { + <select name="blacklists" multiple="multiple" size="5" onchange="changedblacklistsel(this)"> +% int i=0; for (Blacklists::iterator blacklist = blacklists.begin(); blacklist != blacklists.end(); ++blacklist, i++) { + <option value="<$ blacklist->Id() $>" <{ SELECTIF(searchtimer && searchtimer->BlacklistSelected(blacklist->Id())) }>><$ blacklist->Search() $></option> +% } + </select> +% } + </div> </td> - <td class="border" style="border-right: 1px solid black"></td> </tr> - </table> - </form> - </div> + </table> + </div> + </td> + <td class="border" style="border-right: 1px solid black"></td> + </tr> + <tr> + <td class="border" style="border-left: 1px solid black"></td> + <td class="buttonpanel" colspan="2"> + <button class="green" type="submit" name="save" onclick="return checksearch();"><$ tr("Search") $></button> + </td> + <td class="border" style="border-right: 1px solid black"></td> + </tr> + </table> + </form> </div> </body> </html> |