AutoTimer Webinterface: fix broken AT WebInterface since latest changes (POST / SID...
[enigma2-plugins.git] / autotimer / src / web-data / 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         <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
9         
10         <title>Dreambox AutoTimerEditor</title>
11         
12         <link href="/autotimereditor/style.css" type="text/css" rel="stylesheet">
13         <link rel="shortcut icon" type="/web-data/image/x-icon" href="/web-data/img/favicon.ico">
14         <!--
15         <script type="text/javascript" src="/web-data/lib/prototype.js"></script>
16         <script type="text/javascript" src="/web-data/lib/curvycorners.js"></script>
17         <script type="text/javascript" src="/web-data/lib/trimpath-template-1.0.38.js"></script>
18         <script type="text/javascript" src="/web-data/lib/hashlistener2.js"></script>
19         <script type="text/javascript" src="/web-data/lib/datepicker/datepicker.js">
20         {
21                 "nodrag":1,
22                 "lang":"en",
23                 "buttontabindex":true,
24                 "cellformat":["Y-ds-m-ds-d"],
25                 "titleformat":["Y-ds-m-ds-d"]
26         }
27         </script>
28         -->
29         <script type="text/javascript" src="/web-data/lib/libs_minified.js">
30         {
31                 "nodrag":1,
32                 "lang":"en",
33                 "buttontabindex":true,
34                 "cellformat":["Y-ds-m-ds-d"],
35                 "titleformat":["Y-ds-m-ds-d"]
36         }
37         </script>
38         <script language="javascript" type="text/javascript">
39                 if (!window.$) {
40                         window.$ = function(id) { return document.getElementById(id); }
41                 }
42                 
43                 function getAjaxLoad(){
44                         return ('<center><img style="padding-top: 50px;" src="/web-data/gfx/ajaxload.gif" alt="loading..."></center>');
45                 }
46         </script>
47         <!-- Webinterface Stuff -->
48         <script type="text/javascript" src="/web/strings.js"></script>
49         <script type="text/javascript" src="/web-data/userprefs.js"></script>
50         <script type="text/javascript" src="/web-data/statics.js" ></script>
51         <script type="text/javascript" src="/web-data/helpers.js" ></script>
52         <script type="text/javascript" src="/web-data/provider.js" ></script>
53         <script type="text/javascript" src="/web-data/handler.js" ></script>
54         <script type="text/javascript" src="/web-data/core.js" ></script>
55
56         <!-- autotimereditor stuff -->
57         <script type="text/javascript" src="jquery.js"></script>
58         <script type="text/javascript">$.noConflict();</script>
59         <link rel="stylesheet" type="text/css" href="/autotimereditor/anytimec.css" />
60         <script type="text/javascript" src="/autotimereditor/anytimec.js" ></script>
61         <script type="text/javascript" src="/autotimereditor/autotimereditor.js" ></script>
62         
63 </head>
64 <body onload="document.getElementById('notification').style.display='none'">
65         <div id="container">
66
67                 <div id="banner">
68                         <span id="notification"><div></div></span>
69                         <div id="bannerCenter">
70                                 <div id="bannerText">
71                                         <img src="/autotimereditor/dreambox_autotimereditor.png" alt="Dreambox AutoTimerEditor">
72                                 </div>
73                         </div>
74                 </div>
75
76                 <div id="menu">
77                         <div id="contentAutoTimerMenu"></div>
78                 </div>
79
80                 <div id="main">
81                         <div id="navContainer">
82                                 <div id="nav">
83                                         <div id="navHd" class="header">
84                                                 <div class="headerindent">AutoTimer List</div>
85                                         </div>
86                                         <div id="contentAutoTimerList"></div>
87                                 </div>
88                         </div>
89                         <div id="contentContainer">
90                                 <div id="content">
91                                         <div id="contentHd" class="header">
92                                                 <div id="headerautotimercontent" class="headerindent">AutoTimer</div>
93                                         </div>
94                                         <div id="contentAutoTimerContent"></div>
95                                 </div>
96                         </div>
97                 </div>
98
99         </div>
100
101         <script language="JavaScript">
102                 
103                 // Read get parameters
104                 HTTP_GET_VARS=new Array();
105                 strGET=document.location.search.substr(1,document.location.search.length);
106                 if(strGET!=''){
107             gArr=strGET.split('&');
108             for(i=0;i<gArr.length;++i){
109               v='';vArr=gArr[i].split('=');
110               if(vArr.length>1){v=vArr[1];}
111               HTTP_GET_VARS[unescape(vArr[0])]=unescape(v);
112                   }
113                 }
114                  
115                 function GET(v){
116                         if(!HTTP_GET_VARS[v]){return '';}
117                         return HTTP_GET_VARS[v];
118                 }
119                 
120                 // Instantiate the AutotimerEditor
121                 var atTemplateEngine = new TemplateEngine('/autotimereditor/');
122                 autotimereditorcore = new AutoTimerEditorCore(GET('name'), GET('servicename'), GET('servicereference'), GET('from'), GET('to'));
123         </script>
124
125 </body>
126 </html>