Sunday is new week too.
wraping timetables. Heading.
This commit is contained in:
parent
e642b6702c
commit
951a121dfa
3 changed files with 8 additions and 2 deletions
|
@ -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']++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
width:100%;
|
||||
}
|
||||
|
||||
div.timetables {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
div.timetable {
|
||||
border:2px solid black;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue