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