diff options
author | Thomas Keil <tkeil (at) datacrystal (dot) de> | 2007-01-03 15:18:34 +0000 |
---|---|---|
committer | Thomas Keil <tkeil (at) datacrystal (dot) de> | 2007-01-03 15:18:34 +0000 |
commit | e5e44abae4ad21cb186e8f5c73bac2fe1e5c1be1 (patch) | |
tree | b3d912917d5c0b5c681d8aba434a8e04108a9fb6 /whats_on_now.ecpp | |
parent | 32b1bb04be607b1416bc7f3b0d0366df2318afb3 (diff) | |
download | vdr-plugin-live-e5e44abae4ad21cb186e8f5c73bac2fe1e5c1be1.tar.gz vdr-plugin-live-e5e44abae4ad21cb186e8f5c73bac2fe1e5c1be1.tar.bz2 |
Neu
Diffstat (limited to 'whats_on_now.ecpp')
-rw-r--r-- | whats_on_now.ecpp | 58 |
1 files changed, 58 insertions, 0 deletions
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ä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> |