list for vehicles

This commit is contained in:
Walter Hupfeld 2023-10-11 21:35:47 +02:00
parent 4d12345d96
commit 2173225fa1

View File

@ -51,7 +51,21 @@
?> ?>
</form> </form>
<form method="GET" action="index.php">
<select name="v" style="float:left;margin-top:0.5em;margin-right:0.5em;" onchange="this.form.submit()">
<?php
foreach ($arrVehicles as $key=>$vehicle)
{
$strActive = ($i==$numVehicle) ? "selected=\"selected\"" : "";
echo "<option value='$key' $strActive >$vehicle</a>";
}
echo "<input type='hidden' name='year' value='$numYear'>";
echo "<input type='hidden' name='d' value='$strDistrict'>";
?>
</form>
<div class="collapse navbar-collapse" id="navbars"> <div class="collapse navbar-collapse" id="navbars">
<!--
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
<?php foreach ($arrVehicles as $key => $strVehicle): <?php foreach ($arrVehicles as $key => $strVehicle):
$strActive = ($numVehicle==$key) ? "active" : "" $strActive = ($numVehicle==$key) ? "active" : ""
@ -62,7 +76,7 @@
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
-->
<!-- District --> <!-- District -->
<form method="GET" action="index.php"> <form method="GET" action="index.php">