summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2007-05-25 11:31:59 +0000
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2007-05-25 11:31:59 +0000
commit763b59bfa1c47ee7436d079eda8eb70a896f16a8 (patch)
treeeaabbbe144b6ada9180e9652f1fde7709aede0a1 /pages
parent104b34e336cba92d75626498d865d207b52a8a46 (diff)
downloadvdr-plugin-live-763b59bfa1c47ee7436d079eda8eb70a896f16a8.tar.gz
vdr-plugin-live-763b59bfa1c47ee7436d079eda8eb70a896f16a8.tar.bz2
- search for repeats in what'on and schedule, if epgsearch is present
Diffstat (limited to 'pages')
-rw-r--r--pages/schedule.ecpp7
-rw-r--r--pages/searchresults.ecpp14
-rw-r--r--pages/whats_on.ecpp3
3 files changed, 23 insertions, 1 deletions
diff --git a/pages/schedule.ecpp b/pages/schedule.ecpp
index 9051a04..60bd23c 100644
--- a/pages/schedule.ecpp
+++ b/pages/schedule.ecpp
@@ -106,7 +106,12 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
% current_day = day;
% }
<tr class="<? active_line ? "active" ?>">
- <td style="border-left: 1px solid black"><& pageelems.event_timer channelid=(channel_id) eventid=(event) &></td>
+ <td style="border-left: 1px solid black"><& pageelems.event_timer channelid=(channel_id) eventid=(event) &>
+% if (LiveSetup().HaveEPGSearch()) {
+ <a href="searchresults.html?searchplain=<$ StringEscapeAndBreak(title) $>"><img src="/search.png" border="0" alt="" <& tooltip.hint text=(tr("Search for repeats.")) &>></img></a>
+% }
+
+ </td>
<td><$ start $> - <$ end $></td>
<td>
% if(Event == PresentEvent) {
diff --git a/pages/searchresults.ecpp b/pages/searchresults.ecpp
index 65ae2da..99bebf6 100644
--- a/pages/searchresults.ecpp
+++ b/pages/searchresults.ecpp
@@ -15,6 +15,7 @@ using namespace std;
// input parameters
string searchtimerid;
string searchtimerquery;
+ string searchplain;
</%args>
<%session scope="global">
bool logged_in(false);
@@ -30,6 +31,19 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
results.GetByID(lexical_cast< int >(searchtimerid));
if (!searchtimerquery.empty())
results.GetByQuery(SearchResults::PopQuery(searchtimerquery));
+ if (!searchplain.empty())
+ {
+ string query = searchplain;
+ StringReplace(query, "&amp;", "&");
+ SearchTimer s;
+ s.SetId(0);
+ s.SetSearch(query);
+ s.SetSearchMode(0);
+ s.SetUseTitle(true);
+ s.SetUseSubtitle(false);
+ s.SetUseDescription(false);
+ results.GetByQuery(s.ToText());
+ }
</%cpp>
<& pageelems.doc_type &>
<html>
diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp
index 2e81e23..7c91393 100644
--- a/pages/whats_on.ecpp
+++ b/pages/whats_on.ecpp
@@ -79,6 +79,9 @@ if (type == "now") {
% if (type == "now") {
<& pageelems.ajax_action_href action="switch_channel" tip=(tr("Switch to this channel.")) param=(channel_id) image="zap.png" alt="" &>
% }
+% if (LiveSetup().HaveEPGSearch()) {
+ <a href="searchresults.html?searchplain=<$ StringEscapeAndBreak(epgEvent->Title()) $>"><img src="/search.png" border="0" alt="" <& tooltip.hint text=(tr("Search for repeats.")) &>></img></a>
+% }
</div>
<div>
<div class="info"><$ (epgEvent->StartTime(tr("%I:%M %p"))) $> - <$ (epgEvent->EndTime(tr("%I:%M %p"))) $></div>