From 1e18704d0a902ef942b11e2eb2b760bb01a4f1cd Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 12 Dec 2006 16:53:34 +0000 Subject: [PATCH] Ajout select_weight_units --- htdocs/html.form.class.php | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index bf07356d51e..9fd690fade5 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2058,7 +2058,38 @@ class Form } print ''; } - + + + + + /** + * \brief Selection des unites de poids + * \param name Nom champ html + * \param default Forçage de l'unite + * \remarks pour l'instant on ne definit pas les unites dans la base + */ + function select_weight_units($name='weight_units', $default='0', $adddefault=0) + { + global $langs,$conf,$mysoc; + + $units[3] = "Tonne"; + $units[0] = "kg"; + $units[-3] = "g"; + + print ''; + } function load_tva($name='tauxtva', $defaulttx='', $societe_vendeuse='', $societe_acheteuse='', $taux_produit='') {