Files
ms1inscription-v5/inc_tableau_promoteuravantMSIN-3880.php
2026-05-13 09:43:32 -04:00

107 lines
3.6 KiB
PHP

<?php
// debut MSIN-3880 2024-02-08 test de tag
include_once("php/inc_fx_modifierinscriptions.php");
include_once("php/inc_fx_memberships.php");
include_once("php/inc_fx_promoteur.php");
require_once('superadm/php/inc_manager.php');
global $objDatabase, $vDomaine, $strLangue;
$intEveId = 0;
$blnDon = false;
if ($strLangue == 'fr') {
$strPage = '/compte';
} else {
$strPage = '/account';
}
if (isset($_GET['promoteur_eve_id'])) {
$intEveId = base64_decode(urldecode($_GET['promoteur_eve_id']));
$arrEvenement = fxGetEvenementsId($intEveId);
//$tabEvenement['general'] = $arrEvenement;
}
// recalculer les catégorie
if (isset($_REQUEST['resetcategorie'])) {
fxregles_niveau_updateall($intEveId);
}
// Annuler/retablir une inscriptions dans le tableau du promoteur
if (isset($_POST['btn_cancel_event_promo'])) {
$int_pec_id = $_POST['pec_id_original'];
$int_epr_id = $_POST['epr_id'];
$tabEpreuve = fxGetEpreuve($int_epr_id);
fxAnnulerRetablirInscription($tabEpreuve, $int_pec_id);
}
if ($intEveId != 0) {
$arrEvenement = fxGetEvenementsId($intEveId);
//$tabEvenement['general'] = $arrEvenement;
?>
<div class="card box_participant">
<?php
if($strLangue == 'fr')
$strCode = 'compte/';
else
$strCode = 'account/';
$strBibCode = $strCode;
$strCode .= $_GET['code'];
if ($arrEvenement['te_id'] == 9) {
$blnDon = true;
}
$abonnement=false;
if ($arrEvenement['te_id'] == 13) {
$abonnement = true;
}
$tabRapports = fxGetMenussuperadm(0, 0, 1, $intEveId);
fxShowRapports($tabRapports, $strLangue, $intEveId);
if (!$blnDon) {
// afficher l'outil de no. equipe/no. dossard
fxShowBibTool2($strBibCode, $intEveId, $strLangue);
$sqlQteLimitee = "SELECT eve_qte_modifiable FROM inscriptions_evenements WHERE eve_id = " . intval($intEveId);
$qryQteLimitee = $objDatabase->fxGetVar($sqlQteLimitee);
if ($qryQteLimitee == 1)
fxShowQuantites($intEveId, $strLangue);
}
if ($arrEvenement['eve_categorie_auto']==1) {
fxShowreglesniveau($intEveId, $strLangue);
}
echo $strRechercheForm = fxShowRecherche($strCode, $intEveId, $blnDon, $strLangue, $intEveId,$abonnement);
$strTeamBibModal = '
<div class="modal fade" id="modal_teammates" tabindex="-1" aria-labelledby="modal_teammates_label" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modal_teammates_label">Équipe</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="' . afficheTexte('modal_btn-close', 0, 1, 1) . '">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
Coéquipiers
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary rounded-0" data-dismiss="modal">' . afficheTexte('modal_btn-close', 0, 1, 1) . '</button>
</div>
</div>
</div>
</div>
';
?>
</div>
<?php
} else {
if ($strLangue == 'fr')
echo "Une erreur quelconque est survenue.";
else
echo "A generic error occurred.";
}