99 lines
2.7 KiB
PHP
Executable File
99 lines
2.7 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$resConn='';
|
|
$result=array();
|
|
|
|
include_once ($includePath. "/req/14-init.mailMsgList.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Mails admin : soit lors du passage de la commande / soit workflow
|
|
// -----------------------------------------------------
|
|
echo '<div style="width:95%; margin:auto; padding:1px; background:grey; text-align:center" >';
|
|
echo '<span class="libChampsWebmaster" style="font-size:1rem; padding:5px; color:black; margin:auto;" >';
|
|
|
|
// -----------------------------------------------------
|
|
// trouver une commande de test / la construire
|
|
// -----------------------------------------------------
|
|
$oldEtat="Pn";
|
|
$idCde=1;
|
|
$nbArt=1;
|
|
$idPaysFact=1;
|
|
$idPaysLiv=1;
|
|
$reqSelect="SELECT idCde, idMail FROM `commande` limit 1 ;";
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
$result=$resConn->fetch(PDO::FETCH_ASSOC);
|
|
$idCde=$result['idCde'];
|
|
$idMail=$result['idMail'];
|
|
}
|
|
$libellesArt="exemple";
|
|
$libModePaie="exemple";
|
|
$libelleML="exemple";
|
|
$libelleMP="exemple";
|
|
$libModeLiv="exemple";
|
|
$suite="exemple";
|
|
|
|
include ("../pages/panier/_recap/recap.reqSelectCde.php");
|
|
$mailTotalCde=$totalTtcCde;
|
|
|
|
switch ($affMails) {
|
|
case '20':
|
|
$theIdEtat="At";
|
|
$status ="Attente";
|
|
break;
|
|
|
|
case '21':
|
|
$theIdEtat="Py";
|
|
$status ="Payée";
|
|
break;
|
|
|
|
case '22':
|
|
$status ="Envoyée";
|
|
$theIdEtat="En";
|
|
break;
|
|
|
|
case '23':
|
|
$theIdEtat="An";
|
|
$status ="Annulée";
|
|
break;
|
|
|
|
case '24':
|
|
$theIdEtat="Pe";
|
|
$status ="Perdue";
|
|
break;
|
|
|
|
case '25':
|
|
$theIdEtat="Rb";
|
|
$status ="Remboursée";
|
|
break;
|
|
|
|
case '26':
|
|
$status ="En préparation";
|
|
$theIdEtat="EP";
|
|
break;
|
|
|
|
case '27':
|
|
$status ="Retournée";
|
|
$theIdEtat="RT";
|
|
break;
|
|
}
|
|
|
|
include ("../pages/clients/client.reqSelectFromMail.php");
|
|
if ($affMails=='20') {include ("../_include/_mail/mail_businessAtt.php"); }
|
|
else {
|
|
if ($affMails=='21') {
|
|
include ("../_include/_mail/mail_businessPayee.php");
|
|
}
|
|
else include ("./cdes/listeCde/makeAdminMail.php");
|
|
}
|
|
echo '<span >' .$message_business. '</span>';
|
|
echo '</span>';
|
|
echo '</div>';
|
|
|
|
if (isset($debug[1]) && $debug[1] == '1') {
|
|
include_once ($includePath. "/req/14-init.mailMsgList.php");
|
|
For ($n=0; $n<count($mailDesc); $n++) {
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['mailDesc['.$n.']' => $mailDesc[$n], 'mailMsg['.$n.']' => $mailMsg[$n], 'mailID['.$n.']' => $mailID[$n] ], 'mailsRecus.form.php');}
|
|
}
|
|
}
|
|
?>
|