summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Keil <tkeil (at) datacrystal (dot) de>2007-01-03 15:18:34 +0000
committerThomas Keil <tkeil (at) datacrystal (dot) de>2007-01-03 15:18:34 +0000
commite5e44abae4ad21cb186e8f5c73bac2fe1e5c1be1 (patch)
treeb3d912917d5c0b5c681d8aba434a8e04108a9fb6
parent32b1bb04be607b1416bc7f3b0d0366df2318afb3 (diff)
downloadvdr-plugin-live-e5e44abae4ad21cb186e8f5c73bac2fe1e5c1be1.tar.gz
vdr-plugin-live-e5e44abae4ad21cb186e8f5c73bac2fe1e5c1be1.tar.bz2
Neu
-rw-r--r--menu.ecpp7
-rw-r--r--styles.css60
-rw-r--r--whats_on_now.ecpp58
3 files changed, 125 insertions, 0 deletions
diff --git a/menu.ecpp b/menu.ecpp
new file mode 100644
index 0000000..e461ad1
--- /dev/null
+++ b/menu.ecpp
@@ -0,0 +1,7 @@
+<%pre>
+#include <vdr/plugin.h>
+#include <vdr/config.h>
+</%pre>
+ <div class="menu">
+ <a href="whats_on_now.html"><$ tr("What's on now?") $></a>
+ </div> \ No newline at end of file
diff --git a/styles.css b/styles.css
new file mode 100644
index 0000000..70b013e
--- /dev/null
+++ b/styles.css
@@ -0,0 +1,60 @@
+body {
+ margin: 0px;
+ padding: 0px;
+ font-size: 12px;
+ font-family: Helvetica,Arial,sans-serif;
+}
+
+div.left_area {
+ width: 150px;
+ float: left;
+}
+
+div.inhalt {
+
+}
+
+div.menu {
+ border: 1px solid #6D96A9;
+ color: #6D96A9;
+ padding: 5px;
+ margin: 5px;
+}
+
+div.menu a {
+ text-decoration: none;
+}
+
+div.menu a:hover {
+ text-decoration: none;
+ background: #DEE6EE;
+}
+
+
+div.head_box {
+ border: 1px solid #6D96A9;
+ background: #DEE6EE;
+ margin: 2px;
+ padding: 5px;
+ font-weight: bold;
+ font-size: 14px;
+ color: black;
+}
+
+
+
+div.event {
+ width: 250px;
+ height: 250px;
+ float: left;
+ border: 1px solid #6D96A9;
+ margin: 2px;
+}
+
+div.event .station {
+ background: #6D96A9;
+ color: white;
+ font-weight: bold;
+ margin: 0;
+ padding: 3px 3px 3px 10px;
+}
diff --git a/whats_on_now.ecpp b/whats_on_now.ecpp
new file mode 100644
index 0000000..73dfdd7
--- /dev/null
+++ b/whats_on_now.ecpp
@@ -0,0 +1,58 @@
+<%pre>
+#include <vdr/plugin.h>
+#include <vdr/channels.h>
+#include <vdr/epg.h>
+#include <vdr/config.h>
+
+</%pre>
+<%args>
+</%args>
+<{
+
+char buf[6];
+struct tm tm_r;
+//strftime(buf, sizeof(buf), "%H.%M", localtime(tm_r));
+
+cSchedulesLock schedulesLock;
+const cSchedules* Schedules = cSchedules::Schedules(schedulesLock);
+
+
+}>
+<html>
+ <head>
+ <title>VDR-Live - <$ tr("What's on now?") $></title>
+ <link rel="stylesheet" type="text/css" href="/styles.css" />
+ </head>
+ <body>
+ <div class="left_area">
+<& menu >
+ </div>
+ <div class="inhalt">
+ <div class="head_box">
+ Was l&auml;ft jetzt um Uhr
+ </div>
+
+<{
+ for (cChannel *Channel = Channels.First(); Channel; Channel = Channels.Next(Channel)) {
+ if (!Channel->GroupSep()) {
+ const cSchedule *Schedule = Schedules->GetSchedule(Channel);
+ if (Schedule) {
+ const cEvent *Event = Schedule->GetPresentEvent();
+ if (Event) {
+ const char *title = Event->Title() ? Event->Title() : '';
+}>
+ <div class="event">
+ <div class="station"><$ Channel->Name() $></div>
+ <span class="title"><$ Event->Title() $></span><br/>
+ <span class="short"></span>
+ <p><? Event->Description() ? Event->Description() ?></p>
+ </div>
+<{
+ }
+ }
+ }
+ }
+}>
+ </div>
+ </body>
+</html>