From 99aa63f0e16e5e82f2858c5535e3ee0d7a6c6425 Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 22 Jul 2026 07:02:00 -0400 Subject: [PATCH] =?UTF-8?q?MSIN-3487=20=E2=80=94=20Add=20temporary=20UI=20?= =?UTF-8?q?for=20managing=20additional=20event=20fields,=20including=20a?= =?UTF-8?q?=20form=20for=20entering=20and=20saving=20result=20links.=20Imp?= =?UTF-8?q?lement=20feedback=20messages=20for=20link=20status=20and=20enha?= =?UTF-8?q?nce=20navigation=20with=20new=20buttons.=20Increment=20version?= =?UTF-8?q?=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superadm/php/inc_form.php | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/superadm/php/inc_form.php b/superadm/php/inc_form.php index 01f0a7a..608647c 100644 --- a/superadm/php/inc_form.php +++ b/superadm/php/inc_form.php @@ -153,6 +153,9 @@ if ($strAction == 'mod') { onclick="if (window.jQuery) { jQuery('#chronotrackApiCollapse').collapse('show'); }"> ChronoTrack + + Champs supplémentaires + Rapports @@ -1121,7 +1124,57 @@ if ($strAction == 'mod') { } if ($blnIsEventModForm) { + // MSIN-3487 — UI temporaire : lien résultats (table inscriptions_evenements_extra) + require_once dirname(__FILE__) . '/../../php/inc_fx_eve_extra.php'; + + $strEveExtraFlash = ''; + if (isset($_POST['btn_eve_extra_save'])) { + $strUrlPosted = isset($_POST['eve_resultats_url']) ? trim((string) $_POST['eve_resultats_url']) : ''; + if (fxEveExtraSetResultatsUrl($intEveIdForm, $strUrlPosted)) { + $strEveExtraFlash = ($strUrlPosted === '') + ? 'Lien résultats effacé (fallback ms1.ca).' + : 'Lien résultats enregistré.'; + } else { + $strEveExtraFlash = 'Erreur à l\'enregistrement du lien résultats.'; + } + } + + $strEveResultatsUrl = (string) (fxEveExtraGetResultatsUrl($intEveIdForm) ?? ''); + $strEveQrPreview = fxKcEveResultatsQrUrl($intEveIdForm); + // $intMenuActuel : figé en tête de fiche (évite le $tabResults écrasé par les sous-listes) + $strEveExtraFormAction = $strhomeclient + . '?t=' . urlencode(base64_encode($intMenuActuel)) + . '&a=mod&id=' . intval($intEveIdForm); ?> +

Champs supplémentaires

+

MSIN-3487 — temporaire (superadm). Lien public des résultats de course.

+ +
+ +
+
+ +
+ + + QR court : + + — si vide → https://ms1.ca + +
+
+
+
+ +
+
+
+

Rapport de l'événement