summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-25 19:32:39 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-25 19:32:39 +0000
commit89ec236d4213715b7ce263bb67336de1dc8e5f42 (patch)
tree45615dbfe77495c8e5bf2254fdbecf9e1534424e /pages
parente7e2160524f292e41a8cf89af5ccb0c3221dd709 (diff)
downloadvdr-plugin-live-89ec236d4213715b7ce263bb67336de1dc8e5f42.tar.gz
vdr-plugin-live-89ec236d4213715b7ce263bb67336de1dc8e5f42.tar.bz2
- added first approach to show searchtimers
Diffstat (limited to 'pages')
-rw-r--r--pages/Makefile3
-rw-r--r--pages/menu.ecpp1
-rw-r--r--pages/searchtimers.ecpp62
3 files changed, 65 insertions, 1 deletions
diff --git a/pages/Makefile b/pages/Makefile
index fc312d6..bebbd6f 100644
--- a/pages/Makefile
+++ b/pages/Makefile
@@ -18,7 +18,8 @@ VDRDIR ?= ../../../..
OBJS = menu.o channels.o recordings.o schedule.o \
screenshot.o timers.o whats_on.o switch_channel.o \
keypress.o remote.o channels_widget.o edit_timer.o \
- error.o pageelems.o tooltip.o play_recording.o
+ error.o pageelems.o tooltip.o play_recording.o \
+ searchtimers.o
### Default rules:
diff --git a/pages/menu.ecpp b/pages/menu.ecpp
index 87978f5..d1e02d6 100644
--- a/pages/menu.ecpp
+++ b/pages/menu.ecpp
@@ -20,6 +20,7 @@ std::string set_component;
<a href="whats_on.html?type=next" <& menu.setactive current=("next") &>><$ tr("What's on next?") $></a> <& menu.component current=("next") &> |
<a href="schedule.html" <& menu.setactive current=("schedule") &>><$ tr("Schedule") $></a> <& menu.component current=("schedule") &> |
<a href="timers.html" <& menu.setactive current=("timers") &>><$ tr("Timers") $></a> <& menu.component current=("timers") &> |
+ <a href="searchtimers.html" <& menu.setactive current=("searchtimers") &>><$ tr("Searchtimers") $></a> <& menu.component current=("searchtimers") &> |
<a href="recordings.html" <& menu.setactive current=("recordings") &>><$ tr("Recordings") $></a> <& menu.component current=("recordings") &> |
<a href="remote.html" <& menu.setactive current=("remote") &>><$ tr("Remote Control") $></a> <& menu.component current=("remote") &>
</div>
diff --git a/pages/searchtimers.ecpp b/pages/searchtimers.ecpp
new file mode 100644
index 0000000..94594f1
--- /dev/null
+++ b/pages/searchtimers.ecpp
@@ -0,0 +1,62 @@
+<%pre>
+#include <vdr/i18n.h>
+#include "epgsearch.h"
+#include "tools.h"
+
+using namespace vdrlive;
+
+</%pre>
+<%include>page_init.eh</%include>
+<%cpp>
+ pageTitle = tr("Searchtimers");
+
+ SearchTimers timers;
+</%cpp>
+<& pageelems.doc_type &>
+<html>
+ <head>
+ <title>VDR-Live - <$ pageTitle $></title>
+ <link rel="stylesheet" type="text/css" href="/styles.css" />
+ </head>
+ <body>
+ <& pageelems.logo &>
+ <& menu active=("searchtimers") &>
+ <div class="inhalt">
+% if (timers.size() == 0) {
+ Keiner Suchtimer definiert
+% } else {
+ <table class="timers" cellspacing="0" cellpadding="0">
+ <tr>
+ <td class="head">&nbsp;</td>
+ <td class="head"><$ tr("Active") $></td>
+ <td class="head"><$ tr("Expression") $></td>
+ <td class="head"><$ tr("Channel") $></td>
+ <td class="head"><$ tr("Start") $></td>
+ <td class="head"><$ tr("Stop") $></td>
+ <td class="head">&nbsp;</td>
+ <td class="head">&nbsp;</td>
+ </tr>
+<{
+ bool active = false;
+ for (SearchTimers::iterator timer = timers.begin(); timer != timers.end(); ++timer) {
+}>
+ <tr class="<$ active ? "active" : "" $>">
+ <td><button type="button" class="smallbutton" onclick="location.href='edit_searchtimer.html?timerid=<$ timer->Id() $>';"><$ tr("Edit") $></button></td>
+ <td><img src="/<$ timer->UseAsSearchTimer() ? "active" : "inactive" $>.png" alt="Aktiv?" /></td>
+ <td><$ timer->Search() $></td>
+ <td><$ timer->UseChannel() ? *timer->ChannelMin().ToString() : "&nbsp;" $></td>
+ <td><? timer->UseTime() ? timer->StartTime() ?></td>
+ <td><? timer->UseTime() ? timer->StopTime() ?></td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+<{
+ active = !active;
+ }
+ }
+}>
+ </table>
+ </div>
+ </body>
+</html>
+<%include>page_exit.eh</%include>