From 3aed5cba32ba35265e779ed1b860c95147f81051 Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Wed, 22 Feb 2006 13:17:58 +0000 Subject: [PATCH] evo categories --- htdocs/html.form.class.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index d3944b07f47..e5221bc4d01 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -916,31 +916,31 @@ class Form * \brief Retourne la liste déroulante de création en sous catégories possible * \param selected nombre de sous catégorie pré-sélectionnée */ - function select_nombre_sous_categorie($selected='', $nbcats=1) + function select_nombre_sous_categorie($selected='',$htmlname) { global $langs; $langs->load("categorie"); if ($selected) { - $categorie = new Categorie($db); + $categorie = new Categorie($this -> db); $nb = $categorie->get_nb_categories(); - - for ($i = 0 ; $i <= $nb ; $i++) - { - print ''; + for ($i = 0 ; $i <= $nb ; $i++) + { + print ''; - print ''; + else + print '>'; + + print $i.''; + } + print ''; } }