diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index cba18fa99e4..3fb0c78f669 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -73,7 +73,7 @@ class Form { } - Function select_date($set_time='') + Function select_date($set_time='', $h = 0, $m = 0) { if (! $set_time) { @@ -98,7 +98,9 @@ class Form { $cday = date("d", $set_time); $cmonth = date("n", $set_time); $syear = date("Y", $set_time); - + $shour = date("H", $set_time); + $smin = date("i", $set_time); + print ""; - print "'; for ($year = $syear - 2; $year < $syear + 5 ; $year++) { @@ -145,6 +147,50 @@ class Form { } print "\n"; + if ($h) + { + print 'H\n"; + + if ($m) + { + print 'M\n"; + } + + } } /* *