This commit is contained in:
Regis Houssin 2006-02-21 15:52:00 +00:00
parent 34736cd2e1
commit db2c2d0ffa

View File

@ -918,14 +918,16 @@ class Form
*/
function select_nombre_sous_categorie($selected='', $nbcats=1)
{
global $conf,$langs;
global $langs;
$langs->load("categorie");
if ($selected)
{
$categorie = new Categorie($this->$db);
$nb = $categorie->get_nb_categories();
$categorie = new Categorie($db);
$nb = $categorie->get_nb_categories();
for ($i = 0 ; $i <= $nb ; $i++)
{
for ($i = 0 ; $i <= $nb ; $i++)
{
print '<select class="flat" name="choix">';
print '<option value="'.$i.'" ';//creation d'une valeur dans la liste
if ($selected == $i)
@ -938,7 +940,8 @@ class Form
}
print '$i</option>';
print '</select>';
}
}
}
}
/**