diff options
author | Thomas Keil <tkeil (at) datacrystal (dot) de> | 2007-01-03 20:52:18 +0000 |
---|---|---|
committer | Thomas Keil <tkeil (at) datacrystal (dot) de> | 2007-01-03 20:52:18 +0000 |
commit | ce685cb78146f57afb4210d84c404cd11aeeccf3 (patch) | |
tree | 5542800d061b9b108ec1c5119d97fa8e9a46036b | |
parent | 900d856f4196491550779de43ad3e5f2f0f271ce (diff) | |
download | vdr-plugin-live-ce685cb78146f57afb4210d84c404cd11aeeccf3.tar.gz vdr-plugin-live-ce685cb78146f57afb4210d84c404cd11aeeccf3.tar.bz2 |
Neu
-rw-r--r-- | pages/event_widget.ecpp | 31 | ||||
-rw-r--r-- | pages/whats_on_next.ecpp | 55 |
2 files changed, 86 insertions, 0 deletions
diff --git a/pages/event_widget.ecpp b/pages/event_widget.ecpp new file mode 100644 index 0000000..eb97755 --- /dev/null +++ b/pages/event_widget.ecpp @@ -0,0 +1,31 @@ +<%pre> +#include <vdr/plugin.h> +#include <vdr/channels.h> +#include <vdr/epg.h> +#include <vdr/config.h> +#include <vdr/i18n.h> +#include "tools.h" + +using namespace vdrlive; + +</%pre> +<%args> +title; +short_description; +description; +channel_name; +</%args> + + <table class="event" cellpadding="0" cellspacing="0"> + <tr><td class="station" colspan="2"><$ channel_name $></td></tr> + <tr> + <td class="tools"> + + </td> + <td class="content"> + <div class="title"><$ title $></div> + <div class="short"><$ short_description $></div> + <div class="description"><$ description $></div> + </td> + </tr> + </table> diff --git a/pages/whats_on_next.ecpp b/pages/whats_on_next.ecpp new file mode 100644 index 0000000..83dcfa0 --- /dev/null +++ b/pages/whats_on_next.ecpp @@ -0,0 +1,55 @@ +<%pre> +#include <vdr/plugin.h> +#include <vdr/channels.h> +#include <vdr/epg.h> +#include <vdr/config.h> +#include <vdr/i18n.h> +#include "tools.h" + +using namespace vdrlive; + +</%pre> +<%args> +</%args> +<{ + +cSchedulesLock schedulesLock; +const cSchedules* Schedules = cSchedules::Schedules(schedulesLock); + + +}> +<html> + <head> + <title>VDR-Live - <$ tr("What's on next?") $></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"> + <$ tr("What's on next?") $> + </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->GetFollowingEvent(); + if (Event) { + std::string title(Event->Title() ? Event->Title() : ""); + std::string short_description(Event->ShortText() ? Event->ShortText() : ""); + std::string description(Event->Description() ? Event->Description() : ""); +}> +<& event_widget title=(title) short_description=(short_description) description=(description) channel_name=(Channel->Name())> +<{ + } + } + } + } +}> + </div> + </body> +</html> |