2 var tplUpdateStreamReaderIE = '<iframe id="UpdateStreamReaderIEFixIFrame" src="%(url_updates)" height="0" width="0" scrolling="none" frameborder="0">no iframe support!</iframe>';
3 var tplEPGListHeader = '<table width="100%" border="0" cellspacing="1" cellpadding="0">';
5 var tplEPGListItem = '<tr style="background-color: #DDDDDD;">';
6 tplEPGListItem += '<td width="10%">%(date)</td>';
7 tplEPGListItem += '<td width="30%">%(servicename)</td>';
8 tplEPGListItem += '<td>%(title)</td>';
9 tplEPGListItem += '</tr>';
11 tplEPGListItem += '<tr style="background-color: #DDDDDD;">';
12 tplEPGListItem += '<td>%(starttime)</td>';
13 tplEPGListItem += '<td>%(duration) min.</td>';
14 tplEPGListItem += '<td>%(description)</td>';
15 tplEPGListItem += '</tr>';
17 tplEPGListItem += '<tr style="background-color: #DDDDDD;">';
18 tplEPGListItem += '<td valign="top">%(endtime)</td>';
19 tplEPGListItem += '<td colspan="2"rowspan="2" id="extdescription%(number)">%(extdescriptionSmall)</td>';
20 tplEPGListItem += '</tr>';
22 tplEPGListItem +='<tr style="background-color: #DDDDDD;"><td>';
23 tplEPGListItem +='<a target="_blank" ><img src="/webdata/gfx/timer.png" title="add to Timers" border="0" onclick="addTimerByID(\'%(servicereference)\',\'%(eventid)\',\'False\');"></a> ';
24 tplEPGListItem +='<a target="_blank" ><img src="/webdata/gfx/zap.png" title="add zap to Timers" border="0" onclick="addTimerByID(\'%(servicereference)\',\'%(servicename)\',\'%(eventid)\',\'True\');"></a> ';
25 tplEPGListItem +='<a target="_blank" ><img src="/webdata/gfx/edit.gif" title="edit and add timer" border="0" onclick="loadTimerFormSeconds(0,\'%(start)\',\'%(end)\',0,\'%(servicereference)\',\'%(title)\',\'%(description)\',\'0\',0);"></a><br/>';
26 tplEPGListItem +='<a target="_blank" href="/web/epgsearch.rss?search=%(title)" ><img src="/webdata/gfx/feed.png" title="RSS-Feed for this Title" border="0"></a><br/>';
27 tplEPGListItem +='<a target="_blank" href="http://www.imdb.com/find?s=all&q=%(titleESC)" ><img src="/webdata/gfx/world.png" title="search IMDb" border="0"></a><br/>';
28 tplEPGListItem +='</td></tr>';
30 tplEPGListItem += '<tr style="background-color: #AAAAAA;">';
31 tplEPGListItem += '<td colspan="3"> </td>';
32 tplEPGListItem += '</tr>';
34 var tplEPGListItemExtend = '%(shortTxt) ...<a href="#" onclick="setComplete(\'extdescription%(number)\',\'%(txt)\');">more</a>';
36 var tplEPGListFooter = "</table>";
38 // ServiceList Templates
39 var tplServiceListHeader = '<table border="0" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
40 tplServiceListHeader += '<thead class="fixedHeader">\n';
41 tplServiceListHeader += '<tr>\n';
42 tplServiceListHeader += '<th><div class="sListHeader" style="color: #FFFFFF;">ServiceList</div>\n';
43 tplServiceListHeader += '<div class="sListSearch">';
44 tplServiceListHeader += '<form onSubmit="loadEPGBySearchString(document.getElementById(\'searchText\').value); return false;">';
45 tplServiceListHeader += '<input type="text" id="searchText" onfocus="this.value=\'\'" value="Search EPG"/>';
46 tplServiceListHeader += '<input style="vertical-align:middle" type="image" src="/webdata/gfx/search.png" alt="search...">';
47 tplServiceListHeader += '</form></div></th>';
48 tplServiceListHeader += '</tr>\n';
49 tplServiceListHeader += '</thead>\n';
50 tplServiceListHeader += '<tbody class="scrollContent">\n';
51 tplServiceListHeader += '<input type="hidden" id="mainServiceRef" name="mainServiceRef" value="%(mainServiceRef)">\n';
53 var tplServiceListItem = '<tr id="%(servicereference)extend">\n';
54 tplServiceListItem += '<td style="border-top: 2px solid #AAA;" ><div class="sListSName"><a id="%(servicereference)" onclick="zap(this.id);" class="sListSLink">%(servicename)</a></div>';
55 tplServiceListItem += '<div class="sListExt"><a onclick="loadEPGByServiceReference(this.id)" id="%(servicereference)"><img src="/webdata/gfx/epg.png" border="0"/></a>\n';
56 tplServiceListItem += '<a target="_blank" href="/web/stream.m3u?ref=%(servicereference)"><img src="/webdata/gfx/screen.png" title="stream Service" border="0"></a></div>\n';
57 tplServiceListItem += '</tr>\n';
58 tplServiceListItem += '<tr>\n';
59 tplServiceListItem += '<td colspan="2"><div id="%(servicereference)EPGNOW"></div></td>\n';
60 tplServiceListItem += '</tr>\n';
62 var tplServiceListFooter = "</tbody></table>\n";
65 var tplServiceListEPGItem = '<div class="sListEPGTime">%(starttime)</div>\n';
66 tplServiceListEPGItem += '<div class="sListEPGTitle">%(title)</div>\n';
67 tplServiceListEPGItem += '<div class="sListEPGDuration">%(length) Min.</div>\n';
69 // MovieList Templates
70 var tplMovieListHeader = '<table border="0" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
71 tplMovieListHeader += '<thead class="fixedHeader">\n';
72 tplMovieListHeader += '<tr>\n';
73 tplMovieListHeader += '<th><div class="sListHeader" style="color: #FFFFFF;">MovieList</div>\n';
74 tplMovieListHeader += '<div class="sListSearch">';
75 tplMovieListHeader += '<form onSubmit="loadEPGBySearchString(document.getElementById(\'searchText\').value); return false;">';
76 tplMovieListHeader += '<input type="text" id="searchText" onfocus="this.value=\'\'" value="Search EPG"/>';
77 tplMovieListHeader += '<input style="vertical-align:middle" type="image" src="/webdata/gfx/search.png" alt="search...">';
78 tplMovieListHeader += '</form>';
79 tplMovieListHeader += '</div></th></tr>\n';
80 tplMovieListHeader += '</thead>\n';
81 tplMovieListHeader += '<tbody class="scrollContent">\n';
83 var tplMovieListItem = '<tr>\n';
84 tplMovieListItem += '<td><div class="sListSName" title="%(description), %(descriptionextended)">%(title) (%(servicename))</div>';
85 tplMovieListItem += '<div class="sListExt">\n';
86 tplMovieListItem += '%(tags)\n';
87 tplMovieListItem += '<a target="_blank" href="/web/ts.m3u?file=%(filelink)"><img src="/webdata/gfx/screen.png" title="play file" border="0"></a>\n';
88 tplMovieListItem += ' <a target="_blank" ><img src="/webdata/gfx/trash.gif" title="delete files" border="0" onclick="delMovieFile(\'%(filename)\');"></a>\n';
89 tplMovieListItem += '</div>\n';
90 tplMovieListItem += '</tr>\n';
92 var tplMovieListFooter = "</tbody></table>\n";
94 // TimerList Templates
95 var tplTimerListHeader = '<table border="0" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
96 tplTimerListHeader += '<thead class="fixedHeader">\n';
97 tplTimerListHeader += '<tr>\n';
98 tplTimerListHeader += '<th><div class="sListHeader" style="color: #FFFFFF;">TimerList</div>\n';
99 tplTimerListHeader += '<div class="sListSearch">';
100 tplTimerListHeader += '<form onSubmit="loadEPGBySearchString(document.getElementById(\'searchText\').value); return false;">';
101 tplTimerListHeader += '<input type="text" id="searchText" onfocus="this.value=\'\'" value="Search EPG"/>';
102 tplTimerListHeader += '<input style="vertical-align:middle" type="image" src="/webdata/gfx/search.png" alt="search...">';
103 tplTimerListHeader += '</form></div></th>';
104 tplTimerListHeader += '</tr>\n';
105 tplTimerListHeader += '</thead>\n';
106 tplTimerListHeader += '<tbody class="scrollContent">\n';
107 tplTimerListHeader += '<tr><td><font color="#000011"><b>Channel</b></font></td><td><font color="#000011"><b>Name</b></font></td><td><font color="#000011"><b>Description</b></font></td><td><font color="#000011"><b>Repeated</b></font></td><td><font color="#000011"><b>Time running</b></font></td><td><font color="#000011"><b>Start time</b></font></td><td><font color="#000011"><b>End time</b></font></td><td><font color="#000011"><b>After event</b></font></td><td align="center"><font color="#000011"><b>Options</b></font></td></tr>\n';
109 var tplTimerListItem = '';
110 tplTimerListItem += '<tr>\n';
111 /* tplTimerListItem += '<td><div style="color: #%(color);" class="sListSName" title="%(description), %(descriptionextended)">%(title) (%(servicename))</div>';
112 tplTimerListItem += '<div class="sListExt" style="color: #%(color);">\n';
113 tplTimerListItem += '%(duration) Min\n';
114 tplTimerListItem += '<a target="_blank" ><img src="/webdata/gfx/trash.gif" title="delete timer entry" border="0" onclick="delTimer(\'%(servicereference)\',\'%(begin)\',\'%(end)\');"></a>';
115 tplTimerListItem += '<a target="_blank" ><img src="/webdata/gfx/edit.gif" title="edit timer entry" border="0" onclick="loadTimerFormSeconds(\'%(justplay)\',\'%(begin)\',\'%(end)\',\'%(repeated)\',\'%(servicereference)\',\'%(title)\',\'%(description)\',\'%(afterevent)\',1);"></a><br/>';
116 tplTimerListItem += '</div>\n';
117 tplTimerListItem += '</tr>\n';*/
118 // i'm not getting this div stuff. until Reichi gets it nices done, i will insert this :) :
119 tplTimerListItem += '<td><font color="#%(color)">%(servicename)</font></td>\n';
120 tplTimerListItem += '<td><font color="#%(color)">%(title)</font></td>\n';
121 tplTimerListItem += '<td><font color="#%(color)">%(description)</font></td>\n';
122 tplTimerListItem += '<td><font color="#%(color)">%(repeatedReadable)</font></td>\n';
123 tplTimerListItem += '<td><font color="#%(color)">%(duration)</font></td>\n';
124 tplTimerListItem += '<td><font color="#%(color)">%(beginDate)</font></td>\n';
125 tplTimerListItem += '<td><font color="#%(color)">%(endDate)</font></td>\n';
126 tplTimerListItem += '<td><font color="#%(color)">%(aftereventReadable),%(justplayReadable)</font></td>\n';
127 tplTimerListItem += '<td><a target="_blank" ><img src="/webdata/gfx/trash.gif" title="delete timer entry" border="0" onclick="delTimer(\'%(servicereference)\',\'%(begin)\',\'%(end)\');"></a>\n';
128 tplTimerListItem += '<a target="_blank" ><img src="/webdata/gfx/%(onOff).png" title="toggle On/Off" border="0" onclick="sendToggleTimerDisable(\'%(justplay)\',\'%(begin)\',\'%(end)\',\'%(repeated)\',\'%(servicereference)\',\'%(title)\',\'%(description)\',\'%(afterevent)\',\'%(disabled)\' );"></a>\n';
129 tplTimerListItem += '<a target="_blank" ><img src="/webdata/gfx/edit.gif" title="edit timer entry" border="0" onclick="loadTimerFormSeconds(\'%(justplay)\',\'%(begin)\',\'%(end)\',\'%(repeated)\',\'%(servicereference)\',\'%(servicename)\',\'%(title)\',\'%(description)\',\'%(afterevent)\',1);"></a></td>\n';
130 tplTimerListItem += '</tr>\n';
132 var tplTimerListFooter = '<tr><button onclick="writeTimerListNow()">write TimerList to memory now</button></tr>\n';
133 tplTimerListFooter += '</tbody></table>\n';
135 // Bouquetlist Template
136 var tplBouquetListHeader = '<table id="BouquetList" width="100%" border="0" cellspacing="1" cellpadding="0" border="0">';
138 var tplBouquetListItem = '<tr>\n';
139 tplBouquetListItem += '<td><div class="navMenuItem" id="%(servicereference)" onclick="loadBouquet(this.id);">%(bouquetname)</div></td>';
140 tplBouquetListItem += '</tr>\n';
142 var tplBouquetListFooter = "</table>";
145 var tplVolumePanel = "<img onclick='volumeUp()' src='/webdata/gfx/arrow_up.png'>";
146 tplVolumePanel += "<img onclick='volumeDown()' src='/webdata/gfx/arrow_down.png'>";
147 tplVolumePanel += "<img id='volume1' onclick='volumeSet(10)' src='/webdata/gfx/led_off.png'>";
148 tplVolumePanel += "<img id='volume2' onclick='volumeSet(20)' src='/webdata/gfx/led_off.png'>";
149 tplVolumePanel += "<img id='volume3' onclick='volumeSet(30)' src='/webdata/gfx/led_off.png'>";
150 tplVolumePanel += "<img id='volume4' onclick='volumeSet(40)' src='/webdata/gfx/led_off.png'>";
151 tplVolumePanel += "<img id='volume5' onclick='volumeSet(50)' src='/webdata/gfx/led_off.png'>";
152 tplVolumePanel += "<img id='volume6' onclick='volumeSet(60)' src='/webdata/gfx/led_off.png'>";
153 tplVolumePanel += "<img id='volume7' onclick='volumeSet(70)' src='/webdata/gfx/led_off.png'>";
154 tplVolumePanel += "<img id='volume8' onclick='volumeSet(80)' src='/webdata/gfx/led_off.png'>";
155 tplVolumePanel += "<img id='volume9' onclick='volumeSet(90)' src='/webdata/gfx/led_off.png'>";
156 tplVolumePanel += "<img id='volume10' onclick='volumeSet(100)' src='/webdata/gfx/led_off.png'>";
157 tplVolumePanel += "<img id='speaker' onclick='volumeMute()' src='/webdata/gfx/speak_on.png'>";
160 var tplSignalPanel = '<table width="100%" id="SignalPanelTable">';
161 tplSignalPanel += '<tr><td style="background-color: #DDDDDD;">SNR</td><td width="50" style="background-color: #DDDDDD;"><div id="SNR">N/A</div></td></tr>';
162 tplSignalPanel += '<tr><td style="background-color: #DDDDDD;">AGC</td><td width="50" style="background-color: #DDDDDD;"><div id="AGC">N/A</div></td></tr>';
163 tplSignalPanel += '<tr><td style="background-color: #DDDDDD;">BER</td><td width="50" style="background-color: #DDDDDD;"><div id="BER">N/A</div></td></tr>';
164 tplSignalPanel += '</table>';
166 var tplSignalPanelButton = '<img src="/webdata/gfx/signal.png" title="show SignalInfoPanel" onclick="openSignalDialog();" title="view Signal Info">';
169 var tplMessageSendForm = ""
170 tplMessageSendForm += '<table id="MessageSendForm" width="100%" border="0" cellspacing="1" cellpadding="0" border="0">';
171 tplMessageSendForm += '<tr><td>Text</td><td><input type="text" id="MessageSendFormText" value=""></td></tr>\n';
172 tplMessageSendForm += '<tr><td>Timeout</td><td><input type="text" id="MessageSendFormTimeout" value=""></td></tr>\n';
173 tplMessageSendForm += '<tr><td>Typ</td><td><select id="MessageSendFormType">';
174 tplMessageSendForm += '<option value="1">Info</option>';
175 tplMessageSendForm += '<option value="0">YesNo</option>';
176 tplMessageSendForm += '<option value="2">Warning</option>';
177 tplMessageSendForm += '<option value="3">Error</option>';
178 tplMessageSendForm += '</select></td></tr>\n';
179 tplMessageSendForm += '<tr><td colspan="2"><button onclick="sendMessage()">send Message</button></td></tr>\n';
180 tplMessageSendForm += "</table></form>\n";
182 //var tplPasswordSendForm = ""
183 // tplPasswordSendForm += '<table id="PasswordSendForm" width="100%" border="0" cellspacing="1" cellpadding="0" border="0">';
184 // tplPasswordSendForm += '<tr><td>Old password</td><td><input type="password" id="PasswordSendFormOldPassword" value=""></td></tr>\n';
185 // tplPasswordSendForm += '<tr><td>New password</td><td><input type="password" id="PasswordSendFormNewPassword" value=""></td></tr>\n';
186 // tplPasswordSendForm += '<tr><td>Repeat new password</td><td><input type="password" id="PasswordSendFormNewPasswordSecond" value=""></td></tr>\n';
187 // tplPasswordSendForm += '<tr><td colspan="2"><button onclick="sendPasswords()">change password for user dreambox</button></td></tr>\n';
188 // tplPasswordSendForm += "</table></form>\n";
189 var tplPowerStateSendForm = '';
190 tplPowerStateSendForm += '<p><center><button onclick="sendPowerState(1)">deepstandby Dreambox</button></center></p>';
191 tplPowerStateSendForm += '<p><center><button onclick="sendPowerState(2)">reboot Dreambox</button></center></p>';
192 tplPowerStateSendForm += '<hr>';
193 tplPowerStateSendForm += '<p><center><button onclick="sendPowerState(3)">restart Enigma2</button></center></p>';
194 //Something is not working here, so I will do a quickhack
195 // tplPowerStateSendForm += '<p><center><button onclick="sendPowerState(4)">standby Enigma2</button></center></p>';
196 tplPowerStateSendForm += '<p><center><button onclick="sendRemoteControlRequest(116)">toggle standby Enigma2</button></center></p>';
198 // Template for the RemoteControl Window
199 var tplRemoteControlForm = '';
200 tplRemoteControlForm += '<map name="remotecontrol">';
201 tplRemoteControlForm += '<area shape="circle" coords="129, 54, 10" href="#" onclick="sendRemoteControlRequest(116)" alt="Power">';
202 // tplRemoteControlForm += '<area shape="circle" coords="72, 95, 15" href="#" alt="Dream message">';
203 // tplRemoteControlForm += '<area shape="circle" coords="130, 95, 15" href="#" alt="TV Screenshot">';
204 tplRemoteControlForm += '<area shape="circle" coords="63, 123, 10" href="#" onclick="sendRemoteControlRequest(2)" alt="1">';
205 tplRemoteControlForm += '<area shape="circle" coords="109, 123, 10" href="#" onclick="sendRemoteControlRequest(3)" alt="2">';
206 tplRemoteControlForm += '<area shape="circle" coords="153, 123, 10" href="#" onclick="sendRemoteControlRequest(4)" alt="3">';
207 tplRemoteControlForm += '<area shape="circle" coords="63, 148, 10" href="#" onclick="sendRemoteControlRequest(5)" alt="4">';
208 tplRemoteControlForm += '<area shape="circle" coords="109, 148, 10" href="#" onclick="sendRemoteControlRequest(6)" alt="5">';
209 tplRemoteControlForm += '<area shape="circle" coords="153, 148, 10" href="#" onclick="sendRemoteControlRequest(7)" alt="6">';
210 tplRemoteControlForm += '<area shape="circle" coords="63, 173, 10" href="#" onclick="sendRemoteControlRequest(8)" alt="7">';
211 tplRemoteControlForm += '<area shape="circle" coords="109, 173, 10" href="#" onclick="sendRemoteControlRequest(9)" alt="8">';
212 tplRemoteControlForm += '<area shape="circle" coords="153, 173, 10" href="#" onclick="sendRemoteControlRequest(10)" alt="9">';
213 tplRemoteControlForm += '<area shape="circle" coords="63, 197, 10" href="#" onclick="sendRemoteControlRequest(412)" alt="previous">';
214 tplRemoteControlForm += '<area shape="circle" coords="109, 197, 10" href="#" onclick="sendRemoteControlRequest(11)" alt="0">';
215 tplRemoteControlForm += '<area shape="circle" coords="153, 197, 10" href="#" onclick="sendRemoteControlRequest(407)" alt="next">';
216 tplRemoteControlForm += '<area shape="circle" coords="54, 243, 15" href="#" onclick="sendRemoteControlRequest(115)" alt="volume up">';
217 tplRemoteControlForm += '<area shape="circle" coords="107, 233, 10" href="#" onclick="sendRemoteControlRequest(113)" alt="mute">';
218 tplRemoteControlForm += '<area shape="circle" coords="159, 243, 15" href="#" onclick="sendRemoteControlRequest(402)" alt="bouquet up">';
219 tplRemoteControlForm += '<area shape="circle" coords="66, 274, 15" href="#" onclick="sendRemoteControlRequest(114)" alt="volume down">';
220 tplRemoteControlForm += '<area shape="circle" coords="107, 258, 10" href="#" onclick="sendRemoteControlRequest(174)" alt="lame">';
221 tplRemoteControlForm += '<area shape="circle" coords="147, 274, 15" href="#" onclick="sendRemoteControlRequest(403)" alt="bouquet down">';
222 tplRemoteControlForm += '<area shape="circle" coords="48, 306, 10" href="#" onclick="sendRemoteControlRequest(358)" alt="info">';
223 tplRemoteControlForm += '<area shape="circle" coords="106, 310, 15" href="#" onclick="sendRemoteControlRequest(103)" alt="up">';
224 tplRemoteControlForm += '<area shape="circle" coords="167, 306, 10" href="#" onclick="sendRemoteControlRequest(139)" alt="menu">';
225 tplRemoteControlForm += '<area shape="circle" coords="70, 343, 15" href="#" onclick="sendRemoteControlRequest(105)" alt="left">';
226 tplRemoteControlForm += '<area shape="circle" coords="108, 340, 15" href="#" onclick="sendRemoteControlRequest(352)" alt="OK">';
227 tplRemoteControlForm += '<area shape="circle" coords="146, 343, 15" href="#" onclick="sendRemoteControlRequest(106)" alt="right">';
228 tplRemoteControlForm += '<area shape="circle" coords="53, 381, 10" href="#" onclick="sendRemoteControlRequest(392)" alt="audio">';
229 tplRemoteControlForm += '<area shape="circle" coords="106, 374, 15" href="#" onclick="sendRemoteControlRequest(108)" alt="down">';
230 tplRemoteControlForm += '<area shape="circle" coords="162, 381, 10" href="#" onclick="sendRemoteControlRequest(393)" alt="video">';
231 tplRemoteControlForm += '<area shape="circle" coords="56, 421, 10" href="#" onclick="sendRemoteControlRequest(398)" alt="red">';
232 tplRemoteControlForm += '<area shape="circle" coords="90, 422, 10" href="#" onclick="sendRemoteControlRequest(399)" alt="green">';
233 tplRemoteControlForm += '<area shape="circle" coords="123, 422, 10" href="#" onclick="sendRemoteControlRequest(400)" alt="yellow">';
234 tplRemoteControlForm += '<area shape="circle" coords="158, 421, 10" href="#" onclick="sendRemoteControlRequest(401)" alt="blue">';
235 tplRemoteControlForm += '<area shape="circle" coords="61, 460, 10" href="#" onclick="sendRemoteControlRequest(377)" alt="tv">';
236 tplRemoteControlForm += '<area shape="circle" coords="90, 461, 10" href="#" onclick="sendRemoteControlRequest(385)" alt="radio">';
237 tplRemoteControlForm += '<area shape="circle" coords="123, 461, 10" href="#" onclick="sendRemoteControlRequest(388)" alt="text">';
238 tplRemoteControlForm += '<area shape="circle" coords="153, 460, 10" href="#" onclick="sendRemoteControlRequest(138)" alt="help">';
239 tplRemoteControlForm += '</map>';
240 tplRemoteControlForm += '<img src="/webdata/gfx/remotecontrol.jpg" height="607" width="220" border="0)" alt="Remote Control" usemap="#remotecontrol">';
242 var tplAddTimerForm = '';
243 tplAddTimerForm += '<table border=0 cellpadding=0 cellspacing=10>';
244 tplAddTimerForm += '<tr><td colspan="3">Action:</td>';
245 tplAddTimerForm += '<td colspan="3">';
246 tplAddTimerForm += '<select name="justplay" id="justplay" size="1">';
247 tplAddTimerForm += '%(justplay)';
248 tplAddTimerForm += '</select></td></tr>';
249 tplAddTimerForm += '<tr><td colspan="3"> </td>';
250 tplAddTimerForm += '<td colspan="3">Note: For recurring events start/end day/month are not required.</td></tr>';
251 tplAddTimerForm += '<tr><td colspan="3">Start:</td>';
252 tplAddTimerForm += '<td colspan="3"><select name="syear" size="1" id="syear" onchange="javascript:addTimerFormChangeTime(\'syear\');">%(syear)</select>.';
253 tplAddTimerForm += '<select name="smonth" id="smonth" size="1" onchange="javascript:addTimerFormChangeTime(\'smonth\');">%(smonth)</select>.';
254 tplAddTimerForm += '<select name="sday" id="sday" size="1" onchange="javascript:addTimerFormChangeTime(\'sday\');">%(sday)</select>';
255 tplAddTimerForm += ' - <select name="shour" id="shour" size="1" onchange="javascript:addTimerFormChangeTime(\'shour\');">%(shour)</select>';
256 tplAddTimerForm += ':<select name="smin" id="smin" size="1" onchange="javascript:addTimerFormChangeTime(\'smin\');">%(smin)</select></td></tr>';
257 tplAddTimerForm += '<tr><td colspan="3">End:</td>';
258 tplAddTimerForm += '<td colspan="3"><select name="eyear" id="eyear" size="1" onchange="javascript:addTimerFormChangeTime(\'eyear\');">%(eyear)</select>.';
259 tplAddTimerForm += '<select name="emonth" id="emonth" size="1" onchange="javascript:addTimerFormChangeTime(\'emonth\');">%(emonth)</select>.';
260 tplAddTimerForm += '<select name="eday" id="eday" size="1" onchange="javascript:addTimerFormChangeTime(\'eday\');">%(eday)</select>';
261 tplAddTimerForm += ' - <select name="ehour" id="ehour" size="1" onchange="javascript:addTimerFormChangeTime(\'ehour\');">%(ehour)</select>';
262 tplAddTimerForm += ':<select name="emin" id="emin" size="1" onchange="javascript:addTimerFormChangeTime(\'emin\');">%(emin)</select></td></tr>';
263 tplAddTimerForm += '<tr><td colspan="3"> </td><td colspan="3">Note: For one-time events the "days" field doesn\'t have to be specified.</td></tr>';
264 tplAddTimerForm += '<tr><td colspan="3">Days:</td><td colspan="3">%(repeated)';
265 tplAddTimerForm += '<tr><td colspan="3">Channel:</td><td>';
266 tplAddTimerForm += '<p><input type="radio" id="tvradio" name="tvradio" value="tv" checked onchange="javascript:addTimerFormChangeType();"">TV</p>';
267 tplAddTimerForm += '<p><input type="radio" name="tvradio" value="radio" onchange="javascript:addTimerFormChangeType();">Radio</p><td>';
268 tplAddTimerForm += '<p>Channel:</p>';
269 tplAddTimerForm += '<select name="channel" id="channel" size="1" onchange="timerFormExtendChannellist($(\'channel\').options[$(\'channel\').selectedIndex].value)">%(channel)</select></td></tr>';
270 tplAddTimerForm += '<tr><td colspan="3">Name:</td>';
271 tplAddTimerForm += '<td colspan="3"><input name="name" id="name" type="text" size="100" maxlength="100" style="color: #000000;" value="%(name)"></td></tr>';
272 tplAddTimerForm += '<tr><td colspan="3">Description:</td>';
273 tplAddTimerForm += '<td colspan="3"><input name="descr" id="descr" type="text" size="100" maxlength="100" style="color: #000000;" value="%(description)"></td></tr>';
274 tplAddTimerForm += '<tr><td colspan="3">After event do:</td>';
275 tplAddTimerForm += '<td colspan="3"><select id="after_event" name="after_event" size="1">%(afterEvent)</select></td></tr>';
276 tplAddTimerForm += '<tr> </tr>';
277 tplAddTimerForm += '<tr><td colspan="3"> </td><td colspan="3">';
278 tplAddTimerForm += '<input name="deleteOldOnSave" id="deleteOldOnSave" type="hidden" value="%(deleteOldOnSave)">';
279 tplAddTimerForm += '<input name="channelOld" id="channelOld" type="hidden" value="%(channelOld)">';
280 tplAddTimerForm += '<input name="beginOld" id="beginOld" type="hidden" value="%(beginOld)">';
281 tplAddTimerForm += '<input name="endOld" id="endOld" type="hidden" value="%(endOld)">';
282 tplAddTimerForm += '<button onclick="sendAddTimer()">Add/Save</button></td></tr></table>';
284 var tplAddTimerFormOptions = '';
285 tplAddTimerFormOptions += '<option value="%(value)" %(selected)>%(txt)</option>';
287 var tplAddTimerFormCheckbox = '';
288 tplAddTimerFormCheckbox += '<input type="checkbox" id="%(id)" name="%(name)" value="%(value)" %(checked)> %(txt) ';
290 // <input type="checkbox" id="'+ Repeated[String(list[i])] +'" name="'+ Repeated[String(list[i])] +'" value="'+ list[i] +'" checked> '+ txt +' ' + html2;