From 8f491731410b5c5cb8d2682052b62c2d0edc81fc Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 17 Jun 2026 14:03:58 -0400 Subject: [PATCH] Add new functionality for managing event V2 in promoteur panel This commit introduces a new section in the promoteur panel for managing event V2, including a dedicated function to display event details and readonly quantities. The UI has been updated with new CSS styles for better layout and presentation. Additionally, a new navigation item has been added for accessing the V2 management interface. The version code has been incremented to 4.72.649 to reflect these changes. --- compte.php | 4 +++ css/style.css | 11 +++++++ inc_tableau_epreuves_v2.php | 50 +++++++++++++++++++++++++++++++ inc_tableau_promoteur.php | 19 ++++++++++-- php/inc_fx_promoteur.php | 49 ++++++++++++++++++++++++++++++ php/inc_settings.php | 2 +- sql/MSIN-4379-menuepreuves-v2.sql | 12 ++++++++ 7 files changed, 143 insertions(+), 4 deletions(-) create mode 100644 inc_tableau_epreuves_v2.php create mode 100644 sql/MSIN-4379-menuepreuves-v2.sql diff --git a/compte.php b/compte.php index 9eb8964..b3ab566 100644 --- a/compte.php +++ b/compte.php @@ -720,6 +720,10 @@ require_once("inc_header.php"); $blnBoutonRetour = false; include("inc_tableau_epreuves.php"); break; + case 'compte_inc_tableau_epreuves_v2': + $blnBoutonRetour = false; + include("inc_tableau_epreuves_v2.php"); + break; case 'compte_inc_tableau_liste_attente': diff --git a/css/style.css b/css/style.css index 7903e63..96e1d33 100644 --- a/css/style.css +++ b/css/style.css @@ -1053,6 +1053,17 @@ ul.ms1-menu-compte li a:hover, ul.ms1-menu-compte li a:active { min-width:0; } +.epr-gestion-v2-list{ + display:flex; + flex-direction:column; + gap:16px; + padding:12px 0; +} + +.epr-gestion-v2-item .epr-header{ + margin-bottom:8px; +} + .epr-gestion-panel{ display:flex; flex-direction:column; diff --git a/inc_tableau_epreuves_v2.php b/inc_tableau_epreuves_v2.php new file mode 100644 index 0000000..94536cc --- /dev/null +++ b/inc_tableau_epreuves_v2.php @@ -0,0 +1,50 @@ + + + + + +

+ + + + + + + + fxGetVar($sqlQteLimitee); diff --git a/php/inc_fx_promoteur.php b/php/inc_fx_promoteur.php index 887b8d2..376ff75 100644 --- a/php/inc_fx_promoteur.php +++ b/php/inc_fx_promoteur.php @@ -2999,6 +2999,55 @@ function renderBibAssignActions($tabBibAssignments, $strLangue, $infoBib, $blnAu return ob_get_clean(); } +/** + * Page promoteur — Gestion des épreuves V2 (rollout superadm). + * Une carte par épreuve : quantités lecture seule + liste d'attente. + */ +function fxShowGestionEpreuvesV2($int_eve_id, $strLangue) { + global $objDatabase; + + $sqlEpreuves = "SELECT * FROM inscriptions_epreuves WHERE eve_id = " . intval($int_eve_id) . " AND epr_actif = 1 ORDER BY epr_id"; + $tabEpreuves = $objDatabase->fxGetResults($sqlEpreuves); + + ob_start(); + ?> +
+

+
+ +
+ +
+
+ + (' . $epr_id . ')'; + ?> + +
+
+ +
+
+ +
+