summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-05 23:09:03 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-05 23:09:03 +0000
commitcf87c429240cce0f902f14e845dff5f295389ba6 (patch)
tree6a89a15d52d5ab88b2fafda5c437211b35a2224a /pages
parenta7ec1a2a577af45a6680c370d519ff57cd395c47 (diff)
downloadvdr-plugin-live-cf87c429240cce0f902f14e845dff5f295389ba6.tar.gz
vdr-plugin-live-cf87c429240cce0f902f14e845dff5f295389ba6.tar.bz2
- added option channelId to force output of ids instead of numbers
Diffstat (limited to 'pages')
-rw-r--r--pages/channels_widget.ecpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/pages/channels_widget.ecpp b/pages/channels_widget.ecpp
index f1506bf..5bd69b2 100644
--- a/pages/channels_widget.ecpp
+++ b/pages/channels_widget.ecpp
@@ -11,16 +11,17 @@ name = "channel";
int lastChannel = LiveSetup().GetLastChannel();
selected;
onchange;
+bool channelId = false;
</%args>
<select name="<$ name $>" <{ reply.out() << ( !onchange.empty() ? "onchange=\""+onchange+"\"" : "" ); }>>
<{
for (cChannel *listChannel = Channels.First(); listChannel && listChannel->Number() <= lastChannel; listChannel = Channels.Next(listChannel)) {
if (!listChannel->GroupSep() && *listChannel->Name()) {
- std::string channelId = *listChannel->GetChannelID().ToString();
+ std::string listChannelId = *listChannel->GetChannelID().ToString();
}>
- <option value="<$ listChannel->Number() $>"
- <{ reply.out() << ( channelId == selected ? "selected=\"selected\"" : "" ); }>><$ listChannel->Name() $></option>
+ <option value="<? channelId ? *listChannel->GetChannelID().ToString() ?><? !channelId ? listChannel->Number() ?>"
+ <{ reply.out() << ( listChannelId == selected ? "selected=\"selected\"" : "" ); }>><$ listChannel->Name() $></option>
<{
}
}