menu-loop
This commit is contained in:
parent
d89af3a416
commit
c712d78536
15
index.php
15
index.php
@ -1,10 +1,12 @@
|
||||
<?php
|
||||
|
||||
require("config.php");
|
||||
require_once("attributes.php");
|
||||
require_once("lib/attributes.php");
|
||||
require_once("lib/functions.php");
|
||||
|
||||
; $numYear="2022";
|
||||
$numYear=2022;
|
||||
$numStartYear=2019;
|
||||
$numLatestYear=2022;
|
||||
|
||||
$strDistrict = (isset($_GET['d'])) ? $_GET['d'] : "Hamm";
|
||||
$numVehicle = (isset($_GET['v'])) ? (int) $_GET['v'] : 1;
|
||||
@ -151,11 +153,12 @@
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
||||
<a class="navbar-brand" href="#"><?= $strTitle ?></a>
|
||||
<a class="navbar-brand" href="index.php?year=2022&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2022</a>
|
||||
<a class="navbar-brand" href="index.php?year=2021&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2021</a>
|
||||
<a class="navbar-brand" href="index.php?year=2020&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2020</a>
|
||||
<a class="navbar-brand" href="index.php?year=2019&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2019</a>
|
||||
|
||||
<?php
|
||||
for ($i=$numLatestYear;$i>=$numStartYear;$i--) {
|
||||
echo "<a class='navbar-brand' href='index.php?year=$i&v=$numVehicle&d=$strDistrict'>$i</a>";
|
||||
}
|
||||
?>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbars" aria-controls="navbars" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user