This commit introduces a new UI structure for the superadmin interface by implementing the fxSuperadmV2Panel functions, which improve the organization and presentation of event access and ChronoTrack API sections. The changes include the addition of collapsible panels for better user interaction and visual clarity. Additionally, the versioning in the settings file is updated to reflect the latest changes. These enhancements aim to streamline the user experience and improve the overall functionality of the superadmin interface.
46 lines
1.6 KiB
PHP
46 lines
1.6 KiB
PHP
<?php
|
|
/**
|
|
* MSIN API ChronoTrack — page superadmin (config par eve_id + dashboard).
|
|
*/
|
|
$strLangue = 'fr';
|
|
$strPage = 'chronotrack_api.php';
|
|
|
|
require_once('php/inc_start_time.php');
|
|
require_once('php/inc_functions.php');
|
|
require_once dirname(__FILE__) . '/../php/chronotrack_api/inc_bootstrap.php';
|
|
|
|
if (empty($_SESSION['usa_id']) || empty($_SESSION['usa_info'])) {
|
|
header('Location: login.php');
|
|
exit;
|
|
}
|
|
|
|
$intEveId = isset($_GET['eve_id']) ? intval($_GET['eve_id']) : 0;
|
|
$blnDashboard = ($intEveId <= 0);
|
|
|
|
include('inc_header.php');
|
|
?>
|
|
<div class="container-fluid" id="main">
|
|
<div class="row">
|
|
<div class="col-md-9 col-lg-10 order-first order-md-last py-3">
|
|
<?php
|
|
require_once dirname(__FILE__) . '/../php/inc_fx_superadm_v2_ui.php';
|
|
if ($blnDashboard) {
|
|
fxSuperadmV2PanelOpen('ChronoTrack — Courses connectées', array(
|
|
'zone_class' => 'superadm-content-v2-zone superadm-content-v2-zone--flush',
|
|
));
|
|
fxChronotrackApiAdminRenderDashboard($strLangue, true);
|
|
} else {
|
|
fxSuperadmV2PanelOpen('ChronoTrack — Configuration événement', array(
|
|
'zone_class' => 'superadm-content-v2-zone superadm-content-v2-zone--flush',
|
|
));
|
|
fxChronotrackApiAdminRenderEventPage($intEveId, $strLangue, false, true);
|
|
}
|
|
fxSuperadmV2PanelClose();
|
|
?>
|
|
<p> </p>
|
|
</div>
|
|
<?php include('inc_droite.php'); ?>
|
|
</div>
|
|
</div>
|
|
<?php include('inc_footer.php'); ?>
|