This commit introduces new functions for displaying permission badges in various sections of the admin interface, improving visibility for super admins. It updates the sidebar and management sections to include these badges, ensuring that access rights are clearly indicated. Additionally, new CSS styles are added for better layout and alignment of the badges. The version code is updated to reflect these changes.
77 lines
2.3 KiB
PHP
77 lines
2.3 KiB
PHP
<?php
|
|
|
|
// MSIN-4379 — Gestion quantités + dossards v4
|
|
include_once("php/inc_fx_modifierinscriptions.php");
|
|
include_once("php/inc_fx_memberships.php");
|
|
include_once("php/inc_fx_promoteur.php");
|
|
require_once('php/inc_fx_eve_acces.php');
|
|
require_once('superadm/php/inc_manager.php');
|
|
|
|
global $objDatabase, $vDomaine, $strLangue;
|
|
|
|
$intEveId = 0;
|
|
|
|
if ($strLangue == 'fr') {
|
|
$strPage = '/compte';
|
|
} else {
|
|
$strPage = '/account';
|
|
}
|
|
if ($strLangue == 'fr') {
|
|
$strCode = 'compte/';
|
|
} else {
|
|
$strCode = 'account/';
|
|
}
|
|
|
|
$strBibCode = $strCode;
|
|
|
|
if (isset($_GET['promoteur_eve_id'])) {
|
|
$intEveId = base64_decode(urldecode($_GET['promoteur_eve_id']));
|
|
}
|
|
|
|
if ($intEveId <= 0 || (empty($_SESSION['com_id']) && empty($_SESSION['usa_id']))
|
|
|| (empty($_SESSION['usa_id'])
|
|
&& !fxEveAccesHasAnyPermission($_SESSION['com_id'] ?? 0, $intEveId, array('dossards.manage', 'epreuves.edit_qte')))) {
|
|
$strRedirect = $vDomaine . '/compte/inc_tableau_promoteur';
|
|
if (!empty($_GET['promoteur_eve_id'])) {
|
|
$strRedirect .= '?promoteur_eve_id=' . urlencode($_GET['promoteur_eve_id']);
|
|
}
|
|
header('Location: ' . $strRedirect);
|
|
exit;
|
|
}
|
|
|
|
$strBackUrl = fxGetPromoteurBackUrl($intEveId, $strPage);
|
|
?>
|
|
<a class="btn btn-primary rounded-pill" id="link_back" href="<?php echo $strBackUrl; ?>">
|
|
<i class="fa fa-chevron-left mr-2" aria-hidden="true"></i>
|
|
<?php afficheTexte('promoteur_back'); ?>
|
|
</a>
|
|
<br><br>
|
|
<?php
|
|
|
|
if (isset($_REQUEST['resetcategorie'])) {
|
|
fxregles_niveau_updateall($intEveId);
|
|
}
|
|
|
|
if (isset($_POST['btn_cancel_event_promo'])) {
|
|
$int_pec_id = $_POST['pec_id_original'];
|
|
$int_epr_id = $_POST['epr_id'];
|
|
$tabEpreuve = fxGetEpreuve($int_epr_id);
|
|
fxAnnulerRetablirInscription($tabEpreuve, $int_pec_id);
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<?php
|
|
fxShowBibTool4($strBibCode, $intEveId, $strLangue);
|
|
?>
|
|
<link rel="stylesheet" href="<?php echo $vDomaine; ?>/libs/tippy.js-6.3.7/tippy.css">
|
|
<script src="<?php echo $vDomaine; ?>/libs/tippy.js-6.3.7/popper.min.js"></script>
|
|
<script src="<?php echo $vDomaine; ?>/libs/tippy.js-6.3.7/tippy-bundle.umd.min.js"></script>
|
|
|
|
<a class="btn btn-primary rounded-pill mt-3" href="<?php echo $strBackUrl; ?>">
|
|
<i class="fa fa-chevron-left mr-2" aria-hidden="true"></i>
|
|
<?php afficheTexte('promoteur_back'); ?>
|
|
</a>
|
|
<?php
|