Files
ms1inscription-v5/ajax_promoteur.php
stephan 2cb6a59c96 Implement participant status management in mobile registration; update version code
This commit introduces a new feature for managing participant status within the mobile registration interface. It includes updates to the PHP functions for handling status changes, new JavaScript for dynamic updates, and corresponding CSS styles for improved layout. The version code is incremented to 4.72.673 to reflect these enhancements, further optimizing the user experience in managing participant registrations.
2026-06-18 16:22:02 -04:00

62 lines
1.8 KiB
PHP

<?php
session_start();
require_once "php/inc_fonctions.php";
include_once("php/inc_fx_modifierinscriptions.php");
require_once "php/inc_fx_promoteur.php";
require_once "php/inc_fx_messages.php";
global $vDomaine;
$strAction = $intEvenement = $intNewNoBib = $intEpreuveCommandee = $intEpreuve = $intPartipcipant = $intQuantite = $strLangue = $strStatutCourse = '';
if (isset($_REQUEST['a'])) {
$strAction = $_REQUEST['a'];
}
if (isset($_REQUEST['eve_id'])) {
$intEvenement = $_REQUEST['eve_id'];
}
if (isset($_REQUEST['new_no_bib'])) {
$intNewNoBib = $_REQUEST['new_no_bib'];
}
if (isset($_REQUEST['pec_id'])) {
$intEpreuveCommandee = $_REQUEST['pec_id'];
}
if (isset($_REQUEST['epr_id'])) {
$intEpreuve = $_REQUEST['epr_id'];
}
if (isset($_REQUEST['par_id'])) {
$intPartipcipant = $_REQUEST['par_id'];
}
if (isset($_REQUEST['qte'])) {
$intQuantite = $_REQUEST['qte'];
}
if (isset($_REQUEST['lang'])) {
$strLangue = $_REQUEST['lang'];
}
if (isset($_REQUEST['par_statut_course'])) {
$strStatutCourse = $_REQUEST['par_statut_course'];
}
$vPage = 'compte.php';
$vtexte_page = obtenirTextepage($vPage, $strLangue, 2);
$tabRetour = array();
switch($strAction) {
case 'qte':
$tabRetour = fxUpdateQuantites($intEpreuve, $intQuantite, $strLangue);
break;
case 'no_equipe':
case 'no_bib':
$tabRetour = fxSetBibManuel($strAction, $intEvenement, $intNewNoBib, $intEpreuveCommandee, $intEpreuve, $intPartipcipant, $strLangue);
break;
case 'par_statut_course':
$tabRetour = fxSetParStatutCourse($intPartipcipant, $strStatutCourse, $strLangue);
break;
case 'teammates':
$tabRetour = fxShowTeammates($intEvenement, $intEpreuve, $intEpreuveCommandee);
break;
}
unset($_SESSION['msg']);
echo json_encode($tabRetour);