|
|
|
|
@ -367,6 +367,9 @@ function fxInscrGestionFallbackTexte($strClef, $strLangue) {
|
|
|
|
|
'inscr_gestion_statut_transfert' => $blnFr ? 'Transférée' : 'Transferred',
|
|
|
|
|
'inscr_gestion_back_bib' => $blnFr ? 'Retour aux dossards' : 'Back to bibs',
|
|
|
|
|
'inscr_gestion_back_prev' => $blnFr ? 'Retour' : 'Back',
|
|
|
|
|
// MSIN-4401 — Sortie de /mobile vers hub ou Mon compte (usagers avec plus de droits).
|
|
|
|
|
'inscr_gestion_back_full_account' => $blnFr ? 'Retour au tableau de bord' : 'Back to dashboard',
|
|
|
|
|
'inscr_gestion_back_mon_compte' => $blnFr ? 'Retour à Mon compte' : 'Back to My account',
|
|
|
|
|
'inscr_gestion_chk_cancelled' => $blnFr
|
|
|
|
|
? 'Montrer les inscriptions annulées ou transférées'
|
|
|
|
|
: 'Show cancelled or transferred registrations',
|
|
|
|
|
@ -500,6 +503,74 @@ function fxInscrGestionRenderNavBack($strUrl, $strLabel) {
|
|
|
|
|
echo '</a>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* MSIN-4401 — Sur /mobile, proposer une sortie vers le hub (ou Mon compte)
|
|
|
|
|
* si l'usager a plus que l'outil inscriptions seul.
|
|
|
|
|
*/
|
|
|
|
|
function fxInscrGestionShouldShowFullAccountLink($intComId) {
|
|
|
|
|
if (!fxInscrGestionIsEntry()) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$intComId = intval($intComId);
|
|
|
|
|
if ($intComId <= 0) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!function_exists('fxPromoteurHubIsAvailable')) {
|
|
|
|
|
require_once __DIR__ . '/inc_fx_promoteur_hub.php';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (fxPromoteurHubIsAvailable($intComId)) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return fxInscrGestionUserHasPromoteurMenu($intComId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** MSIN-4401 — URL hub si dispo, sinon Mon compte. */
|
|
|
|
|
function fxInscrGestionFullAccountUrl($strLangue) {
|
|
|
|
|
global $vDomaine;
|
|
|
|
|
|
|
|
|
|
$strLangue = ($strLangue === 'en') ? 'en' : 'fr';
|
|
|
|
|
$intComId = intval($_SESSION['com_id'] ?? 0);
|
|
|
|
|
|
|
|
|
|
if (!function_exists('fxPromoteurHubIsAvailable')) {
|
|
|
|
|
require_once __DIR__ . '/inc_fx_promoteur_hub.php';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($intComId > 0 && fxPromoteurHubIsAvailable($intComId)) {
|
|
|
|
|
return fxPromoteurHubUrl($strLangue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $vDomaine . ($strLangue === 'en' ? '/account' : '/compte');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** MSIN-4401 — Bouton « Retour au tableau de bord / Mon compte » (entrée /mobile). */
|
|
|
|
|
function fxInscrGestionRenderFullAccountLink($strLangue) {
|
|
|
|
|
$intComId = intval($_SESSION['com_id'] ?? 0);
|
|
|
|
|
if (!fxInscrGestionShouldShowFullAccountLink($intComId)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$strLangue = ($strLangue === 'en') ? 'en' : 'fr';
|
|
|
|
|
$strUrl = fxInscrGestionFullAccountUrl($strLangue);
|
|
|
|
|
|
|
|
|
|
if (!function_exists('fxPromoteurHubIsAvailable')) {
|
|
|
|
|
require_once __DIR__ . '/inc_fx_promoteur_hub.php';
|
|
|
|
|
}
|
|
|
|
|
$blnHub = ($intComId > 0 && fxPromoteurHubIsAvailable($intComId));
|
|
|
|
|
$strLabel = $blnHub
|
|
|
|
|
? fxInscrGestionT('inscr_gestion_back_full_account')
|
|
|
|
|
: fxInscrGestionT('inscr_gestion_back_mon_compte');
|
|
|
|
|
|
|
|
|
|
echo '<div class="inscr-gestion-full-account">';
|
|
|
|
|
echo '<a class="btn btn-outline-secondary btn-sm rounded-0" href="' . fxInscrGestionEsc($strUrl) . '">';
|
|
|
|
|
echo '<i class="fa fa-th-large mr-2" aria-hidden="true"></i>' . fxInscrGestionEsc($strLabel);
|
|
|
|
|
echo '</a>';
|
|
|
|
|
echo '</div>';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function fxInscrGestionRenderPageHead($strTitle, $strSub = '') {
|
|
|
|
|
echo '<div class="inscr-gestion-page-head">';
|
|
|
|
|
echo '<h1 class="inscr-gestion-page-title">' . fxInscrGestionEsc($strTitle) . '</h1>';
|
|
|
|
|
|