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