From 3a0ab012c018c1d5093c8cdc89537a9d4467afb0 Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Thu, 3 May 2007 18:17:16 +0000 Subject: - EPG pages now display record.png or record_timer.png depending on an existing timer - If record_timer.png is displayed one can now edit the timer for an event --- pages/pageelems.ecpp | 12 +++++++++++- pages/searchresults.ecpp | 5 +++-- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'pages') diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp index 74af3dd..7acf72a 100644 --- a/pages/pageelems.ecpp +++ b/pages/pageelems.ecpp @@ -4,6 +4,7 @@ #include #include "tools.h" #include "i18n.h" +#include "timers.h" using namespace std; using namespace vdrlive; @@ -88,7 +89,16 @@ using namespace vdrlive; tChannelID channelid; tEventID eventid; - /> +<%cpp> const cTimer* timer = LiveTimerManager().GetTimer(eventid, channelid); + if (timer) { + + + /> +<%cpp> } else { + + /> +<%cpp> } + <# ---------------------------------------------------------------------- #> diff --git a/pages/searchresults.ecpp b/pages/searchresults.ecpp index 542e0ac..22fbbc2 100644 --- a/pages/searchresults.ecpp +++ b/pages/searchresults.ecpp @@ -35,6 +35,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); VDR-Live - <$ pageTitle $> + <& tooltip.javascript var=("domTT_styleClass") value=("domTTepg") &> <& pageelems.ajax_js &> @@ -55,7 +56,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); string end(result->StopTime() ? FormatDateTime(tr("%I:%M %p"), result->StopTime()) : ""); string day(result->StartTime() ? FormatDateTime(tr("%A, %b %d %Y"), result->StartTime()) : ""); tEventID event = result->EventId(); - tChannelID channel_id(result->Channel()); + tChannelID channel_id(result->Channel()); if (current_day != day) { if (current_day != "") { }> @@ -71,7 +72,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); % current_day = day; % } "> - <& pageelems.event_timer channelid=(channel_id) eventid=(event) &> + <& pageelems.event_timer channelid=(channel_id) eventid=(event)&> <$ channelname $> <$ start $> - <$ end $> <$ result->Title() $>
<$ result->ShortText() $>
-- cgit v1.2.3