Merge branch 'spidev' into 'master'

Zeiterfassung (Monatsansicht auf 3 Monate in die Zukunft erweitert.)

See merge request fronk/thetool!650
This commit is contained in:
Daniel Spitzer
2024-10-07 13:33:42 +00:00
+5 -2
View File
@@ -29,7 +29,9 @@ for ($i = 1; $i <= 25; $i++) {
$time = $time - 604800; $time = $time - 604800;
} }
$time = time(); $time = time();
for ($i = 1; $i <= 12; $i++) { $timenow = $time;
$time = strtotime('+3 month', $time);
for ($i = 1; $i <= 15; $i++) {
$mon = date('n', $time); $mon = date('n', $time);
$year = date('Y', $time); $year = date('Y', $time);
$month[$time] = $monthger[$mon] . " " . $year; $month[$time] = $monthger[$mon] . " " . $year;
@@ -311,7 +313,8 @@ $years[time() - 31536000] = date('Y', time() - 31536000);
<div class="input-group"> <div class="input-group">
<select id="datamonth" class="form-control select2"> <select id="datamonth" class="form-control select2">
<?php foreach ($month as $key => $Month): ?> <?php foreach ($month as $key => $Month): ?>
<option value="<?= $key ?>"><?= $Month ?></option> <option <?= ($timenow == $key) ? 'selected="selected"' : '' ?>
value="<?= $key ?>"><?= $Month ?></option>
<?php endforeach; ?> <?php endforeach; ?>
</select> </select>
</div> </div>