This commit is contained in:
Regis Houssin 2006-02-22 19:59:10 +00:00
parent b7a534f78d
commit b5247c3fa3

View File

@ -111,7 +111,7 @@ if ($user->rights->produit->creer)
print $categorie->description.'</textarea></td></tr>';
print '<tr><td>';
print $langs->trans("AddIn").' ';
print $html->select_nombre_sous_categorie($nbcats,"choix").' ';
print $html->select_nombre_sous_categorie($nbcats,"cats_meres").' ';
print $langs->trans("categories");
print '</td><td>';
print '<input type="submit" class="button" value="'.$langs->trans("modify").'" name="choicenbcats" id="choicenbcats"/>';
@ -135,15 +135,6 @@ if ($user->rights->produit->creer)
print '<table border="0" width="100%">';
print '<tr><td valign="top" width="30%">';
//$categorie = new Categorie($db);
//$categorie->label = $_REQUEST["nom"];
//$categorie->description = $_REQUEST["description"];
//$cats_meres = isset($_REQUEST['cats_meres']) ? $_REQUEST['cats_meres'] : array();
//$res = $categorie->create();
if ($_error == 3)
{
print '<p>'.$langs->trans("ImpossibleAddCat").' '.$categorie->label.'</p>';
@ -151,17 +142,10 @@ if ($user->rights->produit->creer)
else
{
print '<p>'.$langs->trans("TheCategorie").' '.$categorie->label.' '.$langs->trans("WasAddedSuccessfully").'</p>';
//foreach ($cats_meres as $id)
//{
//$mere = new Categorie($db, $id);
//$res = $mere->add_fille($categorie);
if ($_error == 2)
{
print '<p>'.$langs->trans("TheCategorie").' '.$mere->label.' ('.$res.').</p>';
}
//}
if ($_error == 2)
{
print '<p>'.$langs->trans("TheCategorie").' '.$mere->label.' ('.$res.').</p>';
}
}
print '</td></tr></table>';
}