diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index fbf3bea7c00..600a16e9322 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -942,36 +942,33 @@ class Form } } - /** + /** * \brief Retourne la ou les listes déroulante des catégories en fonction du nombre choisi * \param selected nombre de catégorie à créer */ - function select_all_categories($nbcats='') + function select_all_categories($selected='') { global $langs; $langs->load("categorie"); - - if ($nbcats) - { - $categorie = new Categorie($this -> db); - $all_categories = $categorie->get_all_categories();//on récupère toutes les catégories et leurs attributs - - for ($i = 0; $i < $nbcats ; $i++) - { - print ''.$langs->trans ("AddIn").''; - } - } + $cat = new Categorie ($this -> db); + $cat->get_categories_arbo(); + $cate_arbo = $cat->get_arbo_each_cate(); + print ''.$langs->trans ("AddIn").''; + + }