48 lines
1.5 KiB
PHP
48 lines
1.5 KiB
PHP
|
|
<?php
|
|
if(!is_null($this->properties)) {
|
|
$properties = $this->properties;
|
|
|
|
if( count($properties[items][0][items]) >0) {
|
|
$monat = -2;
|
|
$jahr = -2;
|
|
if(!is_null($_GET['monat'])) $monat =$_GET['monat'];
|
|
if(!is_null($_GET['jahr'])) $jahr =$_GET['jahr'];
|
|
|
|
echo "<nav id='bidat-kategorie'><div class='container bidat_table' id='bidat_content_table'> Filter ";
|
|
echo "<select class ='btn btn-primary' id='sw_nav' onChange=reloadPage(this.value,".$monat.",".$jahr.")>";
|
|
echo "<option value='0'>Alle Kategorien</option>";
|
|
$i = '';
|
|
foreach($properties[items][0][items] as $sw) {
|
|
if ($_GET['stichwort'] == $sw[schluessel] ) $i = 'selected';
|
|
echo "<option ".$i." value='".$sw[schluessel]."'>".$sw[name]."</option>";
|
|
$i= '';
|
|
}
|
|
echo "</select>";
|
|
echo "</div></nav>";
|
|
}
|
|
}
|
|
?>
|
|
</nav>
|
|
<script>
|
|
function reloadPage(val, monat, jahr) {
|
|
var params = 'index.php?stichwort='+val+"&style=table";
|
|
if(monat>-1) params += '&monat='+monat;
|
|
if(jahr>0) params += '&jahr='+jahr;
|
|
top.location.href=params;
|
|
}
|
|
</script>
|
|
|
|
<div class='container bidat_table' id='bidat_content_table'>
|
|
<div class='row align-items-center th'>
|
|
<div class='col-5' id='th_event'>Event</div>
|
|
<div class='col' id="th_datum">Datum</div>
|
|
<div class='col' id="th_uhrzeit">Uhrzeit</div>
|
|
<div class='col var_hidden' id="th_maxTN">MaxTN</div>
|
|
<div class='col var_hidden' id="th_aktTN">aktuelle TN</div>
|
|
<div class='col var_hidden' id="th_verfuegbar">Verfügbar</div>
|
|
<div class='col-2' id="th_anmeldung">Anmeldung</div>
|
|
</div>
|
|
|
|
|