From e5e44abae4ad21cb186e8f5c73bac2fe1e5c1be1 Mon Sep 17 00:00:00 2001 From: Thomas Keil Date: Wed, 3 Jan 2007 15:18:34 +0000 Subject: Neu --- menu.ecpp | 7 +++++++ styles.css | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ whats_on_now.ecpp | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 menu.ecpp create mode 100644 styles.css create mode 100644 whats_on_now.ecpp 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 +#include + + \ 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 +#include +#include +#include + + +<%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); + + +}> + + + VDR-Live - <$ tr("What's on now?") $> + + + +
+<& menu > +
+
+
+ Was läft jetzt um Uhr +
+ +<{ + 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() : ''; +}> +
+
<$ Channel->Name() $>
+ <$ Event->Title() $>
+ +

Description() ? Event->Description() ?>

+
+<{ + } + } + } + } +}> +
+ + -- cgit v1.2.3