This commit introduces the MS1 loader functionality across various scripts, enhancing the user experience during loading processes. It integrates the loader into form submissions and AJAX calls, ensuring consistent feedback for users. Additionally, the preloader UI is updated to utilize the new loader design, improving visual consistency. The version code is incremented to reflect these changes.
534 lines
29 KiB
PHP
534 lines
29 KiB
PHP
<?php
|
|
|
|
global $vPaypal_devise,$vblnEnvironementDev,$vDomaine, $vClient, $strCode, $strLangue, $vRepertoireFichiers,$vPaypaladv_SANDBOX,$favicon;
|
|
|
|
fxAdminTextEditModeHandleRequest();
|
|
fxAdminPermInspectModeHandleRequest();
|
|
|
|
$strQueryString = "";
|
|
|
|
if ($_SERVER['QUERY_STRING'] != "") { // sortir les données du query string
|
|
$strQueryString .= '?' . $_SERVER['QUERY_STRING'];
|
|
}
|
|
|
|
if (isset($_SESSION['no_panier'])) {
|
|
$ref_no_panier = $_SESSION['no_panier'];
|
|
$mem_panierinfo = fxNbItemsPanier($_SESSION['no_panier']);
|
|
$intNbItems = $mem_panierinfo['nbitem'];
|
|
|
|
if (isset($tabEvenement['general']['eve_id'])) {
|
|
// (sl) valider le multi evenement - VALIDÉ par JS
|
|
if (intval($tabEvenement['general']['eve_id']) != intval($mem_panierinfo['eve_id']) /*&& $tabEvenement['general']['eve_id'] != $mem_panierinfo['eve_id_membership'] && $tabEvenement['general']['eve_id_membership'] != $mem_panierinfo['eve_id']*/) {
|
|
if ($strLangue == 'fr') {
|
|
$strLien = "/panier/somaire/" . $mem_panierinfo['eve_label_url'];
|
|
$_SESSION['msg'] = "e123";
|
|
} else {
|
|
$strLien = "/cart/somaire/" . $mem_panierinfo['eve_label_url'];
|
|
$_SESSION['msg'] = "e523";
|
|
}
|
|
|
|
header('Location: ' . $vDomaine . $strLien);
|
|
exit;
|
|
}
|
|
}
|
|
}
|
|
|
|
// v?rifier les limitaztions de langue
|
|
if ($strLangue == 'fr') {
|
|
$strPaypalLangue="&locale=fr_FR";
|
|
$strLabel = 'English';
|
|
$strLien = $strLienEn . strstr($_SERVER['REQUEST_URI'], '?');
|
|
|
|
if (isset($tabEvenement) && !in_array('en', explode(',', $tabEvenement['general']['eve_langue']))) {
|
|
$strLabel = '';
|
|
$strLien = '';
|
|
}
|
|
} else {
|
|
$strPaypalLangue="";
|
|
$strLabel = 'Français';
|
|
$strLien = $strLienFr . strstr($_SERVER['REQUEST_URI'], '?');
|
|
|
|
if (isset($tabEvenement) && !in_array('fr', explode(',', $tabEvenement['general']['eve_langue']))) {
|
|
$strLabel = '';
|
|
$strLien = '';
|
|
}
|
|
}
|
|
|
|
if (isset($tabEvenement) && !in_array($strLangue, explode(',', $tabEvenement['general']['eve_langue']))) {
|
|
header('Location: ' . $vDomaine . $strLien);
|
|
exit;
|
|
}
|
|
|
|
$strEvenementURL = '';
|
|
|
|
if (isset($tabEvenement)) {
|
|
$strEvenementURL = $tabEvenement['general']['eve_label_url'];
|
|
// V?rifier les droits d'accès à cet événement ainsi que la provenance (evenement sur invitation)
|
|
if (($tabEvenement['general']['eve_prive'] == 1 || isset($_GET['i'])) && !isset($_SESSION['com_info'])) {
|
|
if ($strLangue == 'fr') {
|
|
$strPage = 'compte';
|
|
// verifier si en provenance d'une invitation
|
|
if(isset($_GET['i']))
|
|
$_SESSION['msg'] = 'e144';
|
|
else
|
|
$_SESSION['msg'] = 'e124';
|
|
} else {
|
|
$strPage = 'account';
|
|
// verifier si en provenance d'une invitation
|
|
if(isset($_GET['i']))
|
|
$_SESSION['msg'] = 'e544';
|
|
else
|
|
$_SESSION['msg'] = 'e524';
|
|
}
|
|
|
|
$_SESSION['url_retour'] = $vDomaine . '/' . $tabEvenement['general']['eve_label_url'] . '/' . $strLangue;
|
|
header('Location: ' . $vDomaine . '/' . $strPage);
|
|
exit;
|
|
} elseif ($tabEvenement['general']['eve_prive'] == 1 && isset($_SESSION['com_id'])) {
|
|
if (!in_array($tabEvenement['general']['eve_id'], $_SESSION['com_info']['eve_prive'])) {
|
|
if ($strLangue == 'fr') {
|
|
$strPage = 'compte';
|
|
$_SESSION['msg'] = 'e125';
|
|
} else {
|
|
$strPage = 'account';
|
|
$_SESSION['msg'] = 'e525';
|
|
}
|
|
|
|
header('Location: ' . $vDomaine . '/' . $strPage);
|
|
exit;
|
|
}
|
|
}
|
|
}
|
|
if (!isset($strOGImage)) {
|
|
$strOGImage = $vDomaine . "/images/logoms1.jpg";
|
|
}
|
|
if (!isset($strOGTitle)) {
|
|
$strOGTitle = $strMetaTitle;
|
|
}
|
|
if (!isset($strOGDescription)) {
|
|
$strOGDescription = $strMetaDescription;
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?php echo $strLangue; ?>">
|
|
<head>
|
|
<link rel="icon" href="/<?= $favicon ?>?v=2" type="image/x-icon">
|
|
<meta charset="utf-8">
|
|
<title><?php echo fxRemoveHtml($strMetaTitle); if ($strCode != 'accueil') {?> - <?php echo fxRemoveHtml($vClient); } ?></title>
|
|
<meta property="og:site_name" content="<?php echo fxRemoveHtml($vClient); ?>">
|
|
<meta property="og:title" content="<?php echo fxRemoveHtml($strOGTitle); ?>">
|
|
<meta property="og:description" content="<?php echo str_replace('&', '&', $strOGDescription); ?>">
|
|
<meta property="og:url" content="<?php echo $vDomaine . $_SERVER['REQUEST_URI']; ?>">
|
|
<meta property="og:locale" content="ca_<?php echo $strLangue; ?>">
|
|
<meta name="viewport" content="width=device-width">
|
|
<meta property="og:image" content="<?php echo $strOGImage; ?>">
|
|
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oxygen">
|
|
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins|Roboto">
|
|
<link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,300,700,900">
|
|
<link type="text/css" rel="stylesheet" href="<?php echo $vDomaine; ?>/min/g=css&version=v<?php echo _VERSION_CODE; ?>">
|
|
|
|
<!-- MSIN-3855 -->
|
|
<link rel="stylesheet" href="<?php echo $vDomaine; ?>/paypal_advanced/css/style.css">
|
|
|
|
<!-- <link rel="stylesheet" type="text/css" href="https://www.paypalobjects.com/webstatic/en_US/developer/docs/css/cardfields.css"/>
|
|
|
|
|
|
avant migration des info paypal pour MSIN-4216
|
|
<script src="https://www.paypal.com/sdk/js?components=card-fields,buttons,googlepay&client-id=<?php echo PAYPAL_SANDBOX?PAYPAL_SANDBOX_CLIENT_ID:PAYPAL_PROD_CLIENT_ID; ?>&disable-funding=paylater,credit¤cy=CAD<?php echo $strPaypalLangue; ?>"></script>
|
|
-->
|
|
<!-- apres migration des info paypal pour MSIN-4216
|
|
affaire remplacer echo PAYPAL_CLIENT_ID; -->
|
|
<?php if (fxPageNeedsPaypal()) { ?>
|
|
<script src="https://www.paypal.com/sdk/js?components=card-fields,buttons,googlepay&client-id=<?php echo PAYPAL_CLIENT_ID; ?>&disable-funding=paylater,credit¤cy=CAD<?php echo $strPaypalLangue; ?>"></script>
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="<?php echo $vDomaine; ?>/min/index.php?g=js&version=v<?php echo _VERSION_CODE; ?>"></script>
|
|
<?php
|
|
if (fxCookiesAllowMarketing()) {
|
|
require_once($_SERVER['DOCUMENT_ROOT'] . "/php/inc_facebook_pixel.php");
|
|
}
|
|
?>
|
|
|
|
|
|
</head>
|
|
|
|
<?php include_once('css/theme.php'); ?>
|
|
<?php
|
|
$blnInscrGestionShell = defined('MS1_INSCR_GESTION_ENTRY') && MS1_INSCR_GESTION_ENTRY;
|
|
?>
|
|
<body<?php echo $blnInscrGestionShell ? ' class="inscr-gestion-entry-body"' : ''; ?>>
|
|
|
|
<?php if( $vblnEnvironementDev !== true){ ?>
|
|
<div id="preloader">
|
|
<div id="spinner" class="ms1-loader ms1-loader--overlay">
|
|
<img class="ms1-loader__runner" src="<?php echo $vDomaine; ?>/images/ms1-runner-loader.gif?v=<?php echo _VERSION_CODE; ?>" alt="" role="presentation" decoding="async">
|
|
<span id="preloader_text"><?php afficheTexte('preloader_load',1,0,1); ?></span>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
console.log = function() {};
|
|
</script>
|
|
<?php
|
|
}else{
|
|
?>
|
|
<div id="preloader" style="display:none;">
|
|
<div id="spinner" class="ms1-loader ms1-loader--overlay">
|
|
<img class="ms1-loader__runner" src="<?php echo $vDomaine; ?>/images/ms1-runner-loader.gif?v=<?php echo _VERSION_CODE; ?>" alt="" role="presentation" decoding="async">
|
|
<span id="preloader_text"><?php afficheTexte('preloader_wait',1,0,1); ?></span>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
} ?>
|
|
|
|
<?php fxRenderEnvNoticeBar(); ?>
|
|
<header<?php echo $blnInscrGestionShell ? ' class="inscr-gestion-entry-header"' : ''; ?>>
|
|
<?php if (!$blnInscrGestionShell) { ?>
|
|
<div class="ms1-header-top">
|
|
<div class="container">
|
|
<div class="row align-items-center">
|
|
<div class="col-1">
|
|
<?php
|
|
if ($strLien != '') {
|
|
?>
|
|
<ul class="nav">
|
|
<li class="nav-item">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine . $strLien; ?>"><?php echo $strLabel; ?></a>
|
|
</li>
|
|
</ul>
|
|
<?php
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="col-11">
|
|
<nav class="navbar navbar-expand-xl py-0">
|
|
<button class="navbar-toggler ml-auto text-white" type="button" data-toggle="collapse" data-target="#menu_principal" aria-controls="menu_principal" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="text-white">
|
|
<i class="fa fa-reorder"></i>
|
|
</span>
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="menu_principal">
|
|
<ul class="navbar-nav ml-auto text-right text-xl-left">
|
|
<?php
|
|
if (isset($tabEvenement) && $tabEvenement['general']['te_id'] != 9) { // afficher un menu spécial pour les pages d'événements
|
|
include_once('php/inc_fx_benevoles.php');
|
|
include_once('php/inc_logs_course.php');
|
|
?>
|
|
<li class="nav-item">
|
|
<a class="nav-link py-0" href="<?php if(isset($_GET['tab']) && $_GET['tab'] == 'manage'){echo $vDomaine . "/" .$_GET['code'] . "/en";} else {echo $vDomaine; ?>/page/evenements/<?php echo $strLangue; }?>"><?php if ($strLangue == 'fr') { ?>Accueil<?php } else { ?>Home<?php } ?></a>
|
|
</li>
|
|
<li class="nav-item<?php if (isset($strTab) && $strTab == 'reserver') { ?> active<?php } ?>">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine; ?>/<?php echo $strCode; ?><?php if ($strLangue == 'en') { ?>/en<?php } ?>"><?php if ($strLangue == 'fr') { ?>Inscription<?php } else { ?>Register<?php } ?></a>
|
|
</li>
|
|
<?php
|
|
if ($tabEvenement['general']['eve_inscrits'] == 1) {
|
|
?>
|
|
<li class="nav-item<?php if (isset($strTab) && ($strTab == 'inscrits' || $strTab == 'registered')) { ?> active<?php } ?>">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine; ?>/<?php echo $strCode; ?><?php if ($strLangue == 'fr') { ?>/inscrits<?php } else { ?>/en/registered<?php } ?>"><?php if ($strLangue == 'fr') { ?>Inscriptions confirmées<?php } else { ?>Registered list<?php } ?></a>
|
|
</li>
|
|
<?php
|
|
}
|
|
/*
|
|
if ($tabEvenement['general']['eve_id_don'] != 0) {
|
|
?>
|
|
<li class="nav-item<?php if (isset($strTab) && ($strTab == 'dons' || $strTab == 'donations')) { ?> active<?php } ?>">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine; ?>/<?php echo $strCode; ?><?php if ($strLangue == 'fr') { ?>/fr/dons<?php } else { ?>/en/donations<?php } ?>"><?php if ($strLangue == 'fr') { ?>Dons<?php } else { ?>Donators<?php } ?></a>
|
|
</li>
|
|
<?php
|
|
} */
|
|
if ($tabEvenement['general']['eve_id_benevole'] > 0) {
|
|
$strURLBenevole = fxGetEvenementsUrl($tabEvenement['general']['eve_id_benevole']);
|
|
?>
|
|
<li class="nav-item<?php if (isset($strTab) && ($strTab == 'benevoles' || $strTab == 'volunteers')) { ?> active<?php } ?>">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine; ?>/<?php echo $strURLBenevole; ?><?php if ($strLangue == 'fr') { ?>/fr<?php } else { ?>/en<?php } ?>"><?php if ($strLangue == 'fr') { ?>Devenez bénévole<?php } else { ?>Become a volunteer<?php } ?></a>
|
|
</li>
|
|
<?php
|
|
} elseif ($tabEvenement['general']['te_id'] != 10) {
|
|
if (count((array)fxGetBenevoles($tabEvenement['general']['eve_id'])) > 0) {
|
|
?>
|
|
<li class="nav-item<?php if (isset($strTab) && ($strTab == 'benevoles' || $strTab == 'volunteers')) { ?> active<?php } ?>">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine; ?>/<?php echo $strCode; ?><?php if ($strLangue == 'fr') { ?>/fr/benevoles<?php } else { ?>/en/volunteers<?php } ?>"><?php if ($strLangue == 'fr') { ?>Devenez bénévole<?php } else { ?>Become a volunteer<?php } ?></a>
|
|
</li>
|
|
<?php
|
|
}
|
|
}
|
|
if (count((array)fxGetEpreuvesLogs($tabEvenement['general']['eve_id'])) > 0) {
|
|
?>
|
|
<li class="nav-item<?php if (isset($strTab) && ($strTab == 'suivez-resultats' || $strTab == 'track-results')) { ?> active<?php } ?>">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine; ?>/<?php echo $strCode; ?><?php if ($strLangue == 'fr') { ?>/fr/suivez-resultats<?php } else { ?>/en/track-results<?php } ?>"><?php if ($strLangue == 'fr') { ?>Suivez les résultats<?php } else { ?>Track results<?php } ?></a>
|
|
</li>
|
|
<?php
|
|
}
|
|
if ($tabEvenement['general']['eve_frais'] > 0) {
|
|
?>
|
|
<li class="nav-item<?php if (isset($strTab) && ($strTab == 'frais' || $strTab == 'fees')) { ?> active<?php } ?>">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine; ?>/<?php echo $strCode; ?><?php if ($strLangue == 'fr') { ?>/fr/frais<?php } else { ?>/en/fees<?php } ?>"><?php if ($strLangue == 'fr') { ?>Frais de services<?php } else { ?>Service Fees<?php } ?></a>
|
|
</li>
|
|
<?php
|
|
}
|
|
} else { // sinon, afficher le menu standard
|
|
$recMenus = fxGetMenus($strLangue);
|
|
|
|
if (count($recMenus) > 0) {
|
|
for ($intCtr = 1; $intCtr <= count($recMenus); $intCtr++) {
|
|
|
|
?>
|
|
<li class="nav-item<?php if ($strCode == $recMenus[$intCtr]['pag_code']) { ?> active<?php } ?>">
|
|
<a class="nav-link py-0" href="<?php echo $vDomaine; ?>/page/<?php echo $recMenus[$intCtr]['pag_code'] . '/' . $strLangue; ?>"><?php echo $recMenus[$intCtr]['pag_label_' . $strLangue]; ?></a>
|
|
</li>
|
|
<?php
|
|
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php } ?>
|
|
<div class="ms1-header-bottom py-4">
|
|
<div class="container">
|
|
<div class="row align-items-center">
|
|
<div class="col-lg-6 text-center text-lg-left">
|
|
<?php if ($blnInscrGestionShell) { ?>
|
|
<img class="mb-3 mb-lg-0" src="<?php echo $vDomaine; ?>/images/logoms1inscription.png" alt="<?php echo $vClient; ?>">
|
|
<?php } else { ?>
|
|
<a href="<?php echo $vDomaine; ?>">
|
|
<img class="mb-3 mb-lg-0" src="<?php echo $vDomaine; ?>/images/logoms1inscription.png" alt="<?php echo $vClient; ?>">
|
|
</a>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
<div class="col-lg-6 text-center text-lg-right">
|
|
|
|
<div id="login">
|
|
<?php
|
|
if (isset($_SESSION['no_panier'])) {
|
|
$ref_no_panier = $_SESSION['no_panier'];
|
|
$mem_panierinfo = fxNbItemsPanier($_SESSION['no_panier']);
|
|
$intNbItems = $mem_panierinfo['nbitem'];
|
|
} else {
|
|
$intNbItems = 0;
|
|
$ref_no_panier = "0";
|
|
}
|
|
if (!isset($_SESSION['com_id']) && !isset($_SESSION['affiche_pas_connexion'])) {
|
|
if ($blnInscrGestionShell) {
|
|
?>
|
|
<p class="mb-0 text-muted small"><?php afficheTexte('gauche_placeholder_login', 1, 1, 1); ?></p>
|
|
<?php
|
|
} else {
|
|
?>
|
|
<form action="<?php echo $vDomaine; ?>/<?php if ($strLangue == 'fr') { ?>compte<?php } else { ?>account<?php } ?>" id="frm_login_top" name="frm_login_top" method="post">
|
|
<input type="hidden" name="form_action" value="<?php echo urlencode(base64_encode('login')); ?>">
|
|
<div class="form-row justify-content-center justify-content-lg-end">
|
|
<div class="form-group col-8 col-lg-4">
|
|
<label for="txt_login" class="sr-only">Email</label>
|
|
<input type="text" class="form-control rounded-0 login_<?php echo $strLangue; ?>" id="txt_login" name="txt_login" placeholder="<?php afficheTexte('gauche_placeholder_login', 1, 1, 1); ?>">
|
|
</div>
|
|
<div class="form-group col-8 col-lg-4">
|
|
<label for="txt_password" class="sr-only">Password</label>
|
|
<input type="password" class="form-control rounded-0 password_<?php echo $strLangue; ?>" id="txt_password" name="txt_password" placeholder="<?php afficheTexte('gauche_placeholder_password', 1, 1, 1); ?>">
|
|
</div>
|
|
</div>
|
|
<div class="form-row justify-content-center justify-content-lg-end">
|
|
<div class="col-8">
|
|
<button type="submit" class="btn btn-primary btn-block rounded-0 mb-2"
|
|
id="btn_login"
|
|
name="btn_login"><?php afficheTexte('gauche_login_btn', 1, 0); ?></button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<ul class="list-inline">
|
|
<li class="list-inline-item">
|
|
<a href="<?php echo $vDomaine; ?>/<?php if ($strLangue == 'fr') { ?>compte<?php } else { ?>account<?php } ?>/motdepasse"><?php afficheTexte('gauche_mot_de_passe_oublie',1,1,1); ?></a>
|
|
</li>
|
|
<li class="list-inline-item">
|
|
<a href="<?php echo $vDomaine; ?>/<?php if ($strLangue == 'fr') { ?>compte<?php } else { ?>account<?php } ?>/nouveau"><?php afficheTexte('gauche_creer_un_nouveau_compte',1,1,1); ?></a>
|
|
</li>
|
|
<?php echo fxShowCartLink($intNbItems, $strEvenementURL, $strLangue); ?>
|
|
</ul>
|
|
<?php
|
|
}
|
|
} else {
|
|
if ($blnInscrGestionShell && isset($_SESSION['com_id'])) {
|
|
?>
|
|
<p class="mb-2"><strong><?php afficheTexte('gauche_bonjour_user',1,1,1); ?> <?php echo $_SESSION['com_info']['com_prenom']; ?></strong></p>
|
|
<ul class="list-inline mb-0">
|
|
<li class="list-inline-item">
|
|
<i class="fa fa-sign-out mr-1"></i>
|
|
<a class="btn_logout" href="<?php echo $vDomaine; ?>/logout.php?lang=<?php echo $strLangue; ?>&redirect=mobile"><?php afficheTexte('gauche_deconnextion',1,1,1); ?></a>
|
|
</li>
|
|
</ul>
|
|
<?php
|
|
} elseif (!$blnInscrGestionShell) {
|
|
?>
|
|
<p class="mb-2">
|
|
|
|
|
|
<?php
|
|
fx_bouton_prod_test();
|
|
|
|
|
|
?>
|
|
|
|
|
|
<strong>
|
|
<?php
|
|
|
|
if (isset($_SESSION['com_id'])) { afficheTexte('gauche_bonjour_user',1,1,1); ?> <?php echo $_SESSION['com_info']['com_prenom']; } ?>
|
|
</strong>
|
|
</p>
|
|
|
|
<ul class="list-inline">
|
|
<?php echo fxShowCartLink($intNbItems, $strEvenementURL, $strLangue); ?>
|
|
<li class="list-inline-item">
|
|
<i class="fa fa-user mr-1"></i> <a href="<?php echo $vDomaine; ?>/<?php if ($strLangue == 'fr') { ?>compte<?php } else { ?>account<?php } ?>"><?php afficheTexte('gauche_mon_compte_client',1,1,1); ?></a>
|
|
</li>
|
|
<li class="list-inline-item">
|
|
<i class="fa fa-sign-out mr-1"></i> <a class="btn_logout" href="<?php echo $vDomaine; ?>/logout.php?lang=<?php echo $strLangue; ?>"><?php afficheTexte('gauche_deconnextion',1,1,1); ?> </a>
|
|
</li>
|
|
<?php
|
|
// patch pour afficher d?fi des maraton pour certain user
|
|
if (isset($_SESSION['com_info']['com_lien'])) {
|
|
if (trim($_SESSION['com_info']['com_lien']) != "") {
|
|
?>
|
|
<li class="list-inline-item">
|
|
<i class="fa fa-flag-checkered"></i> <a href="<?php echo $_SESSION['com_info']['com_lien']; ?>" ><?php echo $_SESSION['com_info']['com_lien_titre']; ?></a>
|
|
</li>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</ul>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<?php
|
|
if (isset($_SESSION['com_id']) && !$blnInscrGestionShell) {
|
|
$intCompte = $_SESSION['com_id'];
|
|
// liste attente
|
|
if (fx_liste_attente_compte_dispo_inscrire($intCompte) > 0) {
|
|
$strPage1 = ($strLangue == 'fr') ? 'compte' : 'account';
|
|
$strUrl = $vDomaine . '/' . $strPage1 . '/mes_commandes';
|
|
$strText = afficheTexte('texte_liste_attente', 0, 1, 1);
|
|
$strText = str_replace('%url%', $strUrl, $strText);
|
|
?>
|
|
<div id="page_logo">
|
|
<div class="container bg-white p-3">
|
|
<?php
|
|
echo fxShowMembershipWarning($strText, '', $strLangue);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
|
|
|
|
|
|
if (isset($strCode) && trim($strCode) != 'compte_mes_adhesions') {
|
|
$arrMemberhips1 = fxGetAbonnements($intCompte);
|
|
$arrMemberhips2 = fxGetAbonnementsaffilie($intCompte);
|
|
|
|
if (!fxCheckMembershipComplete($arrMemberhips1) || !fxCheckMembershipComplete($arrMemberhips2)) {
|
|
$strPage1 = ($strLangue == 'fr') ? 'compte' : 'account';
|
|
$strUrl = $vDomaine . '/' . $strPage1 . '/mes_adhesions';
|
|
$strText = afficheTexte('texte_adhésion_incomplète', 0, 1, 1);
|
|
$strText = str_replace('%url%', $strUrl, $strText);
|
|
?>
|
|
<div id="page_logo">
|
|
<div class="container bg-white p-3">
|
|
<?php
|
|
echo fxShowMembershipWarning($strText, '', $strLangue);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
} else {
|
|
$arrReturn1 = fxCheckMembershipValidDate($arrMemberhips1);
|
|
$arrReturn2 = fxCheckMembershipValidDate($arrMemberhips2);
|
|
|
|
if (!($arrReturn1['valid']) || !($arrReturn2['valid'])) {
|
|
$strPage1 = ($strLangue == 'fr') ? 'compte' : 'account';
|
|
$strUrl = $vDomaine . '/' . $strPage1 . '/mes_adhesions';
|
|
$strText = afficheTexte('texte_adhésion_date_question', 0, 1, 1);
|
|
$strText = str_replace('%url%', $strUrl, $strText);
|
|
?>
|
|
<div id="page_logo">
|
|
<div class="container bg-white p-3">
|
|
<?php
|
|
echo fxShowMembershipWarning($strText, '', $strLangue);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
}
|
|
} else {
|
|
if (isset($_GET['no'])) {
|
|
$strNumeroMembership = trim($_GET['no']);
|
|
$arrAbonnement = fxGetAbonnements(0, 0, $strLangue, $strNumeroMembership);
|
|
|
|
if (!fxCheckMembershipComplete($arrAbonnement)) {
|
|
$strText = afficheTexte('texte_adhésion_incomplète2', 0, 1, 1);
|
|
?>
|
|
<div id="page_logo">
|
|
<div class="container bg-white p-3">
|
|
<?php
|
|
echo fxShowMembershipWarning($strText, '', $strLangue);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
} else {
|
|
$arrReturn = fxCheckMembershipValidDate($arrAbonnement);
|
|
|
|
if (!($arrReturn['valid'])) {
|
|
$strText = afficheTexte('texte_adhésion_date_question2', 0, 1, 1);
|
|
?>
|
|
<div id="page_logo">
|
|
<div class="container bg-white p-3">
|
|
<?php
|
|
echo fxShowMembershipWarning($strText, $arrReturn, $strLangue);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (isset($tabEvenement['general']['eve_photo_' . $strLangue])) {
|
|
?>
|
|
<div id="page_logo">
|
|
<div class="container bg-white p-5 border-bottom">
|
|
<div class="row">
|
|
<div class="col-lg-8 d-none d-lg-block">
|
|
<h1><?php echo fxUnescape($tabEvenement['general']['eve_nom_' . $strLangue]); ?></h1>
|
|
</div>
|
|
<div class="col-12 col-lg-4 text-center text-lg-right">
|
|
<a target="_blank" href="<?php echo $tabEvenement['general']['eve_siteweb']; ?>">
|
|
<img class="img-fluid" src="<?php echo $vDomaine . $vRepertoireFichiers; ?>/images/evenements/<?php echo $tabEvenement['general']['eve_photo_' . $strLangue]; ?>" alt="<?php echo $tabEvenement['general']['eve_siteweb']; ?>">
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|