Author: duncan
Date: Mon Jan  1 16:15:10 2007
New Revision: 8894

Modified:
   branches/rel-1/freevo/src/www/htdocs/index.rpy
   branches/rel-1/freevo/src/www/web_types.py

Log:
Added webremote link, that brings up the remote in a new window.


Modified: branches/rel-1/freevo/src/www/htdocs/index.rpy
==============================================================================
--- branches/rel-1/freevo/src/www/htdocs/index.rpy      (original)
+++ branches/rel-1/freevo/src/www/htdocs/index.rpy      Mon Jan  1 16:15:10 2007
@@ -88,6 +88,7 @@
         diskfree = _('%i of %i Mb free in %s')  % ( (( 
util.freespace(config.TV_RECORD_DIR) / 1024) / 1024), 
((util.totalspace(config.TV_RECORD_DIR) /1024) /1024), config.TV_RECORD_DIR)
         fv.res += '<p class="normal">' + diskfree + '</p>\n'
         fv.res += '</div>'
+        fv.printWebRemote()
         fv.printSearchForm()
         #fv.printLinks()
         fv.printFooter()

Modified: branches/rel-1/freevo/src/www/web_types.py
==============================================================================
--- branches/rel-1/freevo/src/www/web_types.py  (original)
+++ branches/rel-1/freevo/src/www/web_types.py  Mon Jan  1 16:15:10 2007
@@ -454,6 +454,7 @@
         then this displays a remote to control freevo 
         via the web browser
         """
+        print 'printWebRemote(self)'
         if not (config.ENABLE_NETWORK_REMOTE == 1 and 
config.REMOTE_CONTROL_PORT):
            self.res += "no remote enabled"
 
@@ -499,51 +500,19 @@
                xmlHttp.open('GET', url, true);
                xmlHttp.send(null);
              }
+            
+            function openremote(){
+              var 
params="toolbar=no,location=no,status=no,menubar=no,resizable=no,scrollbars=no,top=0,left=0";
+              remote = window.open("webremote.rpy","WebRemote",params);
+            }
            -->
            </script>
+        <br />
         <table border="0" cellspacing="0" cellpadding="0" class="remote">
-
-        <tr><td>&nbsp;</td>
-            <td class="remote"><button class="remote" accesskey="8" 
onClick="send_code('UP');">UP</button></td>
-            <td>&nbsp;</td>
-        </tr>
-        <tr><td class="remote"><button class="remote" accesskey="6" 
onClick="send_code('LEFT');">&lt;LEFT</button></td>
-            <td class="remote"><button class="remote" accesskey="5" 
onClick="send_code('SELECT');">OK</button></td>
-            <td class="remote"><button class="remote" accesskey="4" 
onClick="send_code('RIGHT');">RIGHT&gt;</button></td>
-        </tr>
-        <tr><td>&nbsp;</td>
-            <td class="remote"><button class="remote" accesskey="2" 
onClick="send_code('DOWN');">DOWN</button></td>
-            <td>&nbsp;</td>
-        </tr>
-
-        <tr style="line-height: 8px;"><td colspan="3">&nbsp;</td></tr>
-
-        <tr><td class="remote"><button class="remote" accesskey="e" 
onClick="send_code('EXIT');">BACK</button></td>
-            <td class="remote"><button class="remote" accesskey="d" 
onClick="send_code('DISPLAY');">DISPLAY</button></td>
-            <td class="remote"><button class="remote" accesskey="m" 
onClick="send_code('MENU');">MENU</button></td>
-        </tr>
-
-        <tr style="line-height: 8px;"><td colspan="3">&nbsp;</td></tr>
-
         <tr><td class="remote"><button class="remote" accesskey="p" 
onClick="send_code('PLAY');">PLAY</button></td>
-            <td class="remote"><button class="remote" accesskey="s" 
onClick="send_code('STOP');">STOP</button></td>
-            <td class="remote"><button class="remote" accesskey="c" 
onClick="send_code('REC');" style="color:red">REC</button></td>
-        </tr>
-        <tr><td class="remote"><button class="remote" accesskey="r" 
onClick="send_code('REW');">&lt;REW</button></td>
-            <td class="remote"><button class="remote" accesskey="u" 
onClick="send_code('PAUSE');">PAUSE</button></td>
-            <td class="remote"><button class="remote" accesskey="f" 
onClick="send_code('FFWD');">FFWD&gt;</button></td>
+          <td class="remote"><button class="remote" accesskey="u" 
onClick="send_code('PAUSE');">PAUSE</button></td> 
+          <td class="remote"><button class="remote" accesskey="s" 
onClick="send_code('STOP');">STOP</button></td>
         </tr>
-
-        <tr style="line-height: 8px;"><td colspan="3">&nbsp;</td></tr>
-
-        <tr><td class="remote"><button class="remote" accesskey="+" 
onClick="send_code('VOLP');">VOL+</button></td>
-            <td class="remote"><button class="remote" accesskey="m" 
onClick="send_code('MUTE');">MUTE</button></td>
-            <td class="remote"><button class="remote" accesskey="c" 
onClick="send_code('CHP');">CH+</button></td>
-        </tr>
-        <tr><td class="remote"><button class="remote" accesskey="-" 
onClick="send_code('VOLM');">VOL-</button></td>
-            <td class="remote">&nbsp;</td>
-            <td class="remote"><button class="remote" accesskey="v" 
onClick="send_code('CHM');">CH-</button></td>
-        </tr>
-
+        <tr><td colspan="3" align="center"><a 
href="javascript:openremote()">Freevo WebRemote</a></td></tr>
         </table>
         """

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to