Skip to content
Snippets Groups Projects
Commit 66b68226 authored by Peter Thienel's avatar Peter Thienel Committed by André Noack
Browse files

Resolve "Terminkalender Ansichten Jahr und Tag defekt", fixes #2219

Closes #2219

Merge request studip/studip!1451
parent 8ffa5652
No related branches found
No related tags found
No related merge requests found
......@@ -107,20 +107,24 @@
<? switch ($hday['col']) {
case 1:
?><a class="<?= $style ?>day" href="<?= $controller->url_for($href, ['atime' => $i]) ?>" <?= tooltip($hday['name']) . $js_inc ?>>
<?= $aday ?>
<?= $aday ?>
</a><?
break;
case 2:
case 3;
?><a class="<?= $style ?>hday" href="<?= $controller->url_for($href, ['atime' => $i]) ?>" <?= tooltip($hday['name']) . $js_inc ?>>
<?= $aday ?>
<?= $aday ?>
</a><?
break;
default:
?><a class="<?= $style ?>day" href="<?= $controller->url_for($href, ['atime' => $i]) ?>" <?= $js_inc ?>>
<?= $aday ?>
<?= $aday ?>
</a>
<?}?>
<?}?>
<? else : ?>
<a class="<?= $style ?>day" href="<?= $controller->url_for($href, ['atime' => $i]) ?>" <?= $js_inc ?>>
<?= $aday ?>
</a>
<? endif ?>
</td>
<? endif; ?>
......
......@@ -95,15 +95,15 @@
<? else : ?>
<a style="font-weight:bold;" class="hday" href="<?= $controller->url_for('calendar/single/day', ['atime' => $aday]) ?>"><?= $i ?></a> <?= $weekday; ?>
<? endif; ?>
<? endif ?>
<? else : ?>
<? if (date('w', $aday) == '0') : ?>
<a style="font-weight:bold;" class="sday" href="<?= $controller->url_for('calendar/single/day', ['atime' => $aday]) ?>"><?= $i ?></a> <?= $weekday; ?>
<? $count++; ?>
<? else : ?>
<? if (date('w', $aday) == '0') : ?>
<a style="font-weight:bold;" class="sday" href="<?= $controller->url_for('calendar/single/day', ['atime' => $aday]) ?>"><?= $i ?></a> <?= $weekday; ?>
<? $count++; ?>
<? else : ?>
<a style="font-weight:bold;" class="day" href="<?= $controller->url_for('calendar/single/day', ['atime' => $aday]) ?>"><?= $i ?></a> <?= $weekday; ?>
<? endif; ?>
<a style="font-weight:bold;" class="day" href="<?= $controller->url_for('calendar/single/day', ['atime' => $aday]) ?>"><?= $i ?></a> <?= $weekday; ?>
<? endif; ?>
<? endif ?>
<? endif; ?>
</span>
<? if (isset($count_list[$iday]) && count($count_list[$iday])) : ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment