checking in, but the remotecontrol still needs some support *.py
authorJulian Dittrich <jjbig@users.schwerkraft.elitedvb.net>
Tue, 13 Mar 2007 22:15:25 +0000 (22:15 +0000)
committerJulian Dittrich <jjbig@users.schwerkraft.elitedvb.net>
Tue, 13 Mar 2007 22:15:25 +0000 (22:15 +0000)
webinterface/src/Makefile.am
webinterface/src/plugin.py
webinterface/src/wap/Makefile.am [new file with mode: 0644]
webinterface/src/wap/index.html [new file with mode: 0644]
webinterface/src/wap/remotecontrol.html [new file with mode: 0644]

index 4323a14..27767d2 100644 (file)
@@ -3,4 +3,4 @@ installdir = /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/
 install_PYTHON = __init__.py plugin.py webif.py WebIfConfig.py
 install_DATA = plugin.png
 
-SUBDIRS = web web-data WebComponents
+SUBDIRS = web web-data WebComponents static
index 9ee46c0..87d1619 100644 (file)
@@ -46,7 +46,7 @@ NoExplicitHeaderFiles = ['getpid.xml','tvbrowser.xml',]
 """
                        
 
-#DEBUG = True
+DEBUG = True
 DEBUG = False
 DEBUGFILE= "/tmp/twisted.log"
 
@@ -121,6 +121,7 @@ def startWebserver():
                addSlash = True
                child_web = ScreenPage(util.sibpath(__file__, "web")) # "/web/*"
                child_webdata = static.File(util.sibpath(__file__, "web-data")) # FIXME: web-data appears as webdata
+               child_wap = static.File(util.sibpath(__file__, "wap")) # static pages for wap
 
                def render(self, req):
                        fp = open(util.sibpath(__file__, "web-data")+"/index.html")
diff --git a/webinterface/src/wap/Makefile.am b/webinterface/src/wap/Makefile.am
new file mode 100644 (file)
index 0000000..b61e98d
--- /dev/null
@@ -0,0 +1,3 @@
+installdir = /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/static/\r
+\r
+install_DATA = *.html\r
diff --git a/webinterface/src/wap/index.html b/webinterface/src/wap/index.html
new file mode 100644 (file)
index 0000000..d4b2c1c
--- /dev/null
@@ -0,0 +1,24 @@
+<html>
+<head>
+       <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+       <title>Enigma 2 Webinterface (ALPHA)</title>
+
+       <!-- our stuff //-->
+       <script type="text/javascript" src="/webdata/templates.js" ></script>
+       <script type="text/javascript" src="/webdata/objects.js" ></script>
+       <script type="text/javascript" src="/webdata/tools.js" ></script>
+
+       <link href="/webdata/style.css" type="text/css" rel="stylesheet" >
+       <link rel="shortcut icon" type="image/x-icon" href="/webdata/gfx/favicon.ico">
+</head>
+
+<body>
+<h1 style="text-align: center;"><big>Dreambox 7025</big></h1>
+<h1 style="text-align: center;">Static/WAP</h1>
+<h1 style="text-align: center;"><small>Interface</small></h1>
+<br>
+<div style="text-align: center;"><a href="remotecontrol.html">Remote
+Control</a><br>
+</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/webinterface/src/wap/remotecontrol.html b/webinterface/src/wap/remotecontrol.html
new file mode 100644 (file)
index 0000000..fd9551f
--- /dev/null
@@ -0,0 +1,72 @@
+<html>
+<head>
+       <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+       <title>Enigma 2 Webinterface (ALPHA)</title>
+
+       <!-- our stuff //-->
+       <script type="text/javascript" src="/webdata/templates.js" ></script>
+       <script type="text/javascript" src="/webdata/objects.js" ></script>
+       <script type="text/javascript" src="/webdata/tools.js" ></script>
+
+       <link href="/webdata/style.css" type="text/css" rel="stylesheet" >
+       <link rel="shortcut icon" type="image/x-icon" href="/webdata/gfx/favicon.ico">
+</head>
+
+<body>
+<div style="text-align: center;">
+<img border="0" usemap="#RemoteControl" src="/webdata/gfx/remotecontrol_static.jpg">
+<map name="RemoteControl"> 
+<area shape=circle coords="65,8,7" href="onoff">
+
+<area shape=circle coords="18,56,7" href="1">
+<area shape=circle coords="51,56,7" href="2">
+<area shape=circle coords="81,56,7" href="3">
+
+<area shape=circle coords="18,74,7" href="4">
+<area shape=circle coords="51,74,7" href="5">
+<area shape=circle coords="81,74,7" href="6">
+
+<area shape=circle coords="18,92,7" href="7">
+<area shape=circle coords="51,92,7" href="8">
+<area shape=circle coords="81,92,7" href="9">
+
+<area shape=circle coords="18,109,7" href="back">
+<area shape=circle coords="51,109,7" href="0">
+<area shape=circle coords="81,109,7" href="forward">
+
+<area shape=circle coords="12,140,9" href="vup">
+<area shape=circle coords="22,161,9" href="vdown">
+
+<area shape=circle coords="50,134,7" href="mute">
+<area shape=circle coords="50,151,7" href="exit">
+
+<area shape=circle coords="87,140,3" href="bup">
+<area shape=circle coords="79,161,3" href="bdown">
+
+<area shape=circle coords="3,51,2" href="info">
+<area shape=circle coords="6,44,3" href="vdown">
+
+<area shape=circle coords="9,185,8" href="info">
+<area shape=circle coords="91,185,8" href="menu">
+<area shape=circle coords="11,237,8" href="audio">
+<area shape=circle coords="89,237,8" href="video">
+
+<area shape=poly coords="28,187,48,177,74,184,48,194" href="up">
+<area shape=poly coords="28,230,48,222,74,230,48,241" href="down">
+<area shape=rect coords="16,199,34,220" href="left">
+<area shape=rect coords="67,199,82,220" href="rigth">
+<area shape=rect coords="37,199,63,220" href="ok">
+
+<area shape=circle coords="14,265,7" href="red">
+<area shape=circle coords="38,266,7" href="green">
+<area shape=circle coords="62,266,7" href="yellow">
+<area shape=circle coords="86,265,7" href="blue">
+
+<area shape=circle coords="19,293,7" href="tv">
+<area shape=circle coords="39,294,7" href="radio">
+<area shape=circle coords="61,294,7" href="text">
+<area shape=circle coords="82,293,7" href="help">
+</map>
+</div>
+</body>
+</html>
\ No newline at end of file