add Link to WebTv to Standard Webinterface (which gives a bigger base of Betatesters)
[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                                         <li>
83                                                 <a href="#" onClick="openWebTV();">
84                                                         WebTV
85                                                 </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><br>
93                                         <a href="#" onClick="recordNowPopup()">
94                                                 <img border="0" src="/web-data/img/record.png" alt="R" title="Instant Record">
95                                         </a>
96                                 </div>                  
97                         </div>
98                 </div>
99                 <div id="current">
100                         <div id="currentContent">
101                                 <table id="currentTable">
102                                         <tr>
103                                                 <td id="currentName">N/A</td>
104                                         </tr>   
105                                 </table>
106                         </div>
107                 </div>
108                 <div id="main">
109                         <div id="navContainer">
110                                 <div id="nav">
111                                         <div id="navHd" class="header"><div>SubNav</div></div>
112                                         <div id="navContent">loading...</div>
113                                 </div>
114                                 <div id="navVolume">
115                                         <div id="volHd" class="header"><div>Volume</div></div>
116                                         <span class="boxContent center" style="width: 94%; display:block;">
117                                                 <!-- Volume "Slider" -->
118                                                 <a href="#" onClick="volumeSet(10)">
119                                                         <img id='volume1' src='/web-data/img/led_off.png' title="Volume to 10%" alt="10%">
120                                                 </a>
121                                                 <a href="#" onClick="volumeSet(20)">
122                                                         <img id='volume2' src='/web-data/img/led_off.png' title="Volume to 20%" alt="20%">
123                                                 </a>
124                                                 <a href="#" onClick="volumeSet(30)">
125                                                         <img id='volume3' src='/web-data/img/led_off.png' title="Volume to 30%" alt="30%">
126                                                 </a>
127                                                 <a href="#" onClick="volumeSet(40)">
128                                                         <img id='volume4' src='/web-data/img/led_off.png' title="Volume to 40%" alt="40%">
129                                                 </a>
130                                                 <a href="#" onClick="volumeSet(50)">
131                                                         <img id='volume5' src='/web-data/img/led_off.png' title="Volume to 50%" alt="50%">
132                                                 </a>
133                                                 <a href="#" onClick="volumeSet(60)">
134                                                         <img id='volume6' src='/web-data/img/led_off.png' title="Volume to 60%" alt="60%">
135                                                 </a>
136                                                 <a href="#" onClick="volumeSet(70)">
137                                                         <img id='volume7' src='/web-data/img/led_off.png' title="Volume to 70%" alt="70%">
138                                                 </a>
139                                                 <a href="#" onClick="volumeSet(80)">
140                                                         <img id='volume8' src='/web-data/img/led_off.png' title="Volume to 80%" alt="80%">
141                                                 </a>
142                                                 <a href="#" onClick="volumeSet(90)">
143                                                         <img id='volume9' src='/web-data/img/led_off.png' title="Volume to 90%" alt="90%">
144                                                 </a>
145                                                 <a href="#" onClick="volumeSet(100)">
146                                                         <img id='volume10' src='/web-data/img/led_off.png' title="Volume to 100%" alt="100%">
147                                                 </a>
148                                                 <br>
149                                                 <!-- Volume Control -->
150                                                 <a href="#" onClick="volumeUp()">
151                                                         <img src='/web-data/img/arrow_up.png'  title="Volume Up" alt="Up">
152                                                 </a>
153                                                 <a href="#" onClick="volumeDown()">
154                                                         <img src='/web-data/img/arrow_down.png'  title="Volume Down" alt="Down">
155                                                 </a>
156                                                 <a href="#" onClick="volumeMute()">
157                                                         <img id='speaker' src='/web-data/img/speak_on.png'  title="Mute" alt="Mute">
158                                                 </a>                                            
159                                         </span>
160                                 </div>
161                                 <div id="navSearch">
162                                         <div id="searchHd" class="header"><div>EPG-Search</div></div>
163                                         <div class="boxContent">
164                                                 <form action="" onSubmit="loadEPGBySearchString(document.getElementById('epgSearch').value); return false;">
165                                                         <input type="text" id="epgSearch" onfocus="this.value=''" value="Search EPG"/>
166                                                         <input style="vertical-align:middle" type="image" src="/web-data/img/search.png" alt="search..." title="Search EPG for term">
167                                                 </form>                                         
168                                         </div>
169                                 </div>
170                         </div>
171                         <div id="content">
172                                 <div id="contentHd" class="header"><div>Content</div></div>
173                                 <div id="contentMain">loading...</div>
174                         </div>  
175                 </div>
176         </div>
177         <script language="javascript" type="text/javascript">                   
178                 /****************
179                 Rounded Corners 
180                 *****************/
181                 var menuBorder = RUZEE.ShadedBorder.create({ corner:5, border: 1 });
182
183                 var buttons = $('mainMenu').getElementsByTagName("li");
184
185                 for (var i=0; i < buttons.length; ++i) {                        
186                         menuBorder.render(buttons[i]);
187                 }
188
189                 var bannerBorder = RUZEE.ShadedBorder.create({corner:5, shadow:10});
190                 bannerBorder.render('banner');
191                 bannerBorder.render('current');
192
193                 var contentBorder = RUZEE.ShadedBorder.create({corner:5, border: 2, shadow:10});
194                 contentBorder.render('nav');
195                 contentBorder.render('navSearch');
196                 contentBorder.render('navVolume');
197                 contentBorder.render('content');
198
199                 var hdBorder = RUZEE.ShadedBorder.create({corner:5, edges:"tlr"});
200                 hdBorder.render('navHd');
201                 hdBorder.render('searchHd');
202                 hdBorder.render('volHd');
203                 hdBorder.render('contentHd');
204                 
205                 function setNavHd(content){
206                         set("navHd", "<div>"+content+"</div>");
207                         hdBorder.render('navHd');
208                 }
209                 
210                 function setContentHd(content){
211                         set("contentHd", "<div>"+content+"</div>");
212                         hdBorder.render('contentHd');
213                 }
214                 
215                 function getAjaxLoad(){
216                         return ('<center><img style="padding-top: 50px;" src="/web-data/gfx/ajaxload.gif" alt="loading..."></center>');
217                 }
218                 
219                 setMaxHeight('contentMain');            
220                 
221                 init();
222         </script>
223
224 </body>
225 </html>