summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18n.cpp22
-rw-r--r--pages/schedule.ecpp7
-rw-r--r--pages/searchresults.ecpp14
-rw-r--r--pages/whats_on.ecpp3
4 files changed, 45 insertions, 1 deletions
diff --git a/i18n.cpp b/i18n.cpp
index d9dd609..b36ad37 100644
--- a/i18n.cpp
+++ b/i18n.cpp
@@ -3396,6 +3396,28 @@ const tI18nPhrase Phrases[] = {
"", // Dansk
"", // Czech
},
+ { "Search for repeats.", // English
+ "Nach Wiederholungen suchen.", // Deutsch
+ "", // Slovenski
+ "", // Italiano
+ "", // Nederlands
+ "", // Português
+ "", // Français
+ "", // Norsk
+ "", // Finnish
+ "", // Polski
+ "", // Español
+ "", // Greek
+ "", // Svenska
+ "", // Românã
+ "", // Magyar
+ "", // Català
+ "", // Russian
+ "", // Hrvatski
+ "", // Eesti
+ "", // Dansk
+ "", // Czech
+ },
/*
{ "", // English
"", // Deutsch
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>