$supprPrd, 'idPrd' => $idPrd, 'submit' => $_POST["submit"] ], 'art.deleteProduit.modale.php'); } // ----------------------------------------------------- // Req delete // ----------------------------------------------------- if (!empty($_POST["submit"])) { switch ($supprPrd) { case '1': // faire un test si aucune commande existe avec ce produit // si aucune --> delete // s'il y en a --> forcer un désactiver include ("./catalog/req/reqDeleteProduit.php"); $idPrd=1; //par defaut apres delete - pas mieux ?---> faire select first break; case '2': include ("./catalog/req/reqDesactivProduit.php"); break; } } // ----------------------------------------------------- // Req select // ----------------------------------------------------- include ("./catalog/req/reqSelectPrd.php"); echo '
'; // ----------------------------------------------------- // Form // ----------------------------------------------------- echo '
'; // ----------------------------------------------------- // Champs cachés // ----------------------------------------------------- echo ''; // ----------------------------------------------------- // Champs du formulaire // ----------------------------------------------------- echo '
'; echo 'N° : '; echo '' .$idPrd. ''; echo ''; echo '
Nom : '; echo '' .$nomPrd. ''; echo ''; echo '
Image : '; echo ''; echo ''; echo '
Statut : '; switch ($statusPrd) { case 0: $libStatusPrd ="Désactivé"; break; case 1: $libStatusPrd ="Activé"; break; } echo '' .$libStatusPrd. ''; echo ''; echo '
'; // ----------------------------------------------------- // Bouton submit // ----------------------------------------------------- echo '
'; if (!isset($_POST["submit"])) { if ($supprPrd=='1') { echo 'Supression définitive'; echo 'Désactivation'; } else { echo 'Supression définitive'; echo 'Désactivation'; } echo '
'; echo '
'; } else { echo ''; echo ' '; echo 'Retour'; echo ''; } // besoin car title fous la merde echo '



'; echo '
'; //zone validate echo '
'; echo '
'; // zoneFormModales } else {include ("./adminInclude/redirectionAdmin.php"); } ?>