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