From bc39f6d40dbff3d08a6712d3e4c593d06033a680 Mon Sep 17 00:00:00 2001 From: Alib Date: Tue, 23 Feb 2010 19:24:27 +0100 Subject: add form validation check for timers --- includes/inc_edittimer.php | 54 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 4 deletions(-) (limited to 'includes/inc_edittimer.php') diff --git a/includes/inc_edittimer.php b/includes/inc_edittimer.php index e362c94..8babf0c 100755 --- a/includes/inc_edittimer.php +++ b/includes/inc_edittimer.php @@ -17,7 +17,7 @@ else list($type, $channame, $date, $stime, $etime, $desc) = vdrgettimerinfo($timer); // Timer name -print "
\r\n"; +print "\r\n"; print " \r\n"; print " \r\n"; print " \r\n"; @@ -64,7 +82,15 @@ $ssec = substr($stime, 2); print "
  • "; print " \r\n"; + +if ($timer == -1) +{ +print " Select start time"; +} +else +{ print " {$smin}h{$ssec}"; +} print " "; print " "; print "
  • \r\n"; @@ -76,21 +102,41 @@ $emin = substr($etime, 0, 2); $esec = substr($etime, 2); print "
  • \r\n"; +if ($timer == -1) +{ +print " Select end time
  • \r\n"; +} +else +{ print " {$emin}h{$esec}\r\n"; +} print " \r\n"; - print "\r\n"; + +if ($timer == -1) +{ +print "\r\n"; +print "\r\n"; +print "\r\n"; +} +else +{ print "\r\n"; print "\r\n"; print "\r\n"; +} + print "\r\n"; print "\r\n"; print "
    \r\n"; -- cgit v1.2.3