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();
|
$today = new \DateTime();
|
||||||
$params['week'] = $today->format("W");
|
$params['week'] = $today->format("W");
|
||||||
$dayofweek = $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']++;
|
$params['week']++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,11 @@
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.timetables {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
div.timetable {
|
div.timetable {
|
||||||
border:2px solid black;
|
border:2px solid black;
|
||||||
}
|
}
|
||||||
|
@ -57,4 +62,4 @@ div.timetable {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 5rem;
|
width: 5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<h2>Stundenplansuche</h2>
|
||||||
<div class="timetable_searchbox">
|
<div class="timetable_searchbox">
|
||||||
Suche Stundenplan: <input type="text" name="searchstring" autocomplete="off" placeholder="Suchtext..." class="searchstring"/>
|
Suche Stundenplan: <input type="text" name="searchstring" autocomplete="off" placeholder="Suchtext..." class="searchstring"/>
|
||||||
<div class="searchresult"></div>
|
<div class="searchresult"></div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue