3 <title>Enigma Web Interface - #BOX#</title>
4 <link rel="stylesheet" type="text/css" href="webif.css">
5 <script language="javascript" type="text/javascript" src="/window.js"></script>
6 <script language="javascript" type="text/javascript" src="/dhtml.js"></script>
7 <script language="javascript" type="text/javascript" src="/index.js"></script>
9 function headerUpdateVolumeBar(volume, mute)
11 for (var i = 9; i <= 63; i += 6)
17 getElem("id", "imgVol" + i, null).src = "led_on.gif";
19 getElem("id", "imgVol" + i, null).src = "led_off.gif";
22 getElem("id", "mute", null).src = "speak_on.gif";
24 getElem("id", "mute", null).src = "speak_off.gif";
26 function headerUpdateRecording(recording)
29 getElem("id", "recording", null).src = "blinking_red.gif";
31 getElem("id", "recording", null).src = "trans.gif";
33 function headerUpdateChannelStatusBar(dolby, crypt, format)
36 getElem("id", "imgDolby", null).src = "dolby_on.png";
38 getElem("id", "imgDolby", null).src = "dolby_off.png";
40 getElem("id", "imgCrypt", null).src = "crypt_on.png";
42 getElem("id", "imgCrypt", null).src = "crypt_off.png";
44 getElem("id", "imgFormat", null).src = "format_on.png";
46 getElem("id", "imgFormat", null).src = "format_off.png";
48 function headerUpdateStatusBar(vpid, apid, ip, lock, upTime, agc, snr, ber)
50 getElem("id", "vpid", null).firstChild.nodeValue = vpid;
51 getElem("id", "apid", null).firstChild.nodeValue = apid;
52 getElem("id", "ip", null).firstChild.nodeValue = ip;
53 getElem("id", "lock", null).firstChild.nodeValue = lock;
54 getElem("id", "uptime", null).firstChild.nodeValue = upTime;
55 getElem("id", "agc", null).firstChild.nodeValue = "AGC: " + agc + "%";
56 getElem("id", "snr", null).firstChild.nodeValue = "SNR: " + snr + "%";
57 getElem("id", "ber", null).firstChild.nodeValue = "BER: " + ber;
59 function headerUpdateEPGData(serviceName, nowT, nowD, nowSt, nextT, nextD, nextSt)
61 getElem("id", "servicename", null).firstChild.nodeValue = serviceName;
62 getElem("id", "nowt", null).firstChild.nodeValue = nowT;
63 getElem("id", "nowd", null).firstChild.nodeValue = nowD;
65 nowSt = nowSt.substr(0, 40);
66 getElem("id", "nowst", null).firstChild.nodeValue = nowSt;
67 getElem("id", "nextt", null).firstChild.nodeValue = nextT;
68 getElem("id", "nextd", null).firstChild.nodeValue = nextD;
70 nextSt = nextSt.substr(0, 40);
71 getElem("id", "nextst", null).firstChild.nodeValue = nextSt;
73 function topnavi(command)
75 parent.body.location = "body" + command;
76 parent.leftnavi.location = "leftnavi" + command;
78 function setTitle(title)
80 getElem("id", "title", null).firstChild.nodeValue = title;
84 data.location.reload();
85 setTimeout("init()", 10000);
87 function updateVideoBar(videoPosition, videoTime, diskGB, diskH)
89 updateVideoBar2(videoPosition);
90 getElem("id", "videoTime", null).firstChild.nodeValue = videoTime;
91 getElem("id", "diskgb", null).firstChild.nodeValue = diskGB;
92 getElem("id", "diskh", null).firstChild.nodeValue = diskH;
94 function updateVideoBar2(videoPosition)
96 for (var i = 1; i <= 20; i += 1)
98 if (i <= videoPosition)
99 getElem("id", "vid" + i, null).src = "led_on.gif";
101 getElem("id", "vid" + i, null).src = "led_off.gif";
104 function determineBrowser()
106 var browser = navigator.appName;
107 if (navigator.appName == "Microsoft Internet Explorer")
110 if ((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Gecko") != -1))
114 function webxtv(browser)
116 NewWindow("/webxtv?browser=" + browser, "tv", "780", "735", "no", "0");
120 NewWindow("/teletext", "teletext", "480", "560", "no", "0");
124 <body id="index_big" style="margin: 0px; border: 0px; padding: 0px" background="bg.png" onLoad="init()">
125 <table width="780px" height="100%" align="center" border="0" cellspacing="0" cellpadding="0">
129 <!-- begin header -->
130 <table id="headTable" style="table-layout: fixed" width="780px" height="112px" border="0" cellpadding="0" cellspacing="0" background="#TOPBALK#">
132 <td width="150px"> </td>
134 <table id="headercell" style="table-layout: fixed" width="620px" border="0" cellpadding="0" cellspacing="0">
137 <table style="table-layout: fixed" width="620px" border="0" height="60px" cellpadding="0" cellspacing="0">
139 <td id="servicename" width="440px" class="servicename" align="left"> </td>
140 <td width="180px" id="empty" align=right>#EMPTYCELL#</td>
144 <table style="table-layout:fixed" border="0" cellspacing="0" cellpadding="0">
146 <td id="nowt" class="epgzeit_bold" width="50px" align=left> </td>
147 <td id="nowd" class="epgdur" width="40px" align=left> </td>
148 <td id="nowst" class="epgname_bold" width="350px" height="20px" align=left> </td>
153 <td width="180px" align=right>
154 <table border="0" cellspacing="0" cellpadding="0">
156 <td><a href="javascript:setVol(9)"><img id="imgVol9" src="led_on.gif" border="0" width="15" height="8"></a></td>
157 <td><a href="javascript:setVol(15)"><img id="imgVol15" src="led_on.gif" border="0" width="15" height="8"></a></td>
158 <td><a href="javascript:setVol(21)"><img id="imgVol21" src="led_on.gif" border="0" width="15" height="8"></a></td>
159 <td><a href="javascript:setVol(27)"><img id="imgVol27" src="led_on.gif" border="0" width="15" height="8"></a></td>
160 <td><a href="javascript:setVol(33)"><img id="imgVol33" src="led_on.gif" border="0" width="15" height="8"></a></td>
161 <td><a href="javascript:setVol(39)"><img id="imgVol39" src="led_on.gif" border="0" width="15" height="8"></a></td>
162 <td><a href="javascript:setVol(45)"><img id="imgVol45" src="led_on.gif" border="0" width="15" height="8"></a></td>
163 <td><a href="javascript:setVol(51)"><img id="imgVol51" src="led_on.gif" border="0" width="15" height="8"></a></td>
164 <td><a href="javascript:setVol(57)"><img id="imgVol57" src="led_on.gif" border="0" width="15" height="8"></a></td>
165 <td><a href="javascript:setVol(63)"><img id="imgVol63" src="led_on.gif" border="0" width="15" height="8"></a></td>
167 <td><a href="javascript:toggleMute()"><img id="mute" border="0" src="speak_on.gif"></a></td>
174 <table style="table-layout:fixed" border="0" cellspacing="0" cellpadding="0">
176 <td id="nextt" class="epgzeit_bold" width="50px" align=left> </td>
177 <td id="nextd" class="epgdur" width="40px" align=left> </td>
178 <td id="nextst" class="epgname_bold" width="350px" height="20px" align=left> </td>
183 <td width="180px" align="right">
184 <table border="0" cellpadding="0" cellspacing="0">
186 <td><img id="recording" width="12" border="0" src="trans.gif"></td>
187 <td><img height="0" width="5" border="0" src="trans.gif"></td>
188 <td><img id="imgCrypt" src="crypt_off.png" border="0"></td>
189 <td><img height="0" width="5" border="0" src="trans.gif"></td>
190 <td><img id="imgFormat" src="format_off.png" border="0"></td>
191 <td><img height="0" width="5" border="0" src="trans.gif"></td>
192 <td><img id="imgDolby" src="dolby_off.png" border="0"></td>
198 <table style="table-layout: fixed" width="620px" height="7px" border="0" cellspacing="0" cellpadding="0">
200 <td width="630px" height="7px"> </td>
203 <table id="statcell" border="0" cellpadding="0" cellspacing="0" height="20px">
205 <td id="snr"> </td>
206 <td> <img src="squ.png"> </td>
207 <td id="agc"> </td>
208 <td> <img src="squ.png"> </td>
209 <td id="ber"> </td>
210 <td> <img src="squ.png"> </td>
211 <td id="lock"> </td>
212 <td> <img src="squ.png"> </td>
213 <td id="uptime"> </td>
215 <td> <img src="squ.png"> </td>
216 <td id="ip"> </td>
217 <td> <img src="squ.png"> </td>
218 <td>vpid: <a id="vpid" href="javascript:vlc()"> </a></td>
219 <td> <img src="squ.png"> </td>
220 <td>apid: <a id="apid" href="audio.pls"> </a></td>
223 <table style="table-layout: fixed" width="620px" height="5px" border="0" cellspacing="0" cellpadding="0">
225 <td width="630px" height="5px"> </td>
239 <!-- channavi start -->
240 <table id="channavi" border="0" height="22px" width="780" cellspacing="0" cellpadding="0">
243 <td width="120" align="center">
245 var browser = determineBrowser();
246 if (browser == "MSIE")
247 document.writeln('<a href=javascript:webxtv("MSIE")>WEB-X-TV</a>');
249 if (browser == "Firefox")
250 document.writeln('<a href=javascript:webxtv("Firefox")>WEB-X-TV</a>');
252 document.writeln(' ');
255 <td align="left">#CHANNAVI#</td>
256 <td width=40 align="center"><a href="javascript:teletext()">TEXT</a></td>
260 <!-- channavi end -->
266 <!-- topnavi start -->
267 <table id="topnavi" border="0" width="100%" height="22px" cellspacing="0" cellpadding="0">
270 <td width="120"> </td>
271 <td align="left">#TOPNAVI#</td>
280 <table id="titletable" width="100%" height="26px" border="0" cellspacing="0" cellpadding="0" background="mepg_grad.png">
282 <td width="120px" align="center" background="mepg_grad.png"> </td>
283 <td id="title" align="left" valign="middle" background="mepg_grad.png"> </td>
289 <td><iframe name="leftnavi" width="110px" height="100%" src="leftnavi" scrolling="no" frameborder="0" marginwidth="0" marginheight="0"></iframe></td>
290 <td><iframe name="body" width="670px" height="100%" src="body" scrolling="auto" frameborder="0" marginwidth="0" marginheight="0" style="background-color: #F4F4F4F4"></iframe></td>
294 <iframe name="vlccmd" src="blank" height="0" frameborder="0" framemargin="0" framewidth="0"></iframe>
295 <iframe name="data" src="data" height="0" frameborder="0" framemargin="0" framewidth="0"></iframe>