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