summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-21 23:53:20 +0100
committerAlib <aliboba@free.fr>2010-02-21 23:53:20 +0100
commit029c667f638cb9875636eedef1ddd3e45d62e9d7 (patch)
tree4ec9fd7329271a38055a01b4fd2a6c089059d69d /includes
parent3e0c075573b88b02c1d3c1a69251f41b31385ef8 (diff)
downloadistreamdev-029c667f638cb9875636eedef1ddd3e45d62e9d7.tar.gz
istreamdev-029c667f638cb9875636eedef1ddd3e45d62e9d7.tar.bz2
updated new timer template. Added spinningwheel from
http://cubiq.org/spinning-wheel-on-webkit-for-iphone-ipod-touch/11
Diffstat (limited to 'includes')
-rw-r--r--includes/inc_timers.php10
-rwxr-xr-xincludes/include.php15
2 files changed, 22 insertions, 3 deletions
diff --git a/includes/inc_timers.php b/includes/inc_timers.php
index 31d663e..bf14074 100644
--- a/includes/inc_timers.php
+++ b/includes/inc_timers.php
@@ -13,11 +13,15 @@ print " <li class=\"textbox\"><span class=\"header\">Incoming feature</span";
print " <p>This is just a template...</p></li></ul>";
print " <ul class=\"pageitem\">";
print " <li class=\"textbox\"> <span class=\"header\">Current timers</span> </li>";
-print " <li class=\"menu\"><a href=\"edit_timer.html\"> <img alt=\"list\" src=\"images/pictos/timers.png\" /><span class=\"name\">23.02.2010: TF1 Gran Torino</span><span class=\"arrow\"></span></a></li>";
-print " <li class=\"menu\"><a href=\"edit_timer.html\"> <img src=\"images/pictos/timers.png\" /><span class=\"name\">12.03.2010: Canal + Les Guignols de l'Info </span><span class=\"arrow\"></span></a></li>";
+print " <li class=\"menu\"><a href=\"javascript:sendForm('23.02.2010: TF1 Gran Torino')\"> <img alt=\"list\" src=\"images/pictos/timers.png\" /><span class=\"name\">23.02.2010: TF1 Gran Torino</span><span class=\"arrow\"></span></a></li>";
+print "<form name=\"23.02.2010: TF1 Gran Torino\" id=\"23.02.2010: TF1 Gran Torino\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"edit_timer\"/><input name=\"timer\" type=\"hidden\" id=\"timer\" value=\"23.02.2010: TF1 Gran Torino\" /></form>";
+print " <li class=\"menu\"><a href=\"javascript:sendForm('23.02.2010: TF1 Gran Torino')\"> <img src=\"images/pictos/timers.png\" /><span class=\"name\">12.03.2010: Canal + Les Guignols de l'Info </span><span class=\"arrow\"></span></a></li>";
+print "<form name=\">12.03.2010: Canal + Les Guignols de l'Info\" id=\">12.03.2010: Canal + Les Guignols de l'Info\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"edit_timer\"/><input name=\"timer\" type=\"hidden\" id=\"timer\" value=\">12.03.2010: Canal + Les Guignols de l'Info\" /></form>";
print "</ul>";
print "<ul class=\"pageitem\">";
-print " <li class=\"menu\"><a href=\"new_timer.html\"><span class=\"name\">New Timer</span><span class=\"arrow\"></span></a></li>";
+print " <li class=\"menu\"><a href=\"javascript:sendForm('new_timer')\"><span class=\"name\">New Timer</span><span class=\"arrow\"></span></a></li>";
+print "<form name=\"new_timer\" id=\"new_timer\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"action\" value=\"new_timer\"/></form>";
+
print "</ul>";
print "</div>\r\n";
diff --git a/includes/include.php b/includes/include.php
index ca86aea..e7d46ab 100755
--- a/includes/include.php
+++ b/includes/include.php
@@ -48,6 +48,12 @@ function selectpage()
case ("timers"):
gen_timers();
break;
+ case ("new_timer"):
+ gen_new_timer();
+ break;
+ case ("edit_timer"):
+ gen_edit_timer();
+ break;
case ("startstream"):
$type = $_REQUEST['type'];
$name = $_REQUEST['name'];
@@ -105,6 +111,15 @@ function gen_timers()
{
include('includes/inc_timers.php');
}
+function gen_new_timer()
+{
+ include('new_timer.html');
+}
+function gen_edit_timer()
+{
+ include('edit_timer.html');
+}
+
function start_stream($type, $name, $title, $desc, $qname, $qparams, $category, $url)