Sunday is new week too.

wraping timetables.
Heading.
This commit is contained in:
L_DA 2020-09-13 19:35:33 +00:00
parent e642b6702c
commit 951a121dfa
3 changed files with 8 additions and 2 deletions

View file

@ -172,7 +172,7 @@ class mod_timetable_external extends external_api {
$today = new \DateTime();
$params['week'] = $today->format("W");
$dayofweek = $today->format('w');
if ($dayofweek > 5 + get_config('timetable', 'saturday')) {
if (($dayofweek > 5 + get_config('timetable', 'saturday')) || ($dayofweek == 0)) {
$params['week']++;
}
}

View file

@ -14,6 +14,11 @@
width:100%;
}
div.timetables {
display: flex;
flex-wrap: wrap;
}
div.timetable {
border:2px solid black;
}
@ -57,4 +62,4 @@ div.timetable {
text-align: center;
width: 5rem;
}

View file

@ -1,3 +1,4 @@
<h2>Stundenplansuche</h2>
<div class="timetable_searchbox">
Suche Stundenplan: <input type="text" name="searchstring" autocomplete="off" placeholder="Suchtext..." class="searchstring"/>
<div class="searchresult"></div>