';
@@ -1361,6 +1371,16 @@ function fxInscrGestionRenderFiche($intEveId, $strLangue, $strBaseUrl, $arrReq,
fxInscrGestionRenderKvListOpen();
fxInscrGestionRenderKvRow(fxInscrGestionT('inscr_gestion_epreuve'), fxInscrGestionEpreuveLabel($arrRow['epr_id'], $strLangue));
fxInscrGestionRenderKvRow(fxInscrGestionT('inscr_gestion_type'), $strDetailsType);
+ if ($blnCancelled) {
+ // MSIN-4405 — Detail de l'annulation (transfere / modifie / annule) derive en lecture seule.
+ $strCause = fxGetAnnulationCause($arrRow['pec_id_original'], $arrRow['pec_actif']);
+ fxInscrGestionRenderKvRow(
+ fxInscrGestionT('inscr_gestion_annulation_titre'),
+ ''
+ . fxInscrGestionEsc(fxInscrGestionT('inscr_gestion_statut_' . $strCause)) . '',
+ true
+ );
+ }
fxInscrGestionRenderKvRow(fxInscrGestionT('inscr_gestion_modified'), fxCheckMAJ($arrRow['pec_id_original'], $intParId, $strLangue), true);
fxInscrGestionRenderFicheProfileKvRows($arrRow, $strLangue);
fxInscrGestionRenderKvListClose();
diff --git a/php/inc_fx_promoteur.php b/php/inc_fx_promoteur.php
index eb5c93f..a6512ab 100644
--- a/php/inc_fx_promoteur.php
+++ b/php/inc_fx_promoteur.php
@@ -229,7 +229,7 @@ function fxShowRecherche($str_code, $int_promoteur_id, $blnDon, $strLangue, $int
$strWhere .= ' AND e.is_cancelled = 0 AND e.pec_actif = 1'; // MSIN-3522
}
- $sqlInscriptionsParPage = 'select p.no_bib,p.no_bib_remis,p.no_bib_remis_date,p.no_bib_remis_par, p.par_id, p.par_equipe, p.par_prenom, p.par_nom, e.pec_id_original, e.epr_id, e.eve_id, e.pec_id, e.is_cancelled, p.rol_id, e.no_commande, e.no_panier, e.no_equipe, e.pec_equipe from resultats_epreuves_commandees e, resultats_participants p where ' . $strWhere . ' and p.pec_id = e.pec_id_original group by e.pec_id_original';
+ $sqlInscriptionsParPage = 'select p.no_bib,p.no_bib_remis,p.no_bib_remis_date,p.no_bib_remis_par, p.par_id, p.par_equipe, p.par_prenom, p.par_nom, e.pec_id_original, e.epr_id, e.eve_id, e.pec_id, e.is_cancelled, e.pec_actif, p.rol_id, e.no_commande, e.no_panier, e.no_equipe, e.pec_equipe from resultats_epreuves_commandees e, resultats_participants p where ' . $strWhere . ' and p.pec_id = e.pec_id_original group by e.pec_id_original';
$tabInscriptionsParPage = $objDatabase->fxGetResults($sqlInscriptionsParPage);
}
@@ -558,7 +558,7 @@ function fxShowRechercheinscription($str_code, $int_promoteur_id, $blnDon, $strL
$strWhere .= ' AND e.is_cancelled = 0 AND e.pec_actif = 1'; // MSIN-3522
}
- $sqlInscriptionsParPage = 'select p.no_bib,p.no_bib_remis,p.no_bib_remis_date,p.no_bib_remis_par, p.par_id, p.par_equipe, p.par_prenom, p.par_nom, e.pec_id_original, e.epr_id, e.eve_id, e.pec_id, e.is_cancelled, p.rol_id, e.no_commande, e.no_panier, e.no_equipe, e.pec_equipe from resultats_epreuves_commandees e, resultats_participants p where ' . $strWhere . ' and p.pec_id = e.pec_id_original group by e.pec_id_original';
+ $sqlInscriptionsParPage = 'select p.no_bib,p.no_bib_remis,p.no_bib_remis_date,p.no_bib_remis_par, p.par_id, p.par_equipe, p.par_prenom, p.par_nom, e.pec_id_original, e.epr_id, e.eve_id, e.pec_id, e.is_cancelled, e.pec_actif, p.rol_id, e.no_commande, e.no_panier, e.no_equipe, e.pec_equipe from resultats_epreuves_commandees e, resultats_participants p where ' . $strWhere . ' and p.pec_id = e.pec_id_original group by e.pec_id_original';
$tabInscriptionsParPage = $objDatabase->fxGetResults($sqlInscriptionsParPage);
}
@@ -2034,15 +2034,27 @@ function fxShowColumnPromoteur($arrColonnes, $arrListeParticipants, $x, $strLang
case 'management':
$strCode = fxGetEvenementsUrl($arrListeParticipants[$x]['eve_id']);
+ $strCancelBadge = '';
if ($arrListeParticipants[$x]['is_cancelled'] == '' || $arrListeParticipants[$x]['is_cancelled'] == '0') {
$strStyleEdit = $strStyleCancel = '';
$strStyleRetablir = ' d-none';
} else {
$strStyleEdit = $strStyleCancel = ' d-none';
$strStyleRetablir = '';
+
+ // MSIN-4405 — Cause de l'annulation derivee en lecture seule (transfere / modifie / annule).
+ $strCause = fxGetAnnulationCause($arrListeParticipants[$x]['pec_id_original'], isset($arrListeParticipants[$x]['pec_actif']) ? $arrListeParticipants[$x]['pec_actif'] : null);
+ if ($strCause == 'transfert') {
+ $strBadgeLbl = ($strLangue == 'fr') ? 'Transférée' : 'Transferred';
+ } elseif ($strCause == 'modif') {
+ $strBadgeLbl = ($strLangue == 'fr') ? 'Modifiée (changement d\'épreuve)' : 'Modified (race change)';
+ } else {
+ $strBadgeLbl = ($strLangue == 'fr') ? 'Annulée' : 'Cancelled';
+ }
+ $strCancelBadge = '' . htmlspecialchars($strBadgeLbl, ENT_QUOTES, 'UTF-8') . '
';
}
- $strAffichage = '
+ $strAffichage = $strCancelBadge . '