<%pre> #include #include #include #include #include #include #include "exception.h" #include "tools.h" #include "epgsearch.h" #include "setup.h" using namespace std; using namespace vdrlive; <%args> // input parameters // form parameters bool useextendedsearch = false; string search = ""; int mode = 0; bool matchcase = false; int tolerance = 1; bool usetitle = false; bool usesubtitle = false; bool usedescr = false; int usechannel = SearchTimer::NoChannel; tChannelID channelidfrom; tChannelID channelfrom; tChannelID channelidto; tChannelID channelto; string changrpsel = ""; bool usetime = false; string start_h = "00"; string start_m = "00"; string stop_h = "00"; string stop_m = "00"; bool useduration = false; int durationmin = 0; int durationmax = 90; bool useweekday = false; bool wday_mon = false; bool wday_tue = false; bool wday_wed = false; bool wday_thu = false; bool wday_fri = false; bool wday_sat = false; bool wday_sun = false; int blacklistmode = 0; string blacklistids[]; bool useextepginfo = false; string extepgvalues[]; string blacklistids_internal; <%session scope="global"> bool logged_in(false); <%request scope="page"> SearchTimer* searchtimer; ExtEPGInfos extEPGInfos; ChannelGroups channelGroups; Blacklists blacklists; <%include>page_init.eh <{ 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\"" : "" ); searchtimer = 0; if ( request.getMethod() == "POST") { SearchTimer searchtimer; searchtimer.SetSearch(search); searchtimer.SetSearchMode(mode); searchtimer.SetTolerance(tolerance); searchtimer.SetMatchCase(matchcase); searchtimer.SetUseTitle(usetitle); searchtimer.SetUseSubtitle(usesubtitle); searchtimer.SetUseDescription(usedescr); searchtimer.SetUseExtEPGInfo(useextepginfo); if (useextepginfo) { vector< string > infos; unsigned int i=0; for (ExtEPGInfos::iterator extinfo = extEPGInfos.begin(); extinfo != extEPGInfos.end(); ++extinfo, i++) { ostringstream os; os << extinfo->Id() << "#" << (i <& pageelems.doc_type &> VDR Live - <$ tr("Search") $> <& pageelems.stylesheets &> <& pageelems.ajax_js &> <& pageelems.logo &> <& menu active=("searchepg") &>
<$ tr("Search settings") $>
<$ tr("Search term") $>:
<$ tr("Extended search") $>:
onclick="changeduseextendedsearch(this)" id="useextendedsearch"/>
<%include>page_exit.eh