0, (SELECT c.com_login FROM inscriptions_comptes c WHERE a.com_id = c.com_id), '') AS usager FROM inscriptions_panier_acheteurs a, inscriptions_panier_statuts s WHERE s.sta_id = a.sta_id AND a.ach_id = " . intval($_GET['ach_id']);
$recCommandes = $db->fxGetRow($sqlCommandes);
if ($recCommandes == null) {
header('Location: commandes.php');
exit;
}
}
$sqlStatuts = "SELECT sta_id, sta_nom_fr FROM inscriptions_panier_statuts WHERE sta_actif = 1 AND sta_id >= 1 ORDER BY sta_nom_fr";
$recStatuts = $db->fxGetResults($sqlStatuts);
$sqlProvinces = "SELECT pro_id, pro_nom_fr FROM inscriptions_provinces ORDER BY pro_nom_fr";
$recProvinces = $db->fxGetResults($sqlProvinces);
$sqlPays = "SELECT pay_id, pay_nom_fr FROM inscriptions_pays ORDER BY pay_nom_fr";
$recPays = $db->fxGetResults($sqlPays);
?>
// ⚠️ CAPTURE_ID non fourni côté serveur.
//
';
return;
}
// Contexte de remboursement mutualisé (calculs + détails PayPal)
$refundCtx = fxRefundComputeContext($recCommandes, intval($recCommandes['eve_id'] ?? 0));
$paypaldetails = $refundCtx['paypaldetails'];
// Auteur du remboursement (Super Admin connecté) : alimente l'encart "Ajouté par".
// Côté promoteur, l'appelant fournira plutôt $_SESSION["com_info"].
$refundAuteur = trim(($_SESSION["usa_info"]["com_prenom"] ?? '') . ' ' . ($_SESSION["usa_info"]["com_nom"] ?? ''));
// Formulaire de remboursement (rendu mutualisé : voir inc_fx_paypal.php).
// L'ancien bloc de debug echosl() (n° commande, ajouté par, max...) est désormais
// intégré proprement dans l'encart d'infos du formulaire mutualisé.
echo fxRenderRefundForm($recCommandes, $refundToken, $refundCtx, $vDomaine, $refundAuteur);
?>
AjouterModifier une commande
Détails de la commande
PAYPAL
// ⚠️ CAPTURE_ID non fourni côté serveur.
//
Détails PAYPAL
fxEscape($_GET['TrasactionID']) . "%'";
}
if (!empty($_GET['txt_commande'])) {
$where .= " AND a.no_commande LIKE '%" . $db->fxEscape($_GET['txt_commande']) . "%'";
$group = 0;
}
if (!empty($_GET['txt_no_panier'])) {
$where .= " AND a.no_panier LIKE '%" . $db->fxEscape($_GET['txt_no_panier']) . "%'";
$group = 0;
}
if (!empty($_GET['txt_prenom'])) {
$where .= " AND a.com_prenom LIKE '%" . $db->fxEscape($_GET['txt_prenom']) . "%'";
}
if (!empty($_GET['txt_nom'])) {
$where .= " AND a.com_nom LIKE '%" . $db->fxEscape($_GET['txt_nom']) . "%'";
}
if (!empty($_GET['txt_courriel'])) {
$where .= " AND a.com_courriel LIKE '%" . $db->fxEscape($_GET['txt_courriel']) . "%'";
}
if (!empty($_GET['TransactionID'])) {
$where .= " AND a.TransactionID LIKE '%" . $db->fxEscape($_GET['TransactionID']) . "%'";
}
if ($group == 1){
//$group = " GROUP BY a.no_commande";
$group = '';}
else{
$group = '';}
$sqlCommandes = "SELECT SQL_CALC_FOUND_ROWS (SELECT e.eve_nom_fr FROM inscriptions_evenements e WHERE e.eve_id = a.eve_id) AS evenement,a.ach_id, a.no_commande, a.TransactionID, a.com_prenom, a.com_nom, a.com_courriel, a.no_panier, a.ach_maj, s.sta_id, s.sta_nom_fr, a.ach_total, a.pai_id, a.ach_lang, a.com_id, IF(a.com_id <> 0, (SELECT c.com_login FROM inscriptions_comptes c WHERE a.com_id = c.com_id), '') AS usager,a.paypal_source,a.paypal_card_brand,a.paypal_card_last_digits FROM inscriptions_panier_acheteurs a, inscriptions_panier_statuts s WHERE s.sta_id = a.sta_id $where $group ORDER BY a.ach_maj DESC, a.no_commande DESC";
$sqlCommandes .= $limit;
$recCommandes = $db->fxGetResults($sqlCommandes);
$nbTotal = $db->fxGetVar("SELECT FOUND_ROWS()");
//$nbTotal = 10000;
$sqlStatuts = "SELECT sta_id, sta_nom_fr FROM inscriptions_panier_statuts WHERE sta_actif = 1 ORDER BY sta_nom_fr";
$recStatuts = $db->fxGetResults($sqlStatuts);
$sqlEvenements = "SELECT eve_id, eve_nom_fr FROM inscriptions_evenements WHERE DATE_SUB(CURDATE(),INTERVAL 3 MONTH) <= eve_date_fin ORDER BY eve_nom_fr";
$recEvenements = $db->fxGetResults($sqlEvenements);
?>
Liste des commandes
| # | No commande | No panier | Nom, Prénom | Statut | TransactionID | Date de création | courriel | total | usager | paiement | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
0) { ?> | 1) { ?>facture | renvoyer confirmation | « précédent | suivant » | ||||||||
|
Il n'y a aucune commande pour le moment.
|
0) { echo fxShowPaging('commandes.php?' . $strQueryPager, $nbTotal, $nb, $page); } } ?>