From 00c395daf8594b7569a2128607436b9ca7edd712 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 3 Aug 2003 11:56:34 +0000 Subject: [PATCH] Gestion des heures et minutes dans select_date() --- htdocs/html.form.class.php | 52 +++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) 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"; + } + + } } /* *