* Improve About
[vuplus_dvbapp-plugin] / webinterface / src / web-data / templates.js
1 Version = '$Header$';
2 // EPG Templates
3 var tplUpdateStreamReaderIE = '<iframe id="UpdateStreamReaderIEFixIFrame" src="%(url_updates)" height="0" width="0" scrolling="none" frameborder="0">no iframe support!</iframe>';
4 var tplEPGListHeader = '<table width="100%" border="0" cellspacing="1" cellpadding="0">';
5
6 var tplEPGListItem  = '<tr style="background-color: #DDDDDD;">';
7         tplEPGListItem += '<td width="10%">%(date)</td>';
8         tplEPGListItem += '<td width="30%">%(servicename)</td>';
9         tplEPGListItem += '<td>%(title)</td>';
10         tplEPGListItem += '</tr>';
11         
12         tplEPGListItem += '<tr style="background-color: #DDDDDD;">';
13         tplEPGListItem += '<td>%(starttime)</td>';
14         tplEPGListItem += '<td>%(duration) min.</td>';
15         tplEPGListItem += '<td>%(description)</td>';
16         tplEPGListItem += '</tr>';
17         
18         tplEPGListItem += '<tr style="background-color: #DDDDDD;">';
19         tplEPGListItem += '<td valign="top">%(endtime)</td>';
20         tplEPGListItem += '<td colspan="2"rowspan="2" id="extdescription%(number)">%(extdescriptionSmall)</td>';
21         tplEPGListItem += '</tr>';
22         
23         tplEPGListItem +='<tr style="background-color: #DDDDDD;"><td>';
24         tplEPGListItem +='<a target="_blank" ><img src="/webdata/gfx/timer.png" title="add to Timers" border="0" onclick="addTimerByID(\'%(servicereference)\',\'%(eventid)\',\'0\');"></a>&nbsp;&nbsp;';
25         tplEPGListItem +='<a target="_blank" ><img src="/webdata/gfx/zap.png" title="add zap to Timers" border="0" onclick="addTimerByID(\'%(servicereference)\',\'%(eventid)\',\'1\');"></a>&nbsp;&nbsp;';
26         tplEPGListItem +='<a target="_blank" ><img src="/webdata/gfx/edit.gif" title="edit and add timer" border="0" onclick="loadTimerFormSeconds(0,\'%(start)\',\'%(end)\',0,\'%(servicereference)\',\'%(servicename)\',\'%(title)\',\'%(description)\',\'0\',0,\'%(eventid)\');"></a><br/>';
27         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/>';
28         tplEPGListItem +='<a target="_blank" href="http://www.imdb.com/find?s=all&amp;q=%(titleESC)" ><img src="/webdata/gfx/world.png" title="search IMDb" border="0"></a><br/>';
29         tplEPGListItem +='</td></tr>';
30         tplEPGListItem += '<tr style="background-color: #AAAAAA;">';
31         tplEPGListItem += '<td colspan="3">&nbsp;</td>';
32         tplEPGListItem += '</tr>';
33
34 var tplEPGListItemExtend  = '%(shortTxt) ...<a nohref onclick="setComplete(\'extdescription%(number)\',\'%(txt)\');">more</a>';
35
36 var tplEPGListFooter = "</table>";
37         
38 // ServiceList Templates
39 var tplServiceListHeader  = '<div class="BodyContentChannellist">\n';
40         tplServiceListHeader += '<table border="0" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
41         tplServiceListHeader += '<thead class="fixedHeader">\n';
42         tplServiceListHeader += '<tr>\n';
43         tplServiceListHeader += '<th><div class="sListHeader">ServiceList</div>\n';
44         tplServiceListHeader += '<div class="sListSearch">';
45         tplServiceListHeader += '<form onSubmit="loadEPGBySearchString(document.getElementById(\'searchText\').value); return false;">';
46         tplServiceListHeader += '<input type="text" id="searchText" onfocus="this.value=\'\'" value="Search EPG"/>';
47         tplServiceListHeader += '<input style="vertical-align:middle" type="image" src="/webdata/gfx/search.png" alt="search...">';
48         tplServiceListHeader += '</form></div></th>';
49         tplServiceListHeader += '</tr>\n';
50         tplServiceListHeader += '</thead>\n';
51         tplServiceListHeader += '<tbody class="scrollContent">\n';
52         tplServiceListHeader += '<input type="hidden" id="mainServiceRef" name="mainServiceRef" value="%(mainServiceRef)">\n';
53
54 var tplServiceListItem  = '<tr id="%(servicereference)extend">\n';
55         tplServiceListItem += '<td style="border-top: 2px solid #AAA;" ><div class="sListSName"><a id="%(servicereference)" onclick="zap(this.id);" class="sListSLink">%(servicename)</a></div>';
56         tplServiceListItem += '<div class="sListExt"><a onclick="loadEPGByServiceReference(this.id)" id="%(servicereference)"><img src="/webdata/gfx/epg.png" border="0"/></a>\n';
57         tplServiceListItem += '<a target="_blank" href="/web/stream.m3u?ref=%(servicereference)"><img src="/webdata/gfx/screen.png" title="stream Service" border="0"></a></div>\n';
58         tplServiceListItem += '</tr>\n';
59     tplServiceListItem += '<tr>\n';
60         tplServiceListItem += '<td colspan="2"><div id="%(servicereference)EPGNOW"></div></td>\n';
61         tplServiceListItem += '</tr>\n';
62         
63 var tplServiceListFooter = "</tbody>\n</table>\n</div>\n";
64 //
65
66 var     tplServiceListEPGItem  = '<div class="sListEPGTime">%(starttime)</div>\n';
67         tplServiceListEPGItem += '<div class="sListEPGTitle">%(title)</div>\n';
68         tplServiceListEPGItem += '<div class="sListEPGDuration">%(length) Min.</div>\n';
69
70 // MovieList Templates
71 var tplMovieListHeader  = '<table border="0" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
72         tplMovieListHeader += '<thead class="fixedHeader">\n';
73         tplMovieListHeader += '<tr>\n';
74         tplMovieListHeader += '<th><div class="sListHeader" style="color: #000000;">MovieList</div>\n';
75         tplMovieListHeader += '<div class="sListSearch">';
76         tplMovieListHeader += '<form onSubmit="loadMovieList(document.getElementById(\'filterMovietag\').value); return false;">';
77         tplMovieListHeader += '<input type="text" id="filterMovietag" onfocus="this.value=\'\'" value="filter by Tag"/>';
78         tplMovieListHeader += '<input style="vertical-align:middle" type="image" src="/webdata/gfx/search.png" alt="search...">';
79         tplMovieListHeader += '</form></div></th>';
80         tplMovieListHeader += '</tr>\n';
81         tplMovieListHeader += '</thead>\n';
82         tplMovieListHeader += '<tbody class="scrollContent">\n';
83
84 var tplMovieListItem  = '<tr>\n';
85         tplMovieListItem += '<td><div class="sListSName" title="%(description), %(descriptionextended)">%(title) (%(servicename))</div>';
86         tplMovieListItem += '<div class="sListExt">\n';
87         tplMovieListItem += '%(tags)\n';
88         tplMovieListItem += '<a target="_blank" href="/web/ts.m3u?file=%(filelink)"><img src="/webdata/gfx/screen.png" title="play file" border="0"></a>\n';
89         tplMovieListItem += '<a target="_blank" href="/movie/?file=%(filelink)"><img src="/webdata/gfx/save.png" title="download Movie" border="0"></a>\n';
90         tplMovieListItem += '&nbsp;&nbsp;<a target="_blank" ><img src="/webdata/gfx/trash.gif" title="delete files" border="0" onclick="delMovieFile(\'%(filename)\',\'%(servicename)\',\'%(title)\',\'%(description)\');"></a>\n';
91         tplMovieListItem += '</div>\n';
92         tplMovieListItem += '</tr>\n';
93         
94 var tplMovieListFooter = "</tbody></table>\n";
95
96 // TimerList Templates
97 var tplTimerListHeader  = '<table border="0" height="100%" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
98         tplTimerListHeader += '<thead class="fixedHeader">\n';
99         tplTimerListHeader += '<tr>\n';
100         tplTimerListHeader += '<th><div class="sListHeader" style="color: #000000;">TimerList</div>\n';
101         tplTimerListHeader += '<div class="sListSearch">';
102         tplTimerListHeader += '<form onSubmit="loadEPGBySearchString(document.getElementById(\'searchText\').value); return false;">';
103         tplTimerListHeader += '<input type="text" id="searchText" onfocus="this.value=\'\'" value="Search EPG"/>';
104         tplTimerListHeader += '<input style="vertical-align:middle" type="image" src="/webdata/gfx/search.png" alt="search...">';
105         tplTimerListHeader += '</form></div></th>';
106         tplTimerListHeader += '</tr>\n';
107         tplTimerListHeader += '</thead>\n';
108         tplTimerListHeader += '<tbody class="scrollContent" height="100%">\n';
109         tplTimerListHeader += '<tr>';
110         tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListSName"><b>Channel</b><br/>Name</div></td>';
111 /*      tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListTitle"><b>Name</b></div></td>';*/
112 /*      tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListDescr"><b>Description</b></div></td>';*/
113         tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListRepeat"><b>Repeated</b></div></td>';
114         tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListDuration"><b>Time running</b></div></td>';
115         tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListBegin"><b>Start time</b></div></td>';
116         tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListEnd"><b>End time</b></div></td>';
117         tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListAfter"><b>Event</b><br/>After event</div></td>';
118         tplTimerListHeader += '<td><div style="color: #00BCBC;" class="tListOption"><b>Options</b></div></td></tr>\n';
119
120 var tplTimerListItem  = '<tr width="99%">\n';
121         tplTimerListItem += '<td><div style="color: #%(color);" class="tListSName" title="%(description), %(descriptionextended)"><b>%(servicename)</b> <br/><br/> %(title)</div></td>\n';
122         tplTimerListItem += '<td><div style="color: #%(color);" class="tListRepeat">%(repeatedReadable)</div></td>\n';
123         tplTimerListItem += '<td><div style="color: #%(color);" class="tListDuration">%(duration)&nbsp;Min</div></td>\n';
124         tplTimerListItem += '<td><div style="color: #%(color);" class="tListBegin">%(beginDate)</div></td>\n';
125         tplTimerListItem += '<td><div style="color: #%(color);" class="tListEnd">%(endDate)</div></td>\n';
126         tplTimerListItem += '<td><div style="color: #%(color);" class="tListAfter"><b>%(justplayReadable)</b> <br/><br/> %(aftereventReadable)</div></td>\n';
127         tplTimerListItem += '<td><div style="color: #%(color);" class="tListOption"><a target="_blank" ><img src="/webdata/gfx/trash.gif" title="delete timer entry" border="0" onclick="delTimer(\'%(servicereference)\',\'%(begin)\',\'%(end)\',\'%(servicename)\',\'%(title)\',\'%(description)\',incomingTimerDelResult);"></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></div></td>\n';
130         tplTimerListItem += '</tr>\n';
131
132 var tplTimerListFooter  = '<tr><button onclick="writeTimerListNow()">write TimerList to memory now</button></tr>\n';
133         tplTimerListFooter += '<tr><button onclick="cleanTimerListNow()">clean List from non-aktiv entries</button></tr>\n';
134     tplTimerListFooter += '</tbody></table>\n';
135
136 var tplRecordingFooter   = '<hr><br><table style="text-align: left; width: 100%; height: 178px;" border="0" cellpadding="2" cellspacing="2"><tbody>';
137     tplRecordingFooter  += '<tr><td style="vertical-align: top;">';
138     tplRecordingFooter  += '<input type="radio" id="recordNowNothing" name="recordNow" value="nothing" checked>';
139     tplRecordingFooter  += '</td><td style="vertical-align: top;">';
140     tplRecordingFooter  += 'Do nothing';
141     tplRecordingFooter  += '</td></tr>';
142     tplRecordingFooter  += '<tr><td style="vertical-align: top;">';
143     tplRecordingFooter  += '<input type="radio" id="recordNowUndefinitely" name="recordNow" value="undefinitely">';
144     tplRecordingFooter  += '</td><td style="vertical-align: top;">';
145     tplRecordingFooter  += 'record current playing undefinitely';
146     tplRecordingFooter  += '</td></tr>';
147     tplRecordingFooter  += '<tr><td style="vertical-align: top;">';
148     tplRecordingFooter  += '<input type="radio" id="recordNowCurrent" name="recordNow" value="recordCurrentEvent">';
149     tplRecordingFooter  += '</td><td style="vertical-align: top;">';
150     tplRecordingFooter  += 'record current event';
151     tplRecordingFooter  += '</td></tr>';
152         tplRecordingFooter  += '<tr><td style="vertical-align: top;">';
153         tplRecordingFooter  += '&nbsp;';
154     tplRecordingFooter  += '</td><td style="vertical-align: top;">';
155     tplRecordingFooter  += '<img src="/webdata/gfx/ok.jpg" title="OK" border="0" onclick="recordingPushedDecision(ifChecked($(\'recordNowNothing\')), ifChecked($(\'recordNowUndefinitely\')), ifChecked($(\'recordNowCurrent\')) );window.close()">';
156     tplRecordingFooter  += '</td></tr>';
157     tplRecordingFooter  += '</tbody></table>';
158
159 // Bouquetlist Template
160 var tplBouquetListHeader = '<table id="BouquetList" width="100%" border="0" cellspacing="1" cellpadding="0" border="0">';
161
162 var tplBouquetListItem  = '<tr>\n';
163         tplBouquetListItem += '<td><div class="navMenuItem" id="%(servicereference)" onclick="loadBouquet(this.id);">%(bouquetname)</div></td>';
164         tplBouquetListItem += '</tr>\n';
165
166 var tplBouquetListFooter = "</table>";
167
168 //Volume Template
169 var tplVolumePanel  = "<img onclick='volumeUp()' src='/webdata/gfx/arrow_up.png'>"; 
170         tplVolumePanel += "<img onclick='volumeDown()' src='/webdata/gfx/arrow_down.png'>"; 
171         tplVolumePanel += "<img id='volume1' onclick='volumeSet(10)' src='/webdata/gfx/led_off.png'>"; 
172         tplVolumePanel += "<img id='volume2' onclick='volumeSet(20)' src='/webdata/gfx/led_off.png'>"; 
173         tplVolumePanel += "<img id='volume3' onclick='volumeSet(30)' src='/webdata/gfx/led_off.png'>"; 
174         tplVolumePanel += "<img id='volume4' onclick='volumeSet(40)' src='/webdata/gfx/led_off.png'>"; 
175         tplVolumePanel += "<img id='volume5' onclick='volumeSet(50)' src='/webdata/gfx/led_off.png'>"; 
176         tplVolumePanel += "<img id='volume6' onclick='volumeSet(60)' src='/webdata/gfx/led_off.png'>"; 
177         tplVolumePanel += "<img id='volume7' onclick='volumeSet(70)' src='/webdata/gfx/led_off.png'>"; 
178         tplVolumePanel += "<img id='volume8' onclick='volumeSet(80)' src='/webdata/gfx/led_off.png'>"; 
179         tplVolumePanel += "<img id='volume9' onclick='volumeSet(90)' src='/webdata/gfx/led_off.png'>"; 
180         tplVolumePanel += "<img id='volume10' onclick='volumeSet(100)' src='/webdata/gfx/led_off.png'>"; 
181         tplVolumePanel += "<img id='speaker' onclick='volumeMute()' src='/webdata/gfx/speak_on.png'>";
182         
183 //Signal Template
184 var tplSignalPanel  = '<table width="100%" id="SignalPanelTable">';
185         tplSignalPanel += '<tr><td style="background-color: #DDDDDD;">SNR</td><td width="50" style="background-color: #DDDDDD;"><div id="SNR">N/A</div></td></tr>';
186         tplSignalPanel += '<tr><td style="background-color: #DDDDDD;">AGC</td><td width="50" style="background-color: #DDDDDD;"><div id="AGC">N/A</div></td></tr>';
187         tplSignalPanel += '<tr><td style="background-color: #DDDDDD;">BER</td><td width="50" style="background-color: #DDDDDD;"><div id="BER">N/A</div></td></tr>';
188         tplSignalPanel += '</table>';
189         
190
191 // Message send
192 var tplMessageSendForm = ""
193         tplMessageSendForm += '<table id="MessageSendForm" width="100%" border="0" cellspacing="1" cellpadding="0" border="0">';
194         tplMessageSendForm += '<tr><td>Text</td><td><input type="text" id="MessageSendFormText" value=""></td></tr>\n';
195         tplMessageSendForm += '<tr><td>Timeout</td><td><input type="text" id="MessageSendFormTimeout" value=""></td></tr>\n';
196         tplMessageSendForm += '<tr><td>Typ</td><td><select id="MessageSendFormType">';
197         tplMessageSendForm += '<option value="1">Info</option>';
198         tplMessageSendForm += '<option value="0">YesNo</option>';
199         tplMessageSendForm += '<option value="2">Warning</option>';
200         tplMessageSendForm += '<option value="3">Error</option>';
201         tplMessageSendForm += '</select></td></tr>\n';
202         tplMessageSendForm += '<tr><td colspan="2"><button onclick="sendMessage()">send Message</button></td></tr>\n';
203         tplMessageSendForm += "</table></form>\n";
204
205 var tplPowerStateSendForm = '';
206     tplPowerStateSendForm += '<hr>';
207     tplPowerStateSendForm += '<p><center><button onclick="sendPowerState(1)">deepstandby Dreambox</button></center></p>';
208     tplPowerStateSendForm += '<p><center><button onclick="sendPowerState(2)">reboot Dreambox</button></center></p>';
209     tplPowerStateSendForm += '<hr>';
210     tplPowerStateSendForm += '<p><center><button onclick="sendPowerState(3)">restart Enigma2</button></center></p>';
211 //Something is not working here, so I will do a quickhack
212 //    tplPowerStateSendForm += '<p><center><button onclick="sendPowerState(4)">standby Enigma2</button></center></p>';
213         tplPowerStateSendForm += '<p><center><button onclick="sendRemoteControlRequest(116)">toggle standby Enigma2</button></center></p>';
214
215 // Template for the RemoteControl Window
216 var tplRemoteControlForm = '<center><input type="checkbox" id="getScreen" name="getScreen" checked>&nbsp;get Screen</center><br>';
217         tplRemoteControlForm += '<map name="remotecontrol">';
218         tplRemoteControlForm += '<area shape="circle" coords="129, 54, 10" nohref onclick="sendRemoteControlRequest(116)" alt="Power">';
219 //      tplRemoteControlForm += '<area shape="circle" coords="72, 95, 15" nohref alt="Dream message">';
220         tplRemoteControlForm += '<area shape="circle" coords="130, 95, 15" nohref onclick="openGrabPicture()" alt="TV Screenshot">';
221         tplRemoteControlForm += '<area shape="circle" coords="63, 123, 10" nohref onclick="sendRemoteControlRequest(2)" alt="1">';
222         tplRemoteControlForm += '<area shape="circle" coords="109, 123, 10" nohref onclick="sendRemoteControlRequest(3)" alt="2">';
223         tplRemoteControlForm += '<area shape="circle" coords="153, 123, 10" nohref onclick="sendRemoteControlRequest(4)" alt="3">';
224         tplRemoteControlForm += '<area shape="circle" coords="63, 148, 10" nohref onclick="sendRemoteControlRequest(5)" alt="4">';
225         tplRemoteControlForm += '<area shape="circle" coords="109, 148, 10" nohref onclick="sendRemoteControlRequest(6)" alt="5">';
226         tplRemoteControlForm += '<area shape="circle" coords="153, 148, 10" nohref onclick="sendRemoteControlRequest(7)" alt="6">';
227         tplRemoteControlForm += '<area shape="circle" coords="63, 173, 10" nohref onclick="sendRemoteControlRequest(8)" alt="7">';
228         tplRemoteControlForm += '<area shape="circle" coords="109, 173, 10" nohref onclick="sendRemoteControlRequest(9)" alt="8">';
229         tplRemoteControlForm += '<area shape="circle" coords="153, 173, 10" nohref onclick="sendRemoteControlRequest(10)" alt="9">';
230         tplRemoteControlForm += '<area shape="circle" coords="63, 197, 10" nohref onclick="sendRemoteControlRequest(412)" alt="previous">';
231         tplRemoteControlForm += '<area shape="circle" coords="109, 197, 10" nohref onclick="sendRemoteControlRequest(11)" alt="0">';
232         tplRemoteControlForm += '<area shape="circle" coords="153, 197, 10" nohref onclick="sendRemoteControlRequest(407)" alt="next">';
233         tplRemoteControlForm += '<area shape="circle" coords="54, 243, 15" nohref onclick="sendRemoteControlRequest(115)" alt="volume up">';
234         tplRemoteControlForm += '<area shape="circle" coords="107, 233, 10" nohref onclick="sendRemoteControlRequest(113)" alt="mute">';
235         tplRemoteControlForm += '<area shape="circle" coords="159, 243, 15" nohref onclick="sendRemoteControlRequest(402)" alt="bouquet up">';
236         tplRemoteControlForm += '<area shape="circle" coords="66, 274, 15" nohref onclick="sendRemoteControlRequest(114)" alt="volume down">';
237         tplRemoteControlForm += '<area shape="circle" coords="107, 258, 10" nohref onclick="sendRemoteControlRequest(174)" alt="lame">';
238         tplRemoteControlForm += '<area shape="circle" coords="147, 274, 15" nohref onclick="sendRemoteControlRequest(403)" alt="bouquet down">';
239         tplRemoteControlForm += '<area shape="circle" coords="48, 306, 10" nohref onclick="sendRemoteControlRequest(358)" alt="info">';
240         tplRemoteControlForm += '<area shape="circle" coords="106, 310, 15" nohref onclick="sendRemoteControlRequest(103)" alt="up">';
241         tplRemoteControlForm += '<area shape="circle" coords="167, 306, 10" nohref onclick="sendRemoteControlRequest(139)" alt="menu">';
242         tplRemoteControlForm += '<area shape="circle" coords="70, 343, 15" nohref onclick="sendRemoteControlRequest(105)" alt="left">';
243     tplRemoteControlForm += '<area shape="circle" coords="108, 340, 15" nohref onclick="sendRemoteControlRequest(352)" alt="OK">';
244         tplRemoteControlForm += '<area shape="circle" coords="146, 343, 15" nohref onclick="sendRemoteControlRequest(106)" alt="right">';
245         tplRemoteControlForm += '<area shape="circle" coords="53, 381, 10" nohref onclick="sendRemoteControlRequest(392)" alt="audio">';
246         tplRemoteControlForm += '<area shape="circle" coords="106, 374, 15" nohref onclick="sendRemoteControlRequest(108)" alt="down">';
247         tplRemoteControlForm += '<area shape="circle" coords="162, 381, 10" nohref onclick="sendRemoteControlRequest(393)" alt="video">';
248         tplRemoteControlForm += '<area shape="circle" coords="56, 421, 10" nohref onclick="sendRemoteControlRequest(398)" alt="red">';
249         tplRemoteControlForm += '<area shape="circle" coords="90, 422, 10" nohref onclick="sendRemoteControlRequest(399)" alt="green">';
250         tplRemoteControlForm += '<area shape="circle" coords="123, 422, 10" nohref onclick="sendRemoteControlRequest(400)" alt="yellow">';
251         tplRemoteControlForm += '<area shape="circle" coords="158, 421, 10" nohref onclick="sendRemoteControlRequest(401)" alt="blue">';
252         tplRemoteControlForm += '<area shape="circle" coords="61, 460, 10" nohref onclick="sendRemoteControlRequest(377)" alt="tv">';
253         tplRemoteControlForm += '<area shape="circle" coords="90, 461, 10" nohref onclick="sendRemoteControlRequest(385)" alt="radio">';
254         tplRemoteControlForm += '<area shape="circle" coords="123, 461, 10" nohref onclick="sendRemoteControlRequest(388)" alt="text">';
255         tplRemoteControlForm += '<area shape="circle" coords="153, 460, 10" nohref onclick="sendRemoteControlRequest(138)" alt="help">';
256     tplRemoteControlForm += '</map>';
257         tplRemoteControlForm += '<img src="/webdata/gfx/remotecontrol.jpg" height="607" width="220" border="0)" alt="Remote Control" usemap="#remotecontrol">';
258         
259 var tplAddTimerForm = '';
260         tplAddTimerForm += '<table border=0 cellpadding=0 cellspacing=10>';
261         tplAddTimerForm += '<tr><td colspan="3">Action:</td>';
262         tplAddTimerForm += '<td colspan="3">';
263         tplAddTimerForm += '<select name="justplay" id="justplay" size="1">';
264         tplAddTimerForm += '%(justplay)';
265         tplAddTimerForm += '</select></td></tr>';
266         tplAddTimerForm += '<tr><td colspan="3">&nbsp;</td>';
267         tplAddTimerForm += '<td colspan="3">Note: For recurring events start/end day/month are not required.</td></tr>';
268         tplAddTimerForm += '<tr><td colspan="3">Start:</td>';
269         tplAddTimerForm += '<td colspan="3"><select name="syear" size="1" id="syear" onchange="javascript:addTimerFormChangeTime(\'syear\');">%(syear)</select>.';
270         tplAddTimerForm += '<select name="smonth" id="smonth" size="1" onchange="javascript:addTimerFormChangeTime(\'smonth\');">%(smonth)</select>.';
271         tplAddTimerForm += '<select name="sday" id="sday" size="1" onchange="javascript:addTimerFormChangeTime(\'sday\');">%(sday)</select>';
272         tplAddTimerForm += '&nbsp;-&nbsp;<select name="shour" id="shour" size="1" onchange="javascript:addTimerFormChangeTime(\'shour\');">%(shour)</select>';
273         tplAddTimerForm += ':<select name="smin" id="smin" size="1" onchange="javascript:addTimerFormChangeTime(\'smin\');">%(smin)</select></td></tr>';
274         tplAddTimerForm += '<tr><td colspan="3">End:</td>';
275         tplAddTimerForm += '<td colspan="3"><select name="eyear" id="eyear" size="1" onchange="javascript:addTimerFormChangeTime(\'eyear\');">%(eyear)</select>.';
276         tplAddTimerForm += '<select name="emonth" id="emonth" size="1" onchange="javascript:addTimerFormChangeTime(\'emonth\');">%(emonth)</select>.';
277         tplAddTimerForm += '<select name="eday" id="eday" size="1" onchange="javascript:addTimerFormChangeTime(\'eday\');">%(eday)</select>';
278         tplAddTimerForm += '&nbsp;-&nbsp;<select name="ehour" id="ehour" size="1" onchange="javascript:addTimerFormChangeTime(\'ehour\');">%(ehour)</select>';
279         tplAddTimerForm += ':<select name="emin" id="emin" size="1" onchange="javascript:addTimerFormChangeTime(\'emin\');">%(emin)</select></td></tr>';
280         tplAddTimerForm += '<tr><td colspan="3">&nbsp;</td><td colspan="3">Note: For one-time events the "days" field doesn\'t have to be specified.</td></tr>';
281         tplAddTimerForm += '<tr><td colspan="3">Days:</td><td colspan="3">%(repeated)';
282         tplAddTimerForm += '<tr><td colspan="3">Channel:</td><td>';
283         tplAddTimerForm += '<p><input type="radio" id="tvradio" name="tvradio" value="tv" checked onchange="javascript:addTimerFormChangeType();"">TV</p>';
284         tplAddTimerForm += '<p><input type="radio" name="tvradio" value="radio" onchange="javascript:addTimerFormChangeType();">Radio</p><td>';
285         tplAddTimerForm += '<p>Channel:</p>';
286         tplAddTimerForm += '<select name="channel" id="channel" size="1" onchange="timerFormExtendChannellist($(\'channel\').options[$(\'channel\').selectedIndex].value)">%(channel)</select></td></tr>';
287         tplAddTimerForm += '<tr><td colspan="3">Name:</td>';
288         tplAddTimerForm += '<td colspan="3"><input name="name" id="name" type="text" size="100" maxlength="100" style="color: #000000;" value="%(name)"></td></tr>';
289         tplAddTimerForm += '<tr><td colspan="3">Description:</td>';
290         tplAddTimerForm += '<td colspan="3"><input name="descr" id="descr" type="text" size="100" maxlength="100" style="color: #000000;" value="%(description)"></td></tr>';
291         tplAddTimerForm += '<tr><td colspan="3">After event do:</td>';
292         tplAddTimerForm += '<td colspan="3"><select id="after_event" name="after_event" size="1">%(afterEvent)</select></td></tr>';
293         tplAddTimerForm += '<tr>&nbsp;&nbsp;</tr>';
294         tplAddTimerForm += '<tr><td colspan="3">&nbsp;</td><td colspan="3">';
295         tplAddTimerForm += '<input name="deleteOldOnSave" id="deleteOldOnSave" type="hidden" value="%(deleteOldOnSave)">';
296         tplAddTimerForm += '<input name="channelOld" id="channelOld" type="hidden" value="%(channelOld)">';
297         tplAddTimerForm += '<input name="beginOld" id="beginOld" type="hidden" value="%(beginOld)">';
298         tplAddTimerForm += '<input name="endOld" id="endOld" type="hidden" value="%(endOld)">';
299         tplAddTimerForm += '<input name="eventID" id="eventID" type="hidden" value="%(eventID)">';
300         tplAddTimerForm +=      '<button onclick="sendAddTimer()">Add/Save</button></td></tr></table>';
301
302 var tplAddTimerFormOptions = '';
303         tplAddTimerFormOptions += '<option value="%(value)" %(selected)>%(txt)</option>';
304         
305 var tplAddTimerFormCheckbox = '';
306         tplAddTimerFormCheckbox += '<input type="checkbox" id="%(id)" name="%(name)" value="%(value)" %(checked)>&nbsp;%(txt)&nbsp;&nbsp;';
307
308 var tplAbout  = '<table class="aboutSection">\n';
309         tplAbout += '<tr>\n';
310         tplAbout += '<th colspan="2" class="pageHeader">About</th>\n';
311         tplAbout += '</tr>\n';
312         tplAbout += '<tr>\n'; 
313         tplAbout += '<td class="aboutSectionLeft">\n';
314         tplAbout += '<table class="fullwidth">\n';
315         tplAbout += '<tr>\n';
316         tplAbout += '<td class="fullwidth">\n';
317         tplAbout += '<table cellspacing="0" class="about">\n';
318         tplAbout += '<tr>\n';
319         tplAbout += '<th colspan="2" class="aboutHeader">Software</th>\n';
320         tplAbout += '</tr>\n';
321         tplAbout += '<tr>\n';
322         tplAbout += '<td class="aboutElementLeft">Enigma Version:</td>\n';
323         tplAbout += '<td class="aboutElementRight">%(enigmaVersion)</td>\n';
324         tplAbout += '</tr>\n';
325         tplAbout += '<tr>\n';
326         tplAbout += '<td class="aboutElementLeft">Frontprozessor Version:</td>\n';
327         tplAbout += '<td class="aboutElementRight">%(fpVersion)</td>\n';
328         tplAbout += '</tr>\n';
329         tplAbout += '<tr>\n';
330         tplAbout += '<td class="aboutElementLeft">Webinterface Version:</td>\n';
331         tplAbout += '<td class="aboutElementRight">%(webifversion)</td>\n';
332         tplAbout += '</tr>\n';
333         tplAbout += '</table>\n';
334         tplAbout += '</td>\n';
335         tplAbout += '</tr>\n';
336         tplAbout += '<tr>\n';
337         tplAbout += '<td class="fullwidth">\n';
338         tplAbout += '<table cellspacing="0" class="about">\n';
339         tplAbout += '<tr>\n';
340         tplAbout += '<th colspan="2" class="aboutHeader">Detected Tuners</th>\n';
341         tplAbout += '</tr>\n';
342         tplAbout += '%(tunerInfo)';
343         tplAbout += '</table>\n';
344         tplAbout += '</td>\n';
345         tplAbout += '</tr>\n';
346         tplAbout += '<tr>\n';
347         tplAbout += '<td class="fullwidth">\n';
348         tplAbout += '<table cellspacing="0" class="about">\n';
349         tplAbout += '<tr>\n';
350         tplAbout += '<th colspan="2" class="aboutHeader">Harddisk</th>\n';
351         tplAbout += '</tr>\n';
352         tplAbout += '<tr>\n';
353         tplAbout += '<td class="aboutElementLeft">Model</td>\n';
354         tplAbout += '<td class="aboutElementRight">%(hddmodel)</td>\n';
355         tplAbout += '</tr>\n';
356         tplAbout += '<tr>\n';
357         tplAbout += '<td class="aboutElementLeft">Capacity</td>\n';
358         tplAbout += '<td class="aboutElementRight">%(hddcapacity)</td>\n';
359         tplAbout += '</tr>\n';
360         tplAbout += '<tr>\n';                                           
361         tplAbout += '<td class="aboutElementLeft">Free</td>\n';
362         tplAbout += '<td class="aboutElementRight">%(hddfree)</td>\n';
363         tplAbout += '</tr>\n';
364         tplAbout += '</table>\n';
365         tplAbout += '</td>\n';
366         tplAbout += '</tr>\n';
367         tplAbout += '</table>\n';
368         tplAbout += '</td>\n';
369         tplAbout += '<td class="aboutSectionRight">\n';
370         tplAbout += '<table class="fullwidth">\n';
371         tplAbout += '<tr>\n';
372         tplAbout += '<td class="fullwidth">\n';
373         tplAbout += '<table cellspacing="0" class="about">\n';
374         tplAbout += '<tr>\n';
375         tplAbout += '<th colspan="2" class="aboutHeader">Serviceinfo</th>\n';
376         tplAbout += '</tr>\n';
377         tplAbout += '<tr>\n';
378         tplAbout += '<td class="aboutElementLeft">Name:</td>\n';
379         tplAbout += '<td class="aboutElementRight">%(serviceName)</td>\n';
380         tplAbout += '</tr>\n';
381         tplAbout += '<tr>\n';   
382         tplAbout += '<td class="aboutElementLeft">Provider:</td>\n';
383         tplAbout += '<td class="aboutElementRight">%(serviceProvider)</td>\n';
384         tplAbout += '</tr>\n';
385         tplAbout += '<tr>\n';
386         tplAbout += '<td class="aboutElementLeft">Videoformat:</td>\n';
387         tplAbout += '<td class="aboutElementRight">%(serviceAspect)</td>\n';
388         tplAbout += '</tr>\n';
389         tplAbout += '<tr>\n';
390         tplAbout += '<td class="aboutElementLeft">Namespace:</td>\n';
391         tplAbout += '<td class="aboutElementRight">%(serviceNamespace)</td>\n';
392         tplAbout += '</tr>\n';
393         tplAbout += '</table>\n';
394         tplAbout += '</td>\n';
395         tplAbout += '</tr>\n';
396         tplAbout += '<tr>\n';
397         tplAbout += '<td class="fullwidth">\n';
398         tplAbout += '<table cellspacing="0" class="about">\n';
399         tplAbout += '<tr>\n';
400         tplAbout += '<th colspan="2" class="aboutHeader">PIDs</th>\n';
401         tplAbout += '</tr>\n';
402         tplAbout += '<tr>\n';
403         tplAbout += '<td class="aboutElementLeft">VideoPID:</td>\n';
404         tplAbout += '<td class="aboutElementRight">%(vPIDh) (%(vPID)d)</td>\n';
405         tplAbout += '</tr>\n';
406         tplAbout += '<tr>\n';
407         tplAbout += '<td class="aboutElementLeft">AudioPID:</td>\n';
408         tplAbout += '<td class="aboutElementRight">%(aPIDh) (%(aPID)d)</td>\n';
409         tplAbout += '</tr>\n';
410         tplAbout += '<tr>\n';
411         tplAbout += '<td class="aboutElementLeft">PCRID:</td>\n';
412         tplAbout += '<td class="aboutElementRight">%(pcrIDh) (%(pcrID)d)</td>\n';
413         tplAbout += '</tr>\n';
414         tplAbout += '<tr>\n';
415         tplAbout += '<td class="aboutElementLeft">PMTPID:</td>\n';
416         tplAbout += '<td class="aboutElementRight">%(pmtPIDh) (%(pmtPID)d)</td>\n';
417         tplAbout += '</tr>\n';
418         tplAbout += '<tr>\n';
419         tplAbout += '<td class="aboutElementLeft">TXTPID:</td>\n';
420         tplAbout += '<td class="aboutElementRight">%(txtPIDh) (%(txtPID)d)</td>\n';
421         tplAbout += '</tr>\n';
422         tplAbout += '<tr>\n';
423         tplAbout += '<td class="aboutElementLeft">TSID:</td>\n';
424         tplAbout += '<td class="aboutElementRight">%(tsIDh) (%(tsID)d)</td>\n';
425         tplAbout += '</tr>\n';  
426         tplAbout += '<tr>\n';
427         tplAbout += '<td class="aboutElementLeft">ONID:</td>\n';
428         tplAbout += '<td class="aboutElementRight">%(onIDh) (%(onID)d)</td>\n';
429         tplAbout += '</tr>\n';  
430         tplAbout += '<tr>\n';
431         tplAbout += '<td class="aboutElementLeft">SID:</td>\n';
432         tplAbout += '<td class="aboutElementRight">%(sidh) (%(sid)d)</td>\n';
433         tplAbout += '</tr>\n';                                                                  
434         tplAbout += '</table>\n';
435         tplAbout += '</td>\n';
436         tplAbout += '</tr>\n';
437         tplAbout += '</table>\n';
438         tplAbout += '</td>\n';
439         tplAbout += '</tr>\n';
440         tplAbout += '</table>\n';
441
442 var tplAboutTuner  = '<tr>\n';
443         tplAboutTuner += '<td class="aboutElementLeft">%(name)</td>\n';
444         tplAboutTuner += '<td class="aboutElementRight">%(type)</td>\n';
445         tplAboutTuner += '</tr>\n';
446         
447
448 var tplExtraHiddenFunctions  = '<ul style="list-style-type:disc">';
449         tplExtraHiddenFunctions += '<li><div onclick="restartTwisted()">Restart Twisted</div></li>';
450         tplExtraHiddenFunctions += '<li><div onclick="clearInterval(UpdateStreamReaderPollTimer);">Stop Time/Signal/Current-Channel -Updates</div></li>';
451         tplExtraHiddenFunctions += '<li><div onclick="restartUpdateStream();">Restart Time/Signal/Current-Channel -Updates</div></li>';
452         tplExtraHiddenFunctions += '<li><div onclick="startDebugWindow();">Start Debug-Window</div></li>';
453         tplExtraHiddenFunctions += '</ul>'
454         
455 var tplRCGrab  = '<IMG id="grabPageIMG" src=""/ height="400" alt="loading image">';
456
457 var tplMediaPlayerHeader  = '<table border="0" cellpadding="0" cellspacing="0" class="BodyContentChannellist">\n';
458         tplMediaPlayerHeader += '<thead class="fixedHeader">\n';
459         tplMediaPlayerHeader += '<tr>\n';
460         tplMediaPlayerHeader += '<th><div class="sListHeader" style="color: #000000;">MediaPlayer</div>\n';
461         tplMediaPlayerHeader += '<div class="sListSearch">';
462         tplMediaPlayerHeader += '<form onSubmit="loadMovieList(document.getElementById(\'filterMovietag\').value); return false;">';
463         tplMediaPlayerHeader += '<input type="text" id="filterMovietag" onfocus="this.value=\'\'" value="filter by Tag"/>';
464         tplMediaPlayerHeader += '<input style="vertical-align:middle" type="image" src="/webdata/gfx/search.png" alt="search...">';
465         tplMediaPlayerHeader += '</form></div></th>';
466         tplMediaPlayerHeader += '</tr>\n';
467         tplMediaPlayerHeader += '</thead>\n';
468         tplMediaPlayerHeader += '<tbody class="scrollContent">\n';
469
470 var tplMediaPlayerItemHead = '<tr>\n';
471 var tplMediaPlayerItemBody = '<td><div style="color: #%(color);" onclick="%(exec)(\'%(servicereference)\',\'%(root)\');" class="sListSName" title="%(servicereference)">%(fullpath)</div>';
472 var     tplMediaPlayerItemIMG  = '<div class="sListExt">\n';
473         tplMediaPlayerItemIMG += '<img src="/webdata/gfx/screen.png" onclick="%(exec)(\'%(servicereference)\',\'%(root)\');" title="%(exec_description)" border="0">\n';
474         tplMediaPlayerItemIMG += '<a target="_blank" href="/movie/?file=%(filename)"><img src="/webdata/gfx/save.png" title="download File" border="0"></a>\n';
475         tplMediaPlayerItemIMG += '</div>\n';
476 var tplMediaPlayerItemFooter = '</tr>\n';
477
478 var tplMediaPlayerFooter = "</tbody></table>\n";