Adapted logic to display Pruefungsprotokolle of certain time period

Signed-off-by: Cris <[email protected]>
This commit is contained in:
Cris
2020-07-20 16:50:29 +02:00
parent 618644d41f
commit 82c8ca7f80
2 changed files with 15 additions and 3 deletions
@@ -51,7 +51,14 @@ class Pruefungsprotokoll extends Auth_Controller
public function index()
{
$this->load->library('WidgetLib');
$this->load->view('lehre/pruefungsprotokollUebersicht.php');
// Protokolle anzeigen seit heute / letzte Woche / alle
$period = $this->input->post('period');
$period = (!is_null($period)) ? $period : 'today';
$data = array('period' => $period);
$this->load->view('lehre/pruefungsprotokollUebersicht.php', $data);
}
/**