summaryrefslogtreecommitdiff
path: root/pages/edit_timer.ecpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-07-22 17:22:00 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-07-22 17:22:00 +0000
commite53dae90e2454400d57d815086c762684cf846b9 (patch)
tree90d735e7f79bc4c00029eacc647fe6c4c021d4bc /pages/edit_timer.ecpp
parent213b98b4f18076c8b9e42b6868beaa3a640ae4e6 (diff)
downloadvdr-plugin-live-e53dae90e2454400d57d815086c762684cf846b9.tar.gz
vdr-plugin-live-e53dae90e2454400d57d815086c762684cf846b9.tar.bz2
- Some changes to enhance W3C XHTML strict compatibility.
- Timer are called with epgid instead channelid and eventid.
Diffstat (limited to 'pages/edit_timer.ecpp')
-rw-r--r--pages/edit_timer.ecpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/pages/edit_timer.ecpp b/pages/edit_timer.ecpp
index 6bf3b9c..c389a6d 100644
--- a/pages/edit_timer.ecpp
+++ b/pages/edit_timer.ecpp
@@ -8,6 +8,7 @@
#include "tools.h"
#include "timers.h"
#include "setup.h"
+#include "epg_events.h"
using namespace std;
using namespace vdrlive;
@@ -16,8 +17,7 @@ using namespace vdrlive;
<%args>
// input parameters
string timerid;
- tChannelID channelid;
- tEventID eventid = 0;
+ string epgid;
// form parameters
tChannelID channel;
bool active = true;
@@ -47,11 +47,13 @@ string edit_timerreferer;
cTimer* timer;
</%request>
<%include>page_init.eh</%include>
-<{
-if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
-}>
<%cpp>
- std::string message;
+ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
+
+ tChannelID channelid = tChannelID();
+ tEventID eventid = tEventID();
+
+ string message;
cMutexLock timersLock( &LiveTimerManager() );
SortedTimers& timers = LiveTimerManager().GetTimers();
@@ -84,6 +86,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
auto_ptr< cTimer > eventTimer;
if ( timer == 0 ) {
+ EpgEvents::DecodeDomId(epgid, channelid, eventid);
if ( channelid.Valid() && eventid != 0 ) {
cerr << "grabbing event" << endl << endl;
cSchedulesLock schedLock;
@@ -132,7 +135,7 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
<& pageelems.logo &>
<& menu active=("timers") &>
<div class="inhalt">
- <form method="POST" name="edit_timer" action="edit_timer.ecpp">
+ <form method="post" name="edit_timer" action="edit_timer.ecpp">
<input type="hidden" name="timerid" value="<$ timerid $>"/>
<input type="hidden" name="aux" value="<$ aux $>"/>
<table class="formular" cellpadding="0" cellspacing="0">