<%pre> #include #include "exception.h" #include "setup.h" #include "tools.h" using namespace vdrlive; <%args> name = "channel"; int lastChannel = LiveSetup().GetLastChannel(); selected; onchange; bool channelId = false; <%cpp> ReadLock channelsLock( Channels ); if ( !channelsLock ) throw HtmlError( tr("Channels"), tr("Couldn't aquire access to channels, please try again later.") );