Add AJAX functionality for event registration management and QR code scanning
This commit introduces new AJAX endpoints for managing event registrations, including a dedicated script for handling QR code scans. The new functionality validates user sessions and event access, providing JSON responses for both successful and error states. Additionally, it enhances the overall structure of the event management system by integrating various helper functions for improved maintainability and user experience.
This commit is contained in:
28
inc_tableau_inscriptions_gestion.php
Normal file
28
inc_tableau_inscriptions_gestion.php
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
<?php
|
||||
|
||||
include_once('php/inc_fx_modifierinscriptions.php');
|
||||
include_once('php/inc_fx_memberships.php');
|
||||
include_once('php/inc_fx_promoteur.php');
|
||||
include_once('php/inc_fx_inscriptions_mobile.php');
|
||||
require_once('superadm/php/inc_manager.php');
|
||||
|
||||
global $objDatabase, $vDomaine, $strLangue;
|
||||
|
||||
$intEveId = 0;
|
||||
if (isset($_GET['promoteur_eve_id'])) {
|
||||
$intEveId = fxInscrMobileParseEveId($_GET['promoteur_eve_id']);
|
||||
}
|
||||
|
||||
if ($intEveId === 0) {
|
||||
if ($strLangue === 'fr') {
|
||||
echo 'Une erreur quelconque est survenue.';
|
||||
} else {
|
||||
echo 'A generic error occurred.';
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
echo '<div class="inscr-mobile-page">';
|
||||
fxInscrMobileRun($intEveId, $strLangue);
|
||||
echo '</div>';
|
||||
Reference in New Issue
Block a user