summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-22 14:43:49 +0100
committerAlib <aliboba@free.fr>2010-02-22 14:43:49 +0100
commite727e036902f296a2b93d31eea948328cd7a5f85 (patch)
tree16cbf44e2f3cb95d1ff3be9029fbf6536a85a4f8
parent10dad4cfe250ac642b8f2af9b986b4f84e84256c (diff)
downloadistreamdev-e727e036902f296a2b93d31eea948328cd7a5f85.tar.gz
istreamdev-e727e036902f296a2b93d31eea948328cd7a5f85.tar.bz2
updated timers template
-rwxr-xr-xedit_timer.html25
-rwxr-xr-xnew_timer.html19
2 files changed, 37 insertions, 7 deletions
diff --git a/edit_timer.html b/edit_timer.html
index c2dea69..7a8efe6 100755
--- a/edit_timer.html
+++ b/edit_timer.html
@@ -42,11 +42,19 @@ function updateOrientation() {
frm = document.getElementById(formid);
frm.submit();
}
-function openSelectDate() {
+function openSelectDate(timer_year,timer_month,timer_day) {
var now = new Date();
+ if ( timer_year == null ) {
var now_year = now.getFullYear();
var now_month = now.getMonth()+1;
var now_day = now.getDate();
+ }
+ else
+ {
+ var now_year = timer_year;
+ var now_month = timer_month;
+ var now_day = timer_day;
+ }
var layer = 'layer_date';
var days = { };
var years = { };
@@ -79,10 +87,17 @@ function done_date() {
function cancel_date() {
}
-function openSelectTime(layer) {
+function openSelectTime(layer,timer_hour,timer_minute) {
+ if ( timer_hour == null ) {
var now = new Date();
var now_hour = now.getHours();
var now_minute = now.getMinutes()+1;
+ }
+ else
+ {
+ var now_hour = timer_hour;
+ var now_minute = timer_minute;
+ }
var hours = { };
var minutes = { };
@@ -145,18 +160,18 @@ iStream
<ul class="pageitem">
<li class="textbox"><span class="header">Date</span></li>
- <li class="menu"><a class="noeffect" href="javascript:openSelectDate()">
+ <li class="menu"><a class="noeffect" href="javascript:openSelectDate(2010,3,24)">
<span class="name" id="layer_date">24-Mar-2010</span><span class="arrow"></span></a></li>
</ul>
<ul class="pageitem">
<li class="textbox"><span class="header">Start time</span></li>
- <li class="menu"><a class="noeffect" href="javascript:openSelectTime('layer_starttime')">
+ <li class="menu"><a class="noeffect" href="javascript:openSelectTime('layer_starttime',22,15)">
<span class="name" id="layer_starttime">22h15</span><span class="arrow"></span></a></li>
</ul>
<ul class="pageitem">
<li class="textbox"><span class="header">End time</span></li>
- <li class="menu"><a class="noeffect" href="javascript:openSelectTime('layer_endtime')">
+ <li class="menu"><a class="noeffect" href="javascript:openSelectTime('layer_endtime',23,45)">
<span class="name" id="layer_endtime">23h45</span><span class="arrow"></span></a></li>
</ul>
<input name="action" type="hidden" id="action" value="edittimer"/>
diff --git a/new_timer.html b/new_timer.html
index be7fb1b..1d94c06 100755
--- a/new_timer.html
+++ b/new_timer.html
@@ -37,11 +37,19 @@ function updateOrientation() {
frm = document.getElementById(formid);
frm.submit();
}
-function openSelectDate() {
+function openSelectDate(timer_year,timer_month,timer_day) {
var now = new Date();
+ if ( timer_year == null ) {
var now_year = now.getFullYear();
var now_month = now.getMonth()+1;
var now_day = now.getDate();
+ }
+ else
+ {
+ var now_year = timer_year;
+ var now_month = timer_month;
+ var now_day = timer_day;
+ }
var layer = 'layer_date';
var days = { };
var years = { };
@@ -74,10 +82,17 @@ function done_date() {
function cancel_date() {
}
-function openSelectTime(layer) {
+function openSelectTime(layer,timer_hour,timer_minute) {
+ if ( timer_hour == null ) {
var now = new Date();
var now_hour = now.getHours();
var now_minute = now.getMinutes()+1;
+ }
+ else
+ {
+ var now_hour = timer_hour;
+ var now_minute = timer_minute;
+ }
var hours = { };
var minutes = { };