ambities per org
This commit is contained in:
@@ -30,7 +30,14 @@ class Rapijkpunten extends MY_Controller{
|
||||
};// if
|
||||
}
|
||||
|
||||
function getorgs(){
|
||||
function getorgsoort(){
|
||||
if (!$this->userid) die;
|
||||
$soort = $this->Organisaties_model->get_fieldvalue(['id' => $this->globorgid], 'soort');
|
||||
echo json_encode($soort);
|
||||
}
|
||||
|
||||
|
||||
function getorgs(){
|
||||
if (!$this->userid) die;
|
||||
$organisatie = $this->Organisaties_model->getorg($this->globorgid);
|
||||
switch ($organisatie->soort){
|
||||
@@ -46,7 +53,7 @@ class Rapijkpunten extends MY_Controller{
|
||||
if ($organisatie->bgs){
|
||||
foreach($organisatie->bgs as $bg){
|
||||
$bg->scholen = $this->Organisaties_model->getorgsvanaf($bg->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
echo json_encode(array("organisatie"=>$organisatie, "soort"=>2));
|
||||
break;
|
||||
@@ -215,6 +222,7 @@ class Rapijkpunten extends MY_Controller{
|
||||
|
||||
$nieuwsteversie = $lijstenObject->getNieuwsteVersie();
|
||||
$kleuren = $lijstenObject->getKleuren();
|
||||
$eigenambitie = $lijstenObject->getEigenAmbitie();
|
||||
|
||||
$data =[
|
||||
'lijsten' => $lijsten,
|
||||
@@ -222,7 +230,8 @@ class Rapijkpunten extends MY_Controller{
|
||||
'nieuwsteversie' => $nieuwsteversie,
|
||||
'users' => $users,
|
||||
'ijkpunten' => $ijkpunten,
|
||||
'kleuren' => $kleuren
|
||||
'kleuren' => $kleuren,
|
||||
'eigenambitie' => $eigenambitie
|
||||
];
|
||||
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ class Streefcijfers extends MY_Controller{
|
||||
$manage = 'F';
|
||||
if($this->super) $manage = 'T';
|
||||
else {
|
||||
$result = $this->Autorisatiesnivos_model->checkmanage($this->userid, $this->orgid);
|
||||
$result = $this->Autorisatienivos_model->checkmanage($this->userid, $this->orgid);
|
||||
if($result) $manage = 'T';
|
||||
}
|
||||
$soort = $this->Organisaties_model->get_fieldvalue(['id'=>$this->globorgid],'soort');
|
||||
@@ -221,7 +221,7 @@ function saveAmbitie(){
|
||||
$orgversieid = $this->clean_input("orgversieid");
|
||||
|
||||
if($this->super == false) {
|
||||
$result = $this->Autorisatiesnivos_model->checkmanage($this->userid, $this->globorgid);
|
||||
$result = $this->Autorisatienivos_model->checkmanage($this->userid, $this->globorgid);
|
||||
$saveorg = $this->globorgid;
|
||||
if (!$result) return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user