diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-05 23:09:03 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-05 23:09:03 +0000 |
commit | cf87c429240cce0f902f14e845dff5f295389ba6 (patch) | |
tree | 6a89a15d52d5ab88b2fafda5c437211b35a2224a | |
parent | a7ec1a2a577af45a6680c370d519ff57cd395c47 (diff) | |
download | vdr-plugin-live-cf87c429240cce0f902f14e845dff5f295389ba6.tar.gz vdr-plugin-live-cf87c429240cce0f902f14e845dff5f295389ba6.tar.bz2 |
- added option channelId to force output of ids instead of numbers
-rw-r--r-- | pages/channels_widget.ecpp | 7 |
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> <{ } } |