a littel better in IE but not actually "good"....
[enigma2-plugins.git] / webinterface / src / web-data / tpl / default / index.html
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
3        "http://www.w3.org/TR/html4/loose.dtd">
4 <html>
5
6 <head>
7         <meta content="text/html; charset=UTF-8" http-equiv="content-type">
8         <title>Dreambox WebControl</title>
9         
10         <link href="/web-data/tpl/default/style.css" type="text/css" rel="stylesheet">
11         <link rel="shortcut icon" type="/web-data/image/x-icon" href="/web-data/img/favicon.ico">
12         
13         <!-- External libs
14         <script type="text/javascript" src="/web-data/lib/prototype-1.6.1_rc3.js"></script>
15         <script type="text/javascript" src="/web-data/lib/scriptaculous.js?load=effects"></script>
16         <script type="text/javascript" src="/web-data/lib/shadedborder.js"></script>
17         <script type="text/javascript" src="/web-data/lib/trimpath-template-1.0.38.js"></script>
18          -->
19         <script type="text/javascript" src="/web-data/lib/libs_minified.js"></script>
20         
21         <!-- userprefs Object -->
22         <script type="text/javascript" src="/web-data/userprefs.js"></script>
23                 
24         <!-- our stuff //-->
25         <script type="text/javascript" src="/web-data/objects.js" ></script>
26         <script type="text/javascript" src="/web-data/statics.js" ></script>
27         <script type="text/javascript" src="/web-data/tools.js" ></script>
28         <script type="text/javascript" src="/web-data/timer.js" ></script>
29
30         <!-- Gears-->
31         <script type="text/javascript" src="/web-data/lib/gears_init.js"></script>
32         <script type="text/javascript" src="/web-data/gears_handler.js" ></script>
33
34         <!-- Live RSS Feeds //-->
35         <link rel="alternate" type="application/rss+xml" title="Movie List" href="/web/movielist.rss?tag" >
36
37
38         <script language="javascript" type="text/javascript">
39                 
40                 if (!window.$) {
41                         window.$ = function(id) { return document.getElementById(id); }
42                 }
43                 
44                 function getWinSize(win) 
45                 { 
46                         if(!win) win = window; 
47                         var s = {}; 
48                         if(typeof win.innerWidth != 'undefined') 
49                         { 
50                                 s.width = win.innerWidth; 
51                                 s.height = win.innerHeight; 
52                         } 
53                         else 
54                         { 
55                                  var obj = getBody(win); 
56                                  s.width = parseInt(obj.clientWidth); 
57                                  s.height = parseInt(obj.clientHeight); 
58                         } 
59                         return s; 
60                 } 
61
62                 function getBody(w) 
63                 { 
64                         return (w.document.compatMode && w.document.compatMode == "CSS1Compat") ? w.document.documentElement : w.document.body || null; 
65                 } 
66                 
67                 function setMaxHeight(element){
68                         try{                    
69                                 var slc = $(element);
70                                 size = getWinSize();
71                                 slc.style.maxHeight = size.height - 200+"px";
72                         } catch (e) {}
73                 }
74
75         </script>
76 </head>
77 <body onresize="setMaxHeight('contentMain')" onload="document.getElementById('notification').style.display='none'">
78         
79         <div id="container">
80                 <div id="banner">
81                         <span id="notification"><div></div></span>
82                         <div id="bannerLeft">
83                                 <div id="bannerText" style="font-size: 24px;">
84                                         <img src="/web-data/img/dreamboxweb.png" alt="Dreambox Web">
85                                 </div>
86                                 <ul id="mainMenu">
87                                         <li><a href="#" onClick="switchMode('TV')">TeleVision</a></li>
88                                         <li><a href="#" onClick="switchMode('Radio')">Radio</a></li>
89                                         <li><a href="#" onClick="switchMode('Movies')">Movies</a></li>
90                                         <li><a href="#" onClick="switchMode('Timer')">Timer</a></li>
91                                         <!-- <li><a href="#" onClick="switchMode('MediaPlayer')">MediaPlayer</a></li>  -->
92                                         <li><a href="#" onClick="switchMode('BoxControl')">BoxControl</a></li>
93                                         <li><a href="#" onClick="switchMode('Extras')">Extras</a></li>
94                                         <li>
95                                                 <a href="#" onClick="openWebTV();">
96                                                         WebTV
97                                                 </a></li>
98                                 </ul>
99                         </div>
100                         <div id="bannerRight">
101                                 <div>                                   
102                                         <a id="openSignalPanel" href="#" >
103                                                 <img id="openSignalPanelImg" border="0" src="/web-data/img/signal.png" alt="Signal" title="Show Signal Panel">
104                                         </a><br>
105                                         <a id="doInstantRecord" href="#" onClick="recordNowPopup()">
106                                                 <img  id="doInstantRecordImg" border="0" src="/web-data/img/record.png" alt="R" title="Instant Record">
107                                         </a>
108                                 </div>                  
109                         </div>
110                 </div>
111                 <div id="current">
112                         <div id="currentContent">
113                                 <table id="currentTable">
114                                         <tr>
115                                                 <td id="currentName">N/A</td>
116                                         </tr>   
117                                 </table>
118                         </div>
119                 </div>
120                 <div id="main">
121                         <div id="navContainer">
122                                 <div id="nav">
123                                         <div id="navHd" class="header"><div>SubNav</div></div>
124                                         <div id="navContent">loading...</div>
125                                 </div>
126                                 <div id="navVolume">
127                                         <div id="volHd" class="header"><div>Volume</div></div>
128                                         <span class="boxContent center" style="width: 94%; display:block;">
129                                                 <!-- Volume "Slider" -->
130                                                 <a href="#" onClick="volumeSet(10)">
131                                                         <img id='volume1' src='/web-data/img/led_off.png' title="Volume to 10%" alt="10%">
132                                                 </a>
133                                                 <a href="#" onClick="volumeSet(20)">
134                                                         <img id='volume2' src='/web-data/img/led_off.png' title="Volume to 20%" alt="20%">
135                                                 </a>
136                                                 <a href="#" onClick="volumeSet(30)">
137                                                         <img id='volume3' src='/web-data/img/led_off.png' title="Volume to 30%" alt="30%">
138                                                 </a>
139                                                 <a href="#" onClick="volumeSet(40)">
140                                                         <img id='volume4' src='/web-data/img/led_off.png' title="Volume to 40%" alt="40%">
141                                                 </a>
142                                                 <a href="#" onClick="volumeSet(50)">
143                                                         <img id='volume5' src='/web-data/img/led_off.png' title="Volume to 50%" alt="50%">
144                                                 </a>
145                                                 <a href="#" onClick="volumeSet(60)">
146                                                         <img id='volume6' src='/web-data/img/led_off.png' title="Volume to 60%" alt="60%">
147                                                 </a>
148                                                 <a href="#" onClick="volumeSet(70)">
149                                                         <img id='volume7' src='/web-data/img/led_off.png' title="Volume to 70%" alt="70%">
150                                                 </a>
151                                                 <a href="#" onClick="volumeSet(80)">
152                                                         <img id='volume8' src='/web-data/img/led_off.png' title="Volume to 80%" alt="80%">
153                                                 </a>
154                                                 <a href="#" onClick="volumeSet(90)">
155                                                         <img id='volume9' src='/web-data/img/led_off.png' title="Volume to 90%" alt="90%">
156                                                 </a>
157                                                 <a href="#" onClick="volumeSet(100)">
158                                                         <img id='volume10' src='/web-data/img/led_off.png' title="Volume to 100%" alt="100%">
159                                                 </a>
160                                                 <br>
161                                                 <!-- Volume Control -->
162                                                 <a href="#" onClick="volumeUp()">
163                                                         <img src='/web-data/img/arrow_up.png'  title="Volume Up" alt="Up">
164                                                 </a>
165                                                 <a href="#" onClick="volumeDown()">
166                                                         <img src='/web-data/img/arrow_down.png'  title="Volume Down" alt="Down">
167                                                 </a>
168                                                 <a href="#" onClick="volumeMute()">
169                                                         <img id='speaker' src='/web-data/img/speak_on.png'  title="Mute" alt="Mute">
170                                                 </a>                                            
171                                         </span>
172                                 </div>
173                                 <div id="navSearch">
174                                         <div id="searchHd" class="header"><div>EPG-Search</div></div>
175                                         <div class="boxContent">
176                                                 <form action="" onSubmit="loadEPGBySearchString(document.getElementById('epgSearch').value); return false;">
177                                                         <input type="text" id="epgSearch" onfocus="this.value=''" value="Search EPG"/>
178                                                         <input style="vertical-align:middle" type="image" src="/web-data/img/search.png" alt="search..." title="Search EPG for term">
179                                                 </form>                                         
180                                         </div>
181                                 </div>
182                         </div>
183                         <div id="content">
184                                 <div id="contentHd" class="header"><div>Content</div></div>
185                                 <div id="contentMain">loading...</div>
186                         </div>  
187                 </div>
188         </div>
189         <script language="javascript" type="text/javascript">                   
190                 /****************
191                 Rounded Corners 
192                 *****************/
193                 var menuBorder = RUZEE.ShadedBorder.create({ corner:5, border: 1 });
194
195                 var buttons = $('mainMenu').getElementsByTagName("li");
196
197                 for (var i=0; i < buttons.length; ++i) {                        
198                         menuBorder.render(buttons[i]);
199                 }
200
201                 var bannerBorder = RUZEE.ShadedBorder.create({corner:5, shadow:10});
202                 bannerBorder.render('banner');
203                 bannerBorder.render('current');
204
205                 var contentBorder = RUZEE.ShadedBorder.create({corner:5, border: 2, shadow:10});
206                 contentBorder.render('nav');
207                 contentBorder.render('navSearch');
208                 contentBorder.render('navVolume');
209                 contentBorder.render('content');
210
211                 var hdBorder = RUZEE.ShadedBorder.create({corner:5, edges:"tlr"});
212                 hdBorder.render('navHd');
213                 hdBorder.render('searchHd');
214                 hdBorder.render('volHd');
215                 hdBorder.render('contentHd');
216                 
217                 function setNavHd(content){
218                         set("navHd", '<div style="background-color: #000">'+content+'</div>');
219                         hdBorder.render('navHd');
220                 }
221                 
222                 function setContentHd(content){
223                         set("contentHd", '<div style="background-color: #000">'+content+'</div>');
224                         hdBorder.render('contentHd');
225                 }
226                 
227                 function getAjaxLoad(){
228                         return ('<center><img style="padding-top: 50px;" src="/web-data/gfx/ajaxload.gif" alt="loading..."></center>');
229                 }
230                 
231                 setMaxHeight('contentMain');            
232                 
233                 init();
234         </script>
235
236 </body>
237 </html>