diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-05 20:57:52 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-05 20:57:52 +0000 |
commit | c7d6515404af360bb5accd8b7cfab15457e38b82 (patch) | |
tree | 4a57b5a47c995cf747833e8be1b83206fd551149 /pages | |
parent | fdee52caab6c03c9512ce16ed654838ce621367e (diff) | |
download | vdr-plugin-live-c7d6515404af360bb5accd8b7cfab15457e38b82.tar.gz vdr-plugin-live-c7d6515404af360bb5accd8b7cfab15457e38b82.tar.bz2 |
- added channels widget
Diffstat (limited to 'pages')
-rw-r--r-- | pages/channels_widget.ecpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pages/channels_widget.ecpp b/pages/channels_widget.ecpp new file mode 100644 index 0000000..e2b22da --- /dev/null +++ b/pages/channels_widget.ecpp @@ -0,0 +1,27 @@ +<%pre> +#include <vdr/channels.h> +#include "setup.h" +#include "tools.h" + +using namespace vdrlive; + +</%pre> +<%args> +name = "channel"; +int lastChannel = LiveSetup().GetLastChannel(); +selected; +</%args> + + <select name="<$ name $>"> +<{ + for (cChannel *listChannel = Channels.First(); listChannel && listChannel->Number() <= lastChannel; listChannel = Channels.Next(listChannel)) { + if (!listChannel->GroupSep() && *listChannel->Name()) { + std::string channelId = *listChannel->GetChannelID().ToString(); +}> + <option value="<$ listChannel->Number() $>" + <$ channelId == selected ? "selected=\"selected\"" : "" $>><$ listChannel->Name() $></option> +<{ + } + } +}> + </select> |