summaryrefslogtreecommitdiff
path: root/pages/xmlresponse.ecpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-05-08 22:59:40 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-05-08 22:59:40 +0000
commit70f268b6fff0037cbff265cf849663755223ffed (patch)
tree26806a8fa7fe319be310ba12266c80e2b2fee34a /pages/xmlresponse.ecpp
parent805c2d6fec9d9b88d9d3d6e4cd8dcac33d062533 (diff)
downloadvdr-plugin-live-70f268b6fff0037cbff265cf849663755223ffed.tar.gz
vdr-plugin-live-70f268b6fff0037cbff265cf849663755223ffed.tar.bz2
- Control recordings playback from Infobox
- Added button images (Buttons by skiller2k1) - Made recordings look more like schedule - Made all tables 100% width to have a common look over all pages - some cleanup in ajax xml responses - common file for xmlresponses - Added translations for recordings related strings - Javascript updates in vdr_status.js for new playback control functions - Added tasks for playback control actions
Diffstat (limited to 'pages/xmlresponse.ecpp')
-rw-r--r--pages/xmlresponse.ecpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/pages/xmlresponse.ecpp b/pages/xmlresponse.ecpp
new file mode 100644
index 0000000..1123368
--- /dev/null
+++ b/pages/xmlresponse.ecpp
@@ -0,0 +1,62 @@
+<%pre>
+#include <string>
+
+using namespace std;
+</%pre>
+
+<# ------------------------------------------------------------------------- #>
+
+<%def ajax>
+<%args>
+ string name;
+ string pname;
+ string value;
+ bool result;
+ string error;
+</%args>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<service>
+ <request name="<$ name $>">
+ <param name="<$ pname $>"><$ value $></param>
+ </request>
+ <response><$ result $></response>
+ <error><$ error $></error>
+</service>
+</%def>
+
+<# ------------------------------------------------------------------------- #>
+
+<%def ibox>
+<%args>
+ int update;
+ string type;
+ string currentTime;
+ string caption;
+ string title;
+ string duration;
+ int elapsed;
+ string prev_chan;
+ string next_chan;
+</%args>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<service>
+ <request name="ibox">
+ <param name="update"><$ update $></param>
+ </request>
+ <response>1</response>
+ <error></error>
+ <values>
+ <update><$ update $></update>
+ <epginfo>
+ <type><$ type $></type>
+ <caption><$ caption $></caption>
+ <timenow><$ currentTime $></timenow>
+ <name><$ title $></name>
+ <duration><$ duration $></duration>
+ <elapsed><$ elapsed $></elapsed>
+ <nextchan><$ next_chan $></nextchan>
+ <prevchan><$ prev_chan $></prevchan>
+ </epginfo>
+ </values>
+</service>
+</%def>