tussenopslag
This commit is contained in:
@@ -34,7 +34,7 @@ class Diversiteit extends MY_Controller{
|
||||
$groep->combi = count($groepasarray);
|
||||
|
||||
$groep->tijden = new stdClass;
|
||||
$groep->tijden = $this->Ondersteuningtijden_model->getgroeptijden($groep->id);
|
||||
if($groep->ondersteuning != 'F') $groep->tijden = $this->Ondersteuningtijden_model->getgroeptijden($groep->id);
|
||||
}
|
||||
}
|
||||
echo json_encode($groepen);
|
||||
|
||||
@@ -13,6 +13,7 @@ class Ondersteuning extends MY_Controller{
|
||||
die;
|
||||
};// if
|
||||
}
|
||||
|
||||
function getgroepen(){
|
||||
if (!$this->userid) die;
|
||||
$orgid = $this->clean_input('orgID');
|
||||
@@ -42,7 +43,24 @@ class Ondersteuning extends MY_Controller{
|
||||
echo json_encode(['groepen'=>$groepen, 'ondersteuning'=>$ondersteuning]);
|
||||
}
|
||||
|
||||
function meldondersteuning(){
|
||||
if (!$this->userid) die;
|
||||
$schoolid = $this->clean_input('schoolid');
|
||||
$schooljaarnr = $this->clean_input('schooljaar');
|
||||
$module = $this->clean_input('module');
|
||||
$ondersteuning = $this->clean_input('ondersteuning');
|
||||
if($schoolid && $schooljaarnr && $module){
|
||||
$groepsIDs = $this->Groepen_model->getgroepsids($schoolid, $schooljaarnr, $module);
|
||||
if($groepsIDs){
|
||||
foreach($groepsIDs AS $groepsID){
|
||||
$this->Groepen_model->update_record(array("ondersteuning" => $ondersteuning), $groepsID->id);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo json_encode('gelukt');
|
||||
}
|
||||
|
||||
function gettijden(){
|
||||
if (!$this->userid) die;
|
||||
|
||||
Reference in New Issue
Block a user