bugfix
This commit is contained in:
parent
b7a534f78d
commit
b5247c3fa3
@ -111,7 +111,7 @@ if ($user->rights->produit->creer)
|
|||||||
print $categorie->description.'</textarea></td></tr>';
|
print $categorie->description.'</textarea></td></tr>';
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print $langs->trans("AddIn").' ';
|
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 $langs->trans("categories");
|
||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("modify").'" name="choicenbcats" id="choicenbcats"/>';
|
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 '<table border="0" width="100%">';
|
||||||
print '<tr><td valign="top" width="30%">';
|
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)
|
if ($_error == 3)
|
||||||
{
|
{
|
||||||
print '<p>'.$langs->trans("ImpossibleAddCat").' '.$categorie->label.'</p>';
|
print '<p>'.$langs->trans("ImpossibleAddCat").' '.$categorie->label.'</p>';
|
||||||
@ -151,17 +142,10 @@ if ($user->rights->produit->creer)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<p>'.$langs->trans("TheCategorie").' '.$categorie->label.' '.$langs->trans("WasAddedSuccessfully").'</p>';
|
print '<p>'.$langs->trans("TheCategorie").' '.$categorie->label.' '.$langs->trans("WasAddedSuccessfully").'</p>';
|
||||||
|
if ($_error == 2)
|
||||||
//foreach ($cats_meres as $id)
|
{
|
||||||
//{
|
print '<p>'.$langs->trans("TheCategorie").' '.$mere->label.' ('.$res.').</p>';
|
||||||
//$mere = new Categorie($db, $id);
|
}
|
||||||
//$res = $mere->add_fille($categorie);
|
|
||||||
|
|
||||||
if ($_error == 2)
|
|
||||||
{
|
|
||||||
print '<p>'.$langs->trans("TheCategorie").' '.$mere->label.' ('.$res.').</p>';
|
|
||||||
}
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
print '</td></tr></table>';
|
print '</td></tr></table>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user