change Volume Output to xml
[enigma2-plugins.git] / webinterface / src / web / index.html.xml
1 <e2:screen name="TestScreen">&lt;html>
2 <head>
3         <meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
4         <title>Enigma 2 realtime OSD example </title>
5         <!--load everything for prototype and prototype window -->
6
7         <script type="text/javascript" src="/webdata/lib/prototype.js" />
8         <script type="text/javascript" src="/webdata/lib/ptwindow/effects.js" />
9         <script type="text/javascript" src="/webdata/lib/ptwindow/window.js" />
10         <!--script type="text/javascript" src="/webdata/lib/ptwindow/debug.js" /-->
11
12         <link href="/webdata/lib/ptwindow/themes/default.css" rel="stylesheet" type="text/css" />
13         <link href="/webdata/lib/ptwindow/themes/alphacube.css" rel="stylesheet" type="text/css" />
14         
15         <!-- our stuff -->
16         <script type="text/javascript" src="/webdata/tools.js" />
17         
18         <link href="/webdata/style.css" type="text/css" rel="stylesheet" />
19 </head>
20
21 <body>
22 <div id="BodyContentDebugbox"></div>
23 <div id="Main">
24         
25         <!--div id="Banner">Enigma2 Webinterface</div>
26         <div class="spacer10"></div-->
27         <div id="Nav">  
28                         <div id="NavHd">NAVIGATION</div>
29                         
30                         <table cellpadding="0" cellspacing="0" id="navTable">
31                                 <tr>
32                                         <td class="NavEl"><a class="NavEl" href="#">Nav1</a></td>
33                                 </tr>
34                                 <tr>
35                                         <td class="NavEl"><a class="NavEl" href="#">Nav2</a></td>
36                                 </tr>
37                         </table>
38         </div>
39         <div id="Content">
40                 <div id="EventNowNext" class="bgMain">
41             
42                     <div class="divblock">
43                                 <div id="CurrentService"></div>
44                                 <div id="VolumePanel"></div>
45                                 <div id="CurrentTime"></div>
46                     </div>
47                     
48                     <div class="divblock">
49                       <div style="width:5%; float:left;" onclick="showhide('Event_Now_Extended_Description')" class="event" id="Event_Now_Begin"></div>
50                       <div style="width:65%; float:left;" onclick="showhide('Event_Now_Extended_Description')" class="event" id="Event_Now_Name"></div>
51                       <div style="width:30%; float:left;" onclick="showhide('Event_Now_Extended_Description')" class="eventRA" id="Event_Now_Remaining"></div>
52                     </div>
53                     
54                     <div class="divblock">
55                       <div class="eventExtDesc" id="Event_Now_Extended_Description"></div>
56                     </div>
57                     
58                     <div class="divblock" onclick="showhide('Event_Next_Extended_Description');">
59                       <div style="width:5%; float:left;" class="event" id="Event_Next_Begin"></div>
60                       <div style="width:65%; float:left;" class="event" id="Event_Next_Name"></div>
61                       <div style="width:30%; float:left;" class="eventRA" id="Event_Next_Remaining"></div>
62                     </div>
63                     
64                     <div class="divblock">
65                       <div style="display:none;" class="eventExtDesc" id="Event_Next_Extended_Description"></div>
66                     </div>
67                 </div>
68                 <hr />
69                 
70                 <div id="BodyContentChannellist" class="BodyContentChannellist"></div>
71                 <div id="BodyContentMessageform" style="display:none;"></div>
72                 <div id="BodyContentPower" style="display:none;"></div>
73                 <div id="BodyContentHDD" style="display:none;">
74                         <iframe src="/hdd/" width="100%" height="400"/>
75                 </div>
76
77                         
78         
79         </div>
80 </div>
81 <!--iframe onload="hide(this)" width="0" id="updates" height="0" src="updates.html" name="updates" scrolling="none" frameborder="0">no iframe support!</iframe-->
82 <script type="text/javascript" >
83
84 initVolumePanel();
85
86 refreshChannellist('Favourites (TV)', '1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet');
87 setBodyMainContent('BodyContentChannellist');
88 function imdb()
89 {
90         w = window.open("http://www.imdb.com/find?s=all&amp;q=" + escape(document.getElementById("Event_Now_Name").innerHTML));
91         w.focus();
92         set("BodyContentChannellist", "TEST!!!");
93 }
94
95 </script>
96
97 </body>
98 &lt;div id="scriptzone">
99 <!-- realtime updates follow -->
100 <e2:element source="CurrentTime" streaming="yes">
101   <e2:convert type="ClockToText">WithSeconds</e2:convert>
102         <e2:convert type="web:JavascriptUpdate" />
103 </e2:element>
104 <e2:element source="CurrentService" streaming="yes">
105         <e2:convert type="ServiceName">Name</e2:convert>
106         <e2:convert type="web:JavascriptUpdate" />
107 </e2:element>
108 <e2:element source="Event_Now" id="Event_Now_Name" streaming="yes">
109         <e2:convert type="EventName">Name</e2:convert>
110         <e2:convert type="web:JavascriptUpdate" />
111 </e2:element>
112 <e2:element source="Event_Now" id="Event_Now_Extended_Description" streaming="yes">
113         <e2:convert type="EventName">ExtendedDescription</e2:convert>
114         <e2:convert type="web:JavascriptUpdate" />
115 </e2:element>
116 <e2:element source="Event_Now" id="Event_Now_Begin" streaming="yes">
117         <e2:convert type="EventTime">StartTime</e2:convert>
118   <e2:convert type="ClockToText">Default</e2:convert>
119         <e2:convert type="web:JavascriptUpdate" />
120 </e2:element>
121
122 <e2:element source="Event_Now" id="Event_Now_Remaining" streaming="yes">
123         <e2:convert type="EventTime">Remaining</e2:convert>
124         <e2:convert type="RemainingToText">InMinutes</e2:convert>
125         <e2:convert type="web:JavascriptUpdate" />
126 </e2:element>
127
128
129 <e2:element source="Event_Next" id="Event_Next_Name" streaming="yes">
130   <e2:convert type="EventName">Name</e2:convert>
131   <e2:convert type="web:JavascriptUpdate" />
132 </e2:element>
133 <e2:element source="Event_Next" id="Event_Next_Begin" streaming="yes">
134         <e2:convert type="EventTime">StartTime</e2:convert>
135         <e2:convert type="ClockToText">Default</e2:convert>
136         <e2:convert type="web:JavascriptUpdate" />
137 </e2:element>
138
139 <e2:element source="Event_Next" id="Event_Next_Remaining" streaming="yes">
140   <e2:convert type="EventTime">Remaining</e2:convert>
141   <e2:convert type="RemainingToText">InMinutes</e2:convert>
142   <e2:convert type="web:JavascriptUpdate" />
143 </e2:element>
144 <e2:element source="Event_Next" id="Event_Next_Extended_Description" streaming="yes">
145         <e2:convert type="EventName">ExtendedDescription</e2:convert>
146         <e2:convert type="web:JavascriptUpdate" />
147 </e2:element>
148                 
149                 
150
151 </e2:screen>