gestion catgorie de produits

This commit is contained in:
Regis Houssin 2006-02-20 17:12:05 +00:00
parent 1c9ceb02fe
commit 2ef242bb35

View File

@ -139,14 +139,14 @@ print '<tr><td valign="top" width="30%">';
echo "<p>".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Label")."\"</p>"; echo "<p>".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Label")."\"</p>";
$OK = false; $OK = false;
} }
else if ($c->already_exists ($_POST["nom"])) /* else if ($c->already_exists ($_POST["nom"]))
{ {
// on regarde si le champ nom n'est pas déjà dans la table catégorie (rappel: un nom est unique dans la table catégorie // on regarde si le champ nom n'est pas déjà dans la table catégorie (rappel: un nom est unique dans la table catégorie
// nb a déjà été renseigné, il contient le nombre de catégories // nb a déjà été renseigné, il contient le nombre de catégories
echo "<p>".$langs->trans ("ErrCatAlreadyExists")."</p>"; echo "<p>".$langs->trans ("ErrCatAlreadyExists")."</p>";
$OK = false; $OK = false;
} }
*/
if ($_POST["description"] == '') if ($_POST["description"] == '')
{ {
echo "<p>".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Description")."\"</p>"; echo "<p>".$langs->trans ("ErrForgotField")." \"".$langs->trans ("Description")."\"</p>";