示例#1
0
 if ($pg_admin == "lister-arti") {
     if ($suparti) {
         $supArti = new Article();
         $supArti->numarticle = $suparti;
         $supArti->supprimerArti();
         $mes = "L\\'article est supprimé !";
     }
     /* ************* Voir/modifier une commande ********************* */
 } else {
     if ($pg_admin == "modifier-com") {
         if ($action == "modifier") {
             $modifCom = new Commande();
             $modifCom->numcom = $numcom;
             $modifCom->etat = $selectEtat;
             $modifCom->suivi_coliposte = $textColiposte;
             $modifCom->modifierCommandeAdmin();
             $modifCom->infosCommande();
             // envoi du mail
             if ($selectEtat == "2") {
                 //commande validee (a reception du cheque / ou du virement)
                 $leClient = new Client();
                 $leClient->numclient = $modifCom->numclient;
                 $leClient->infosClient();
                 EnvoiMailCommandeChequeValidee($numcom, $leClient->email, "");
                 $mes = "La commande est modifiée ! Un mail de confirmation de la réception du chèque a été envoyé au client";
             } else {
                 if ($selectEtat == "3") {
                     // commande expediee
                     $leClient = new Client();
                     $leClient->numclient = $modifCom->numclient;
                     $leClient->infosClient();