From f3cfda33cd3d91afc3886ac3f16699957b984d8c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 12 Mar 2003 18:59:53 +0000 Subject: [PATCH] Ajout select_date --- htdocs/html.form.class.php | 91 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index c49b73da06f..e4a8ad1dff8 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -36,7 +36,98 @@ class Form { * * */ + Function select_tva($name='') + { + if (! strlen(trim($name))) + { + $name = "tauxtva"; + } + print ''; + } + + + Function select_date($set_time='') + { + if (! $set_time) + { + $set_time = time(); + } + + $strmonth[1] = "Janvier"; + $strmonth[2] = "Février"; + $strmonth[3] = "Mars"; + $strmonth[4] = "Avril"; + $strmonth[5] = "Mai"; + $strmonth[6] = "Juin"; + $strmonth[7] = "Juillet"; + $strmonth[8] = "Août"; + $strmonth[9] = "Septembre"; + $strmonth[10] = "Octobre"; + $strmonth[11] = "Novembre"; + $strmonth[12] = "Décembre"; + + $smonth = 1; + + $cday = date("d", $set_time); + $cmonth = date("n", $set_time); + $syear = date("Y", $set_time); + + print ""; + + + print ""; + + print "\n"; + + } + /* + * + * + */ Function select($name, $sql, $id='') {