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:
@@ -29,7 +29,9 @@ for ($i = 1; $i <= 25; $i++) {
|
||||
$time = $time - 604800;
|
||||
}
|
||||
$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);
|
||||
$year = date('Y', $time);
|
||||
$month[$time] = $monthger[$mon] . " " . $year;
|
||||
@@ -311,7 +313,8 @@ $years[time() - 31536000] = date('Y', time() - 31536000);
|
||||
<div class="input-group">
|
||||
<select id="datamonth" class="form-control select2">
|
||||
<?php foreach ($month as $key => $Month): ?>
|
||||
<option value="<?= $key ?>"><?= $Month ?></option>
|
||||
<option <?= ($timenow == $key) ? 'selected="selected"' : '' ?>
|
||||
value="<?= $key ?>"><?= $Month ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user