Commit a021c192 authored by Hamza Arfaoui's avatar Hamza Arfaoui

CAFI175

parent 240cf92c
......@@ -4,24 +4,24 @@ $requestUrl = $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
if(in_array($statType, array('WEEKLY','MONTHLY','YEARLY'))){
?>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav mr-auto nav">
<li class="nav-item">
<a class="nav-link <?php echo ((!empty($_SERVER['HTTPS']) ? 'https' : 'http').'://').$requestUrl == SITE_URL.'weekly_chart.php' ? 'active' : '';?>" href="weekly_chart.php">Semaine <span class="sr-only"></span></a>
</li>
<li class="nav-item">
<a class="nav-link <?php echo ((!empty($_SERVER['HTTPS']) ? 'https' : 'http').'://').$requestUrl == SITE_URL.'monthly_chart.php' ? 'active' : '';?>" href="monthly_chart.php">Mois <span class="sr-only"></span></a>
</li>
<li class="nav-item">
<a class="nav-link <?php echo ((!empty($_SERVER['HTTPS']) ? 'https' : 'http').'://').$requestUrl == SITE_URL.'annual_chart.php' ? 'active' : '';?>" href="annual_chart.php" >Année <span class="sr-only"></span></a>
</li>
</ul>
</div>
</div>
<div class="container">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav mr-auto nav">
<li class="nav-item">
<a class="nav-link <?php echo strpos($_SERVER["REQUEST_URI"], 'weekly_chart.php') > 0 ? 'active' : '';?>" href="weekly_chart.php">Semaine <span class="sr-only"></span></a>
</li>
<li class="nav-item">
<a class="nav-link <?php echo strpos($_SERVER["REQUEST_URI"], 'monthly_chart.php') > 0 ? 'active' : '';?>" href="monthly_chart.php">Mois <span class="sr-only"></span></a>
</li>
<li class="nav-item">
<a class="nav-link <?php echo strpos($_SERVER["REQUEST_URI"], 'annual_chart.php') > 0 ? 'active' : '';?>" href="annual_chart.php" >Année <span class="sr-only"></span></a>
</li>
</ul>
</div>
</div>
</nav>
<?php } ?>
<nav class="navbar navbar-default main-nav">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment