Merge branch 'develop'
This commit is contained in:
@@ -138,4 +138,13 @@ class Beheer extends MY_Controller{
|
|||||||
"gewicht" => $this->clean_input("gewicht"));
|
"gewicht" => $this->clean_input("gewicht"));
|
||||||
$this->Indicatoren_model->update_record($data, $indicatorid);
|
$this->Indicatoren_model->update_record($data, $indicatorid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function disableijkpunt(){
|
||||||
|
if (!$this->userid ) die;
|
||||||
|
$ijkpuntid = $this->clean_input("id");
|
||||||
|
$disabled = $this->clean_input("disabled");
|
||||||
|
$this->Ijkpunten_model->update_record(['disabled' => $disabled ], $ijkpuntid);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -301,7 +301,8 @@ class Rapijkpunten extends MY_Controller{
|
|||||||
$userLijsten = new Userlijsten($orguserid, $orgid, $orgversies);
|
$userLijsten = new Userlijsten($orguserid, $orgid, $orgversies);
|
||||||
$lijsten = $userLijsten->getLijsten();
|
$lijsten = $userLijsten->getLijsten();
|
||||||
$nieuwsteversie = $userLijsten->getNieuwsteVersie();
|
$nieuwsteversie = $userLijsten->getNieuwsteVersie();
|
||||||
|
//LS matrixmodel.js verwacht een variable vorm die aangeeft of het een individuele versie is
|
||||||
|
$lijsten[0]->vorm=2;
|
||||||
$data =[
|
$data =[
|
||||||
'lijsten' => $lijsten,
|
'lijsten' => $lijsten,
|
||||||
'aantal' => $aantal,
|
'aantal' => $aantal,
|
||||||
|
|||||||
@@ -387,16 +387,19 @@ private function getGemiddeldenSchool($labels, $aantalY, $orgversieID, $kleuren)
|
|||||||
$aantalrijen = $aantalrijen + 1;
|
$aantalrijen = $aantalrijen + 1;
|
||||||
for ($i = 0; $i < $aantalY; $i++) {
|
for ($i = 0; $i < $aantalY; $i++) {
|
||||||
if(isset($user->scores[$i])) {
|
if(isset($user->scores[$i])) {
|
||||||
|
if($user->scores[$i]->disabled == 'F' && $user->scores[$i]->disablenvt == 'F') {
|
||||||
// if ($user->scores[$i]->gem == '' || $user->scores[$i]->gem == null) {
|
// if ($user->scores[$i]->gem == '' || $user->scores[$i]->gem == null) {
|
||||||
// // doe niks
|
// // doe niks
|
||||||
// } else {
|
// } else {
|
||||||
$aantalscores++;
|
$aantalscores++;
|
||||||
$sumscore[$i] = $sumscore[$i] + $user->scores[$i]->gem;
|
$sumscore[$i] = $sumscore[$i] + $user->scores[$i]->gem;
|
||||||
$aantalresults[$i] = $aantalresults[$i] + 1;
|
$aantalresults[$i] = $aantalresults[$i] + 1;
|
||||||
|
|
||||||
$sumscorerij = $sumscorerij + $user->scores[$i]->gem;
|
$sumscorerij = $sumscorerij + $user->scores[$i]->gem;
|
||||||
if ($sumscorerij > 0) {
|
if ($sumscorerij > 0) {
|
||||||
$waarden++;
|
$waarden++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// }
|
// }
|
||||||
|
|
||||||
$user->scores[$i]->kleur = $this->getkleur($user->scores[$i]->gem, $kleuren);
|
$user->scores[$i]->kleur = $this->getkleur($user->scores[$i]->gem, $kleuren);
|
||||||
@@ -624,6 +627,10 @@ private function getGemiddeldeScores($labels, $aantalY, $kleuren){
|
|||||||
$aantalrijen = $aantalrijen + 1;
|
$aantalrijen = $aantalrijen + 1;
|
||||||
for ($i = 0; $i < $aantalY; $i++) {
|
for ($i = 0; $i < $aantalY; $i++) {
|
||||||
if(isset($user->scores[$i])) {
|
if(isset($user->scores[$i])) {
|
||||||
|
if($user->scores[$i]->disabled == 'F' &&
|
||||||
|
($user->scores[$i]->aantalvier == 0 ||
|
||||||
|
($user->scores[$i]->aantalvier > 0 &&
|
||||||
|
$user->scores[$i]->aantalnvt != $user->scores[$i]->aantalvier ))){
|
||||||
// if ($user->scores[$i]->gem == '' || $user->scores[$i]->gem == null) {
|
// if ($user->scores[$i]->gem == '' || $user->scores[$i]->gem == null) {
|
||||||
// // doe niks
|
// // doe niks
|
||||||
// } else {
|
// } else {
|
||||||
@@ -635,6 +642,7 @@ private function getGemiddeldeScores($labels, $aantalY, $kleuren){
|
|||||||
$waarden++;
|
$waarden++;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$user->scores[$i]->kleur = $this->getkleur($user->scores[$i]->gem, $kleuren);
|
$user->scores[$i]->kleur = $this->getkleur($user->scores[$i]->gem, $kleuren);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
@@ -100,15 +100,16 @@ class Rapontwikkel extends MY_Controller {
|
|||||||
if ( $schoolids )
|
if ( $schoolids )
|
||||||
{
|
{
|
||||||
$lijst = implode( ',', $schoolids );
|
$lijst = implode( ',', $schoolids );
|
||||||
$scores = $this->Scores_model->calculateOverScholenNieuw( $orgversieid, $lijst );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( $organisatie->soort == 4 )
|
if ( $organisatie->soort == 4 )
|
||||||
{
|
{
|
||||||
// $scores = $this->Scores_model->calculateschool( $orgversieid, $orgid );
|
$lijst = $organisatie->id;
|
||||||
$scores = $this->Scores_model->getgemscores( $orgversieid, $orgid );
|
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$scores = $this->Scores_model->getgemscores( $orgversieid, $lijst);
|
||||||
if ( $scores )
|
if ( $scores )
|
||||||
{
|
{
|
||||||
$gewenst = $this->Wenssituaties_model->getgewenst( $orgversieid, $orgid );
|
$gewenst = $this->Wenssituaties_model->getgewenst( $orgversieid, $orgid );
|
||||||
|
|||||||
@@ -55,7 +55,8 @@ class MY_Controller extends CI_Controller{
|
|||||||
// public $version = '1.17.70'; // bopropswop
|
// public $version = '1.17.70'; // bopropswop
|
||||||
// public $version = '1.17.72'; // data2mysql fout
|
// public $version = '1.17.72'; // data2mysql fout
|
||||||
// public $version = '1.17.73'; // 0-waarden aantal tlvs in omvang extra ondersteuning
|
// public $version = '1.17.73'; // 0-waarden aantal tlvs in omvang extra ondersteuning
|
||||||
public $version = '1.17.74'; // mogelijkheid tot uitzetten extra ondersteuning in divmeters
|
// public $version = '1.17.74'; // mogelijkheid tot uitzetten extra ondersteuning in divmeters
|
||||||
|
public $version = '1.17.75'; // uitzetten ijpunten en in lijst nvt niet meetellen
|
||||||
|
|
||||||
public $partituurid;
|
public $partituurid;
|
||||||
public $globProfielVersieID = 1;
|
public $globProfielVersieID = 1;
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class Gemiddeldenafbeeldingen {
|
|||||||
private $resultaten;
|
private $resultaten;
|
||||||
private $kolombreedte;
|
private $kolombreedte;
|
||||||
private $orgbreedte;
|
private $orgbreedte;
|
||||||
|
private $disablenvt = 0;
|
||||||
|
|
||||||
private $gemiddeldenafbeeldingen;
|
private $gemiddeldenafbeeldingen;
|
||||||
|
|
||||||
@@ -180,13 +181,14 @@ class Gemiddeldenafbeeldingen {
|
|||||||
|
|
||||||
private function loopIJkpunten(){
|
private function loopIJkpunten(){
|
||||||
foreach($this->ijkpunten as $index =>$this->ijkpunt){
|
foreach($this->ijkpunten as $index =>$this->ijkpunt){
|
||||||
if(! isset($this->ijkpunt->score) || ! $this->ijkpunt->score) {continue;};
|
if(! isset($this->ijkpunt->score) || ! $this->ijkpunt->score || $this->ijkpunt->disabled =='T') {continue;};
|
||||||
$this->telScoresOp();
|
$this->telScoresOp();
|
||||||
$this->setAantalScores();
|
$this->setAantalScores();
|
||||||
}
|
}
|
||||||
$this->setGemiddeldeScore(); // gemiddelde ga je niet in de loop berekenen
|
$this->setGemiddeldeScore(); // gemiddelde ga je niet in de loop berekenen
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function telScoresOp(){
|
private function telScoresOp(){
|
||||||
$this->somscore = $this->somscore + $this->ijkpunt->score;
|
$this->somscore = $this->somscore + $this->ijkpunt->score;
|
||||||
}
|
}
|
||||||
@@ -223,11 +225,13 @@ class Gemiddeldenafbeeldingen {
|
|||||||
private function setGemiddeldeScore(){
|
private function setGemiddeldeScore(){
|
||||||
$this->gemiddelde = new stdClass();
|
$this->gemiddelde = new stdClass();
|
||||||
$this->gemiddelde->score = 0;
|
$this->gemiddelde->score = 0;
|
||||||
if ($this->aantalscores > 0) {
|
$deler = $this->aantalY - $this->disablenvt;
|
||||||
$this->gemiddelde->score = round($this->somscore / $this->aantalY);
|
if($deler > 0) $this->gemiddelde->score = round($this->somscore / $deler);
|
||||||
}
|
|
||||||
|
|
||||||
$this->gemiddelde->nummer = 'gem';
|
$this->gemiddelde->nummer = 'gem';
|
||||||
|
$this->gemiddelde->disabled = 'F';
|
||||||
|
$this->gemiddelde->disablenvt = 'F';
|
||||||
$this->gemiddelde->kleur =$this->getKleur ($this->gemiddelde->score);
|
$this->gemiddelde->kleur =$this->getKleur ($this->gemiddelde->score);
|
||||||
$this->ijkpunt = $this->gemiddelde;
|
$this->ijkpunt = $this->gemiddelde;
|
||||||
}
|
}
|
||||||
@@ -322,8 +326,13 @@ class Gemiddeldenafbeeldingen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function setAdvies(){
|
private function setAdvies(){
|
||||||
if(isset($this->ijkpunt->wens) && $this->ijkpunt->huidig < $this->ijkpunt->wens &&
|
if(isset($this->ijkpunt->wens) &&
|
||||||
$this->ijkpunt->huidig != 0 && $this->ijkpunt->wens!= 0 && isset($this->ijkpunt->omschrijving)){
|
$this->ijkpunt->huidig < $this->ijkpunt->wens &&
|
||||||
|
|
||||||
|
$this->ijkpunt->wens!= 0 &&
|
||||||
|
isset($this->ijkpunt->omschrijving ) &&
|
||||||
|
$this->ijkpunt->disabled == 'F' &&
|
||||||
|
$this->ijkpunt->disablenvt == 'F'){
|
||||||
array_push($this->adviezen, [
|
array_push($this->adviezen, [
|
||||||
"nummer"=> $this->ijkpunt->nummer,
|
"nummer"=> $this->ijkpunt->nummer,
|
||||||
"omschrijving" =>$this->ijkpunt->omschrijving
|
"omschrijving" =>$this->ijkpunt->omschrijving
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class Gemiddeldescores
|
|||||||
private $slaover = false;
|
private $slaover = false;
|
||||||
private $ambities;
|
private $ambities;
|
||||||
private $gemiddeldescores;
|
private $gemiddeldescores;
|
||||||
|
private $aantalnvt = 0;
|
||||||
|
|
||||||
public function __construct($orgversieid, $orgid)
|
public function __construct($orgversieid, $orgid)
|
||||||
{
|
{
|
||||||
@@ -67,10 +68,8 @@ class Gemiddeldescores
|
|||||||
$this->setGemiddeldeScores();
|
$this->setGemiddeldeScores();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setIJkpunten()
|
private function setIJkpunten(){
|
||||||
{
|
$this->ijkpunten = $this->CI->Ijkpunten_model->getijkpuntenMetIndicatoren($this->orgversieid);
|
||||||
$this->ijkpunten = $this->CI->Orgversies_model->getijkpunten($this->orgversieid);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setLeerkrachten()
|
private function setLeerkrachten()
|
||||||
@@ -88,22 +87,30 @@ class Gemiddeldescores
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function telIJkpunten()
|
private function telIJkpunten(){
|
||||||
{
|
if($this->ijkpunten){
|
||||||
if ($this->ijkpunten) {
|
foreach($this->ijkpunten as $ijkpunt){
|
||||||
$this->aantalY = count($this->ijkpunten);
|
if($ijkpunt->disabled == 'F'){
|
||||||
|
$this->aantalY++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private function loopIJkpunten()
|
private function loopIJkpunten()
|
||||||
{
|
{
|
||||||
foreach ($this->ijkpunten as $index => $this->ijkpunt) {
|
foreach ($this->ijkpunten as $index => $this->ijkpunt) {
|
||||||
|
$this->ijkpunt->disablenvt = 'F';
|
||||||
$this->ijkpunt->totaal = 0;
|
$this->ijkpunt->totaal = 0;
|
||||||
$this->ijkpunt->aantallkrtn = 0;
|
$this->ijkpunt->aantallkrtn = 0;
|
||||||
|
if($this->ijkpunt->disabled == 'F') {
|
||||||
$this->loopLeerkrachten();
|
$this->loopLeerkrachten();
|
||||||
|
$this->setNietvanToepassing();
|
||||||
$this->setIJkpuntGemiddeldeScores();
|
$this->setIJkpuntGemiddeldeScores();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private function loopLeerkrachten()
|
private function loopLeerkrachten()
|
||||||
@@ -128,6 +135,7 @@ class Gemiddeldescores
|
|||||||
$this->setAantalScores();
|
$this->setAantalScores();
|
||||||
if ($this->slaover == false) {
|
if ($this->slaover == false) {
|
||||||
$this->setIJkpuntTotaal();
|
$this->setIJkpuntTotaal();
|
||||||
|
$this->telNietVanToepassing();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -152,6 +160,15 @@ class Gemiddeldescores
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function telNietvanToepassing(){
|
||||||
|
if($this->score->scoretype != 4) return;
|
||||||
|
if ($this->score->nummer == $this->ijkpunt->nummer) {
|
||||||
|
if($this->score->aantalnvt == $this->score->aantalvier )
|
||||||
|
$this->aantalnvt++;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function setVoldoendeAantal(){
|
private function setVoldoendeAantal(){
|
||||||
if (!isset($this->leerkracht->scores) || $this->leerkracht->scores == false) return;
|
if (!isset($this->leerkracht->scores) || $this->leerkracht->scores == false) return;
|
||||||
if ($this->scoreteller < 5){
|
if ($this->scoreteller < 5){
|
||||||
@@ -159,6 +176,12 @@ class Gemiddeldescores
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function setNietVanToepassing(){
|
||||||
|
if($this->ijkpunt->aantallkrtn == $this->aantalnvt){
|
||||||
|
$this->ijkpunt->disablenvt = 'T';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function setIJkpuntGemiddeldeScores()
|
private function setIJkpuntGemiddeldeScores()
|
||||||
{
|
{
|
||||||
if ($this->ijkpunt->aantallkrtn > 0) {
|
if ($this->ijkpunt->aantallkrtn > 0) {
|
||||||
|
|||||||
@@ -3,23 +3,19 @@
|
|||||||
class Schoolafbeeldingen {
|
class Schoolafbeeldingen {
|
||||||
|
|
||||||
private $CI;
|
private $CI;
|
||||||
private $swvid;
|
|
||||||
private $scores;
|
private $scores;
|
||||||
private $score;
|
private $score;
|
||||||
private $somscore;
|
private $somscore;
|
||||||
private $ambities;
|
private $ambities;
|
||||||
private $wensen;
|
private $wensen;
|
||||||
private $wens;
|
|
||||||
private $ijkpunten;
|
private $ijkpunten;
|
||||||
private $aantalY = 0;
|
private $aantalY = 0;
|
||||||
private $labels;
|
private $labels;
|
||||||
private $kleuren;
|
private $kleuren;
|
||||||
private $kleurcodes;
|
|
||||||
private $orgversie;
|
private $orgversie;
|
||||||
private $vantm;
|
private $vantm;
|
||||||
private $gemiddelde;
|
private $gemiddelde;
|
||||||
private $nummer;
|
|
||||||
private $gem;
|
|
||||||
private $adviezen= [];
|
private $adviezen= [];
|
||||||
private $rij = 708;
|
private $rij = 708;
|
||||||
private $standaardorg = 250;
|
private $standaardorg = 250;
|
||||||
@@ -35,6 +31,7 @@ class Schoolafbeeldingen {
|
|||||||
private $laagstescore = 101;
|
private $laagstescore = 101;
|
||||||
private $schoolafbeeldingen;
|
private $schoolafbeeldingen;
|
||||||
private $resultaten;
|
private $resultaten;
|
||||||
|
private $disablenvt;
|
||||||
|
|
||||||
public function __construct(Schoolscores $schoolscores, $modulenr, $orgversieid, $clusterid, $orgid){
|
public function __construct(Schoolscores $schoolscores, $modulenr, $orgversieid, $clusterid, $orgid){
|
||||||
$this->CI = & get_instance();
|
$this->CI = & get_instance();
|
||||||
@@ -121,7 +118,6 @@ class Schoolafbeeldingen {
|
|||||||
$this->setLabels();
|
$this->setLabels();
|
||||||
$this->telIJkpunten();
|
$this->telIJkpunten();
|
||||||
$this->setPeriode();
|
$this->setPeriode();
|
||||||
$this->setKleurcodes();
|
|
||||||
$this->setKleuren();
|
$this->setKleuren();
|
||||||
$this->loopScores1();
|
$this->loopScores1();
|
||||||
$this->setGemiddeldeScore();
|
$this->setGemiddeldeScore();
|
||||||
@@ -145,7 +141,11 @@ class Schoolafbeeldingen {
|
|||||||
|
|
||||||
private function telIJkpunten(){
|
private function telIJkpunten(){
|
||||||
if($this->ijkpunten){
|
if($this->ijkpunten){
|
||||||
$this->aantalY = count($this->ijkpunten);
|
foreach($this->ijkpunten as $ijkpunt){
|
||||||
|
if($ijkpunt->disabled == 'F'){
|
||||||
|
$this->aantalY++;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,9 +155,6 @@ class Schoolafbeeldingen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function setKleurcodes(){
|
|
||||||
$this->kleurcodes = new Kleurcodes();
|
|
||||||
}
|
|
||||||
|
|
||||||
private function setKleuren(){
|
private function setKleuren(){
|
||||||
|
|
||||||
@@ -191,26 +188,30 @@ class Schoolafbeeldingen {
|
|||||||
|
|
||||||
|
|
||||||
private function loopScores1(){
|
private function loopScores1(){
|
||||||
|
|
||||||
if(!$this->scores) return;
|
if(!$this->scores) return;
|
||||||
foreach ($this->scores as $index => $this->score) {
|
foreach ($this->scores as $index => $this->score) {
|
||||||
$this->setScoreSom();
|
if($this->score->disabled == 'F' && $this->score->disablenvt == 'F') {
|
||||||
$this->setAantalScores($index);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private function setScoreSom(){
|
|
||||||
$this->somscore = $this->somscore + $this->score->gem;
|
$this->somscore = $this->somscore + $this->score->gem;
|
||||||
|
|
||||||
|
$this->aantalscores++;
|
||||||
|
}
|
||||||
|
if($this->score->disabled == 'F' && $this->score->disablenvt == 'T'){
|
||||||
|
$this->disablenvt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setAantalScores($index){
|
}
|
||||||
$this->aantalscores = $index + 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setGemiddeldeScore(){
|
private function setGemiddeldeScore(){
|
||||||
if(!$this->scores || $this->aantalscores == 0) return;
|
if(!$this->scores || $this->aantalscores == 0) return;
|
||||||
$this->gemiddelde = new stdClass();
|
$this->gemiddelde = new stdClass();
|
||||||
$this->gemiddelde->gem = $this->somscore / $this->aantalY;
|
$this->gemiddelde->gem = 0;
|
||||||
|
$deler = $this->aantalY - $this->disablenvt;
|
||||||
|
if($deler > 0) $this->gemiddelde->gem = round($this->somscore / $deler);
|
||||||
|
|
||||||
|
$this->gemiddelde->disabled = 'F';
|
||||||
|
$this->gemiddelde->disablenvt = 'F';
|
||||||
$this->gemiddelde->nummer = 'gem';
|
$this->gemiddelde->nummer = 'gem';
|
||||||
$this->score = $this->gemiddelde;
|
$this->score = $this->gemiddelde;
|
||||||
}
|
}
|
||||||
@@ -286,6 +287,9 @@ class Schoolafbeeldingen {
|
|||||||
private function setWensKleuren(){
|
private function setWensKleuren(){
|
||||||
if(! isset($this->wensen)) return;
|
if(! isset($this->wensen)) return;
|
||||||
if(!isset($this->score->wens)) return;
|
if(!isset($this->score->wens)) return;
|
||||||
|
if($this->score->disabled == 'T')
|
||||||
|
{$this->score->wenskleur = '#ffffff';
|
||||||
|
return;}
|
||||||
switch ($this->score->wens) {
|
switch ($this->score->wens) {
|
||||||
case 1:
|
case 1:
|
||||||
$this->score->wenskleur = $this->kleuren->kleur1;
|
$this->score->wenskleur = $this->kleuren->kleur1;
|
||||||
@@ -306,7 +310,11 @@ class Schoolafbeeldingen {
|
|||||||
|
|
||||||
private function setAdvies(){
|
private function setAdvies(){
|
||||||
|
|
||||||
if(isset($this->score->wens) && $this->score->huidig < $this->score->wens && $this->score->huidig != 0 && $this->score->wens!= 0){
|
if(isset($this->score->wens) &&
|
||||||
|
$this->score->huidig < $this->score->wens &&
|
||||||
|
$this->score->wens!= 0 &&
|
||||||
|
$this->score->disabled == 'F' &&
|
||||||
|
$this->score->disablenvt == 'F'){
|
||||||
$omschrijving = "";
|
$omschrijving = "";
|
||||||
if(isset($this->score->omschrijving)){
|
if(isset($this->score->omschrijving)){
|
||||||
$omschrijving = $this->score->omschrijving;
|
$omschrijving = $this->score->omschrijving;
|
||||||
@@ -317,6 +325,7 @@ class Schoolafbeeldingen {
|
|||||||
|
|
||||||
private function setResultatenOverzicht()
|
private function setResultatenOverzicht()
|
||||||
{
|
{
|
||||||
|
if($this->score->disabled == 'F' && $this->score->disablenvt == 'F') {
|
||||||
if ($this->score->gem > $this->hoogstescore) {
|
if ($this->score->gem > $this->hoogstescore) {
|
||||||
$this->hoogstescore = $this->score->gem;
|
$this->hoogstescore = $this->score->gem;
|
||||||
$this->welkehoogste = $this->score->nummer;
|
$this->welkehoogste = $this->score->nummer;
|
||||||
@@ -326,13 +335,16 @@ class Schoolafbeeldingen {
|
|||||||
$this->welkelaagste = $this->score->nummer;
|
$this->welkelaagste = $this->score->nummer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function telIJkpuntenok()
|
private function telIJkpuntenok()
|
||||||
{
|
{
|
||||||
if ($this->ambities && $this->score->gem >= $this->ambities->zprocent) {
|
if($this->score->disabled == 'F' && $this->score->disablenvt == 'F') {
|
||||||
|
if ($this->ambities && $this->score->gem >= $this->ambities->zprocent && $this->score->disabled == 'F') {
|
||||||
$this->ijkpuntenok++;
|
$this->ijkpuntenok++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function setKolombreedte(){
|
private function setKolombreedte(){
|
||||||
if($this->aantalY > 1) $this->aantal = $this->aantalY;
|
if($this->aantalY > 1) $this->aantal = $this->aantalY;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class Schoolscores
|
|||||||
|
|
||||||
|
|
||||||
private function setIJkpunten(){
|
private function setIJkpunten(){
|
||||||
$this->ijkpunten = $this->CI->Orgversies_model->getijkpunten($this->orgversieid);
|
$this->ijkpunten = $this->CI->Ijkpunten_model->getijkpuntenMetIndicatoren($this->orgversieid);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setScores(){
|
private function setScores(){
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ class Afbeeldingen {
|
|||||||
private $welkelaagste = 0;
|
private $welkelaagste = 0;
|
||||||
private $laagstescore = 101;
|
private $laagstescore = 101;
|
||||||
private $resultaten;
|
private $resultaten;
|
||||||
|
private $disablenvt = 0;
|
||||||
|
private $ijkpunten;
|
||||||
|
private $aantalY = 0;
|
||||||
|
|
||||||
public function __construct($scoresObject, $modulenr, $orgversieid, $clusterid, $orgid, $zprocent){
|
public function __construct($scoresObject, $modulenr, $orgversieid, $clusterid, $orgid, $zprocent){
|
||||||
$this->CI = & get_instance();
|
$this->CI = & get_instance();
|
||||||
@@ -59,6 +62,8 @@ class Afbeeldingen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function handle(){
|
private function handle(){
|
||||||
|
$this->setIJkpunten();
|
||||||
|
$this->telIJkpunten();
|
||||||
$this->setScores();
|
$this->setScores();
|
||||||
$this->setSWVid();
|
$this->setSWVid();
|
||||||
$this->setOrgversie();
|
$this->setOrgversie();
|
||||||
@@ -70,6 +75,20 @@ class Afbeeldingen {
|
|||||||
$this->loopScores2();
|
$this->loopScores2();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function setIJkpunten(){
|
||||||
|
$this->ijkpunten = $this->CI->Ijkpunten_model->getijkpuntenMetIndicatoren($this->orgversieid);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function telIJkpunten(){
|
||||||
|
if($this->ijkpunten){
|
||||||
|
foreach($this->ijkpunten as $ijkpunt){
|
||||||
|
if($ijkpunt->disabled == 'F'){
|
||||||
|
$this->aantalY++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function setScores(){
|
private function setScores(){
|
||||||
$this->scores = $this->scoresobject->getScores();
|
$this->scores = $this->scoresobject->getScores();
|
||||||
}
|
}
|
||||||
@@ -115,21 +134,27 @@ class Afbeeldingen {
|
|||||||
private function loopScores1(){
|
private function loopScores1(){
|
||||||
if(!$this->scores) return;
|
if(!$this->scores) return;
|
||||||
foreach ($this->scores as $index => $this->score) {
|
foreach ($this->scores as $index => $this->score) {
|
||||||
$this->berekenGemiddelden();
|
if($this->score->disabled == 'F' && $this->score->disablenvt == 'F') {
|
||||||
|
// $this->berekenGemiddelden();
|
||||||
$this->setScoreSom();
|
$this->setScoreSom();
|
||||||
$this->setAantalScores($index);
|
$this->setAantalScores($index);
|
||||||
}
|
}
|
||||||
|
if($this->score->disabled == 'F' && $this->score->disablenvt == 'T'){
|
||||||
|
$this->disablenvt++;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function berekenGemiddelden(){
|
|
||||||
if(!$this->scores) return;
|
|
||||||
$this->score->gem = 0;
|
|
||||||
if($this->score->num > 0 ){
|
|
||||||
// $this->score->gem = round((($this->score->somscore/ $this->score->num)* 10)/10);
|
|
||||||
$this->score->gem = $this->score->somscore/ $this->score->num;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// private function berekenGemiddelden(){
|
||||||
|
// if(!$this->scores) return;
|
||||||
|
// $this->score->gem = 0;
|
||||||
|
// if($this->score->num > 0 ){
|
||||||
|
//// $this->score->gem = round((($this->score->somscore/ $this->score->num)* 10)/10);
|
||||||
|
// $this->score->gem = $this->score->somscore/ $this->score->num;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
private function setScoreSom(){
|
private function setScoreSom(){
|
||||||
|
|
||||||
$this->somscore = $this->somscore + $this->score->gem;
|
$this->somscore = $this->somscore + $this->score->gem;
|
||||||
@@ -137,13 +162,18 @@ class Afbeeldingen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function setAantalScores($index){
|
private function setAantalScores($index){
|
||||||
$this->aantalscores = $index + 1;
|
$this->aantalscores++;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setGemiddeldeScore(){
|
private function setGemiddeldeScore(){
|
||||||
if(!$this->scores || $this->aantalscores == 0) return;
|
if(!$this->scores || $this->aantalscores == 0) return;
|
||||||
$this->gemiddelde = new stdClass();
|
$this->gemiddelde = new stdClass();
|
||||||
$this->gemiddelde->gem = $this->somscore / $this->aantalscores;
|
$this->gemiddelde->gem = 0;
|
||||||
|
$deler = $this->aantalY - $this->disablenvt;
|
||||||
|
if($deler > 0) $this->gemiddelde->gem = round($this->somscore / $deler);
|
||||||
|
|
||||||
|
$this->gemiddelde->disabled = 'F';
|
||||||
|
$this->gemiddelde->disablenvt = 'F';
|
||||||
$this->gemiddelde->nummer = 'gem';
|
$this->gemiddelde->nummer = 'gem';
|
||||||
$this->score = $this->gemiddelde;
|
$this->score = $this->gemiddelde;
|
||||||
}
|
}
|
||||||
@@ -196,6 +226,7 @@ class Afbeeldingen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function setResultatenOverzicht(){
|
private function setResultatenOverzicht(){
|
||||||
|
if($this->score->disabled == 'F' && $this->score->disablenvt == 'F') {
|
||||||
|
|
||||||
if ($this->score->gem > $this->hoogstescore) {
|
if ($this->score->gem > $this->hoogstescore) {
|
||||||
$this->hoogstescore = $this->score->gem;
|
$this->hoogstescore = $this->score->gem;
|
||||||
@@ -206,10 +237,13 @@ class Afbeeldingen {
|
|||||||
$this->welkelaagste = $this->score->nummer;
|
$this->welkelaagste = $this->score->nummer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function telIJkpuntenok(){
|
private function telIJkpuntenok(){
|
||||||
|
if($this->score->disabled == 'F' && $this->score->disablenvt == 'F') {
|
||||||
if ($this->score->gem >= $this->zprocent) {
|
if ($this->score->gem >= $this->zprocent) {
|
||||||
$this->ijkpuntenok++;
|
$this->ijkpuntenok++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -3,8 +3,9 @@
|
|||||||
class Bestuurscores
|
class Bestuurscores
|
||||||
{
|
{
|
||||||
private $CI;
|
private $CI;
|
||||||
private $organisatie;
|
|
||||||
private $scores;
|
private $scores;
|
||||||
|
private $orgstring;
|
||||||
|
private $metingen;
|
||||||
|
|
||||||
|
|
||||||
public function __construct( $orgversieid, $orgid, $vorm)
|
public function __construct( $orgversieid, $orgid, $vorm)
|
||||||
@@ -20,20 +21,33 @@ class Bestuurscores
|
|||||||
return $this->scores;
|
return $this->scores;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getMetingen(){
|
||||||
|
return $this->metingen;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private function handle(){
|
private function handle(){
|
||||||
|
|
||||||
$this->setOrg();
|
|
||||||
|
$this->setOrglist();
|
||||||
$this->setScores();
|
$this->setScores();
|
||||||
|
$this->setMetingen();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setOrg(){
|
|
||||||
$this->organisatie = $this->CI->Organisaties_model->get_record_by_id($this->orgid);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
private function setOrglist(){
|
||||||
|
$orglist = $this->CI->Organisaties_model->getlistrecursief($this->orgid, []);
|
||||||
|
if($orglist) {
|
||||||
|
$this->orgstring = implode(',', $orglist);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private function setScores(){
|
private function setScores(){
|
||||||
$this->scores = $this->CI->Scores_model->calculateBG($this->orgversieid, $this->orgid);
|
$this->scores = $this->CI->Scores_model->getgemscores($this->orgversieid, $this->orgstring);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function setMetingen(){
|
||||||
|
$this->metingen = $this->CI->Scores_model->fCountGevuldeVersiesNieuw($this->orgversieid, $this->orgstring);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,8 @@ class Individuelescores
|
|||||||
private function handle(){
|
private function handle(){
|
||||||
$this->setUserid();
|
$this->setUserid();
|
||||||
$this->setScores();
|
$this->setScores();
|
||||||
$this->telScores();
|
$this->loopScores();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setUserid(){
|
private function setUserid(){
|
||||||
@@ -34,11 +35,28 @@ class Individuelescores
|
|||||||
private function setScores(){
|
private function setScores(){
|
||||||
$this->scores = $this->CI->Scores_model->calculateindividualscores($this->orgversieid, $this->orgid, $this->userid);
|
$this->scores = $this->CI->Scores_model->calculateindividualscores($this->orgversieid, $this->orgid, $this->userid);
|
||||||
}
|
}
|
||||||
private function telScores(){
|
|
||||||
|
|
||||||
foreach($this->scores as $index => $this->score){
|
|
||||||
|
|
||||||
|
private function loopScores(){
|
||||||
|
if(! isset($this->scores) || $this->scores == false ) return;
|
||||||
|
foreach($this->scores as $this->score) {
|
||||||
|
$this->setNietVanToepassing();
|
||||||
|
$this->setGem();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function setNietVanToepassing(){
|
||||||
|
$this->score->disablenvt = 'F';
|
||||||
|
if($this->score->aantalvier> 0 && $this->score->aantalvier == $this->score->aantalnvt)
|
||||||
|
$this->score->disablenvt = 'T';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private function setGem(){
|
||||||
|
$this->score->gem = 0;
|
||||||
|
if(isset($this->score->somscore) && $this->score->num > 0) {
|
||||||
|
$this->score->gem = $this->score->somscore/$this->score->num;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,7 @@ class Kamerscores
|
|||||||
private $kamernaam;
|
private $kamernaam;
|
||||||
private $orgids;
|
private $orgids;
|
||||||
private $scores;
|
private $scores;
|
||||||
|
private $metingen;
|
||||||
|
|
||||||
public function __construct( $orgversieid, $orgid, $vorm)
|
public function __construct( $orgversieid, $orgid, $vorm)
|
||||||
{
|
{
|
||||||
@@ -21,6 +22,9 @@ class Kamerscores
|
|||||||
public function getScores(){
|
public function getScores(){
|
||||||
return $this->scores;
|
return $this->scores;
|
||||||
}
|
}
|
||||||
|
public function getMetingen(){
|
||||||
|
return $this->metingen;
|
||||||
|
}
|
||||||
|
|
||||||
public function getOrgnaam(){
|
public function getOrgnaam(){
|
||||||
return $this->kamernaam;
|
return $this->kamernaam;
|
||||||
@@ -33,6 +37,7 @@ class Kamerscores
|
|||||||
$this->setKamernaam();
|
$this->setKamernaam();
|
||||||
$this->setScholenString();
|
$this->setScholenString();
|
||||||
$this->setScores();
|
$this->setScores();
|
||||||
|
$this->setMetingen();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,8 +68,12 @@ class Kamerscores
|
|||||||
private function setScores(){
|
private function setScores(){
|
||||||
|
|
||||||
if(!$this->orgids) return;
|
if(!$this->orgids) return;
|
||||||
$this->scores = $this->CI->Scores_model->calculateOverScholen($this->orgversieid, $this->orgids);
|
$this->scores = $this->CI->Scores_model->getgemscores($this->orgversieid, $this->orgids);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function setMetingen(){
|
||||||
|
$this->metingen = $this->CI->Scores_model->fCountGevuldeVersiesNieuw($this->orgversieid, $this->orgids);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -118,15 +118,16 @@ class Lijsten
|
|||||||
$this->setKamerScores();
|
$this->setKamerScores();
|
||||||
$this->setSWVScores();
|
$this->setSWVScores();
|
||||||
$this->setLijstScores();
|
$this->setLijstScores();
|
||||||
|
$this->setMetingen();
|
||||||
$this->setGemiddeldeScores();
|
$this->setGemiddeldeScores();
|
||||||
$this->setAdviezen();
|
$this->setAdviezen();
|
||||||
$this->setGemiddeldenAdviezen();
|
$this->setGemiddeldenAdviezen();
|
||||||
$this->setVNaam();
|
$this->setVNaam();
|
||||||
$this->loopVergelijkingScores();
|
$this->loopVergelijkingScores();
|
||||||
$this->setSchoolMetingen();
|
// $this->setSchoolMetingen();
|
||||||
$this->setIndividueleMetingen();
|
// $this->setIndividueleMetingen();
|
||||||
$this->setMetingenVergelijking();
|
// $this->setMetingenVergelijking();
|
||||||
$this->setMetingenVergelijkingIndividueel();
|
// $this->setMetingenVergelijkingIndividueel();
|
||||||
$this->setResultaten();
|
$this->setResultaten();
|
||||||
$this->setrapportInfo();
|
$this->setrapportInfo();
|
||||||
$this->setLijsten();
|
$this->setLijsten();
|
||||||
@@ -196,10 +197,17 @@ class Lijsten
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private function setSchoolScores(){
|
private function setSchoolScores(){
|
||||||
if ($this->soort != 4 || $this->lijst->vorm != 1) return;
|
if ($this->soort != 4 || $this->lijst->vorm != 1) return;
|
||||||
$this->schoolScores = new Schoolscores($this->lijst->orgversieid, $this->orgid);
|
$this->schoolScores = new Schoolscores($this->lijst->orgversieid, $this->orgid);
|
||||||
|
|
||||||
if($this->schoolScores) {
|
if($this->schoolScores) {
|
||||||
|
$this->metingen = 1;
|
||||||
|
$this->aantalorgs = 1;
|
||||||
$this->schoolAfbeeldingen = new Schoolafbeeldingen($this->schoolScores, $this->modulenr, $this->lijst->orgversieid,
|
$this->schoolAfbeeldingen = new Schoolafbeeldingen($this->schoolScores, $this->modulenr, $this->lijst->orgversieid,
|
||||||
$this->clusterid, $this->orgid);
|
$this->clusterid, $this->orgid);
|
||||||
}
|
}
|
||||||
@@ -213,6 +221,10 @@ class Lijsten
|
|||||||
$this->gemiddeldenAfbeeldingen = new Gemiddeldenafbeeldingen($this->gemiddeldeScores, $this->modulenr, $this->lijst->orgversieid,
|
$this->gemiddeldenAfbeeldingen = new Gemiddeldenafbeeldingen($this->gemiddeldeScores, $this->modulenr, $this->lijst->orgversieid,
|
||||||
$this->clusterid, $this->orgid);
|
$this->clusterid, $this->orgid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// $this->gemiddeldeScores = new Individuelescores($this->lijst->orgversieid, $this->lijst->orguserid, $this->orgid);
|
||||||
|
// $this->gemiddeldenAfbeeldingen = new Afbeeldingen($this->gemiddeldeScores, $this->modulenr, $this->lijst->orgversieid, $this->clusterid, $this->orgid, $this->zprocent);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setBestuurScores()
|
private function setBestuurScores()
|
||||||
@@ -248,6 +260,7 @@ class Lijsten
|
|||||||
case 1:
|
case 1:
|
||||||
if(empty($this->swvAfbeeldingen)) return;
|
if(empty($this->swvAfbeeldingen)) return;
|
||||||
$this->lijst->scores = $this->swvAfbeeldingen->getScores();
|
$this->lijst->scores = $this->swvAfbeeldingen->getScores();
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 2: if(empty($this->kamerAfbeeldingen)) return;
|
case 2: if(empty($this->kamerAfbeeldingen)) return;
|
||||||
$this->lijst->scores = $this->kamerAfbeeldingen->getScores();
|
$this->lijst->scores = $this->kamerAfbeeldingen->getScores();
|
||||||
@@ -270,12 +283,56 @@ class Lijsten
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function setMetingen(){
|
||||||
|
$this->lijst->metingen = 0;
|
||||||
|
$this->lijst->aantalorgs = 0;
|
||||||
|
$this->lijst->metingenV = 0;
|
||||||
|
$this->lijst->aantalorgsV = 0;
|
||||||
|
|
||||||
|
|
||||||
|
switch($this->soort){
|
||||||
|
case 1:
|
||||||
|
if(empty($this->swvScores)) return;
|
||||||
|
$metingen = $this->swvScores->getMetingen();
|
||||||
|
break;
|
||||||
|
case 2: if(empty($this->kamerScores)) return;
|
||||||
|
$metingen = $this->kamerScores->getMetingen();
|
||||||
|
$metingenV = $this->swvScores->getMetingen();
|
||||||
|
break;
|
||||||
|
case 3: if(empty($this->bestuurScores)) return;
|
||||||
|
$metingen = $this->bestuurScores->getMetingen();
|
||||||
|
$metingenV = $this->kamerScores->getMetingen();
|
||||||
|
break;
|
||||||
|
case 4: if(empty($this->schoolScores) ||empty($this->gemiddeldeScores) ) return;
|
||||||
|
if(count((array) $this->schoolScores) > 0) {
|
||||||
|
$this->lijst->metingen = 1;
|
||||||
|
$this->lijst->aantalorgs = 1;
|
||||||
|
}
|
||||||
|
if(count((array)$this->gemiddeldeScores)> 0){
|
||||||
|
$this->lijst->metingen = $this->gemiddeldeScores->getAantalLeerkrachten();
|
||||||
|
$this->lijst->aantalorgs = 1;
|
||||||
|
|
||||||
|
}
|
||||||
|
$metingenV = $this->kamerScores->getMetingen();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(isset($metingen)) {
|
||||||
|
$this->lijst->metingen = $metingen->aantal;
|
||||||
|
$this->lijst->aantalorgs = $metingen->aantalorgs;
|
||||||
|
}
|
||||||
|
if(isset($metingenV)) {
|
||||||
|
$this->lijst->metingenV = $metingenV->aantal;
|
||||||
|
$this->lijst->aantalorgsV = $metingenV->aantalorgs;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private function setGemiddeldeScores(){
|
private function setGemiddeldeScores(){
|
||||||
if(count((array)$this->gemiddeldenAfbeeldingen) == 0) return;
|
if(count((array)$this->gemiddeldenAfbeeldingen) == 0) return;
|
||||||
foreach($this->lijst->scores as $index => $this->score){
|
foreach($this->lijst->scores as $index => $this->score){
|
||||||
$this->score->gem = 0;
|
$this->score->gem = 0;
|
||||||
if($this->score->score) {
|
if(isset($this->score->score) && $this->score->score > 0) {
|
||||||
$this->score->gem = $this->score->score;
|
$this->score->gem = $this->score->score;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -318,100 +375,104 @@ class Lijsten
|
|||||||
if($this->lijst->scores[$i]) {
|
if($this->lijst->scores[$i]) {
|
||||||
$this->lijst->scores[$i]->gemV = $this->lijst->vergelijkingen[$i]->gem;
|
$this->lijst->scores[$i]->gemV = $this->lijst->vergelijkingen[$i]->gem;
|
||||||
$this->lijst->scores[$i]->kleurV = $this->lijst->vergelijkingen[$i]->kleur;
|
$this->lijst->scores[$i]->kleurV = $this->lijst->vergelijkingen[$i]->kleur;
|
||||||
}
|
$this->lijst->scores[$i]->disabledV = $this->lijst->vergelijkingen[$i]->disabled;
|
||||||
}
|
$this->lijst->scores[$i]->disablenvtV = $this->lijst->vergelijkingen[$i]->disablenvt;
|
||||||
|
|
||||||
private function setSchoolMetingen(){
|
|
||||||
|
|
||||||
if($this->lijst->vorm != 1) return;
|
|
||||||
if(!$this->lijst->scores) $this->lijst->aantalorgs = 0;
|
|
||||||
else if ($this->soort == 4) $this->lijst->aantalorgs = 1;
|
|
||||||
else {
|
|
||||||
if(! isset($this->lijst->scores[0]->aantalscholen)) $this->lijst->aantalorgs = 0;
|
|
||||||
|
|
||||||
else {
|
|
||||||
$this->lijst->aantalorgs = $this->lijst->scores[0]->aantalscholen;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private function setIndividueleMetingen(){
|
|
||||||
if (!isset($this->lijst->scores)) return;
|
|
||||||
if ($this->lijst->vorm != 2) return;
|
|
||||||
$this->lijst->metingen = 0;
|
|
||||||
$this->lijst->aantalorgs = 0;
|
|
||||||
|
|
||||||
if ($this->soort == 4) {
|
|
||||||
$gevuld = $this->CI->Scores_model->fCountGevuldeVersies($this->lijst->orgversieid, $this->orgid);
|
|
||||||
if($gevuld ){
|
|
||||||
$this->lijst->metingen = $gevuld->aantal;}
|
|
||||||
};
|
|
||||||
|
|
||||||
if ($this->soort == 3) {
|
|
||||||
$gevuld = $this->CI->Scores_model->fCountGevuldeBestuurVersies($this->lijst->orgversieid, $this->orgid);
|
|
||||||
if($gevuld){
|
|
||||||
$this->lijst->metingen = $gevuld->aantal;
|
|
||||||
$this->lijst->aantalorgs = $gevuld->aantalorgs;}
|
|
||||||
};
|
|
||||||
|
|
||||||
if ($this->soort == 2) {
|
|
||||||
|
|
||||||
$this->onderorgs = $this->CI->Organisaties_model->getscholenonderkamer($this->orgid);
|
|
||||||
$this->setGevuldeVersies12();
|
|
||||||
$metingen = $this->CI->Scores_model->fCountGevuldeKamerEnSWVVersies($this->lijst->orgversieid, $this->orgstring);
|
|
||||||
if($metingen){
|
|
||||||
$this->lijst->metingen = $metingen->aantal;
|
|
||||||
$this->lijst->aantalorgs = $metingen->aantalorgs;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
if ($this->soort == 1) {
|
|
||||||
$this->onderorgs = $this->CI->Organisaties_model->getscholenonderswv($this->orgid);
|
|
||||||
$this->setGevuldeVersies12();
|
|
||||||
$metingen = $this->CI->Scores_model->fCountGevuldeKamerEnSwvVersies($this->lijst->orgversieid, $this->orgstring);
|
|
||||||
if($metingen){
|
|
||||||
$this->lijst->metingen = $metingen->aantal;
|
|
||||||
$this->lijst->aantalorgs = $metingen->aantalorgs;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
private function setGevuldeVersies12(){
|
|
||||||
$orgids = [];
|
|
||||||
if (count($this->onderorgs) > 0) {
|
|
||||||
foreach ($this->onderorgs as $index => $this->org) {
|
|
||||||
$orgids[] = $this->org->id;
|
|
||||||
}
|
|
||||||
$this->orgstring = implode(',', $orgids);
|
|
||||||
} else $this->orgstring = false;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private function setMetingenVergelijking(){
|
|
||||||
if(!isset($this->lijst->vergelijkingen) || !($this->lijst->vergelijkingen)) return;
|
|
||||||
if($this->lijst->vorm != 1) return;
|
|
||||||
foreach($this->lijst->vergelijkingen as $index => $this->lijst->vergelijking) {
|
|
||||||
$this->lijst->metingenV= 0;
|
|
||||||
if(! isset($this->lijst->vergelijking->aantalscholen)){continue;}
|
|
||||||
$this->lijst->metingenV = $this->lijst->vergelijking->aantalscholen;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setMetingenVergelijkingIndividueel(){
|
|
||||||
if(! isset($this->lijst->vergelijkingen )|| ! ($this->lijst->vergelijkingen)) return;
|
// private function setSchoolMetingen(){
|
||||||
if($this->lijst->vorm != 2) return;
|
//
|
||||||
$this->lijst->metingenV = new stdClass();
|
// if($this->lijst->vorm != 1) return;
|
||||||
$this->lijst->metingenV = 0;
|
// if(!$this->lijst->scores) $this->lijst->aantalorgs = 0;
|
||||||
foreach($this->lijst->vergelijkingen as $index => $this->lijst->vergelijking) {
|
// else if ($this->soort == 4) $this->lijst->aantalorgs = 1;
|
||||||
if(! isset($this->lijst->vergelijking->aantallijsten)){continue;}
|
// else {
|
||||||
$this->lijst->metingenV = $this->lijst->vergelijking->aantallijsten;
|
// if(! isset($this->lijst->scores[0]->aantalscholen)) $this->lijst->aantalorgs = 0;
|
||||||
break;
|
//
|
||||||
}
|
// else {
|
||||||
}
|
// $this->lijst->aantalorgs = $this->lijst->scores[0]->aantalscholen;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// private function setIndividueleMetingen(){
|
||||||
|
// if (!isset($this->lijst->scores)) return;
|
||||||
|
// if ($this->lijst->vorm != 2) return;
|
||||||
|
// $this->lijst->metingen = 0;
|
||||||
|
// $this->lijst->aantalorgs = 0;
|
||||||
|
//
|
||||||
|
// if ($this->soort == 4) {
|
||||||
|
// $gevuld = $this->CI->Scores_model->fCountGevuldeVersies($this->lijst->orgversieid, $this->orgid);
|
||||||
|
// if($gevuld ){
|
||||||
|
// $this->lijst->metingen = $gevuld->aantal;}
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// if ($this->soort == 3) {
|
||||||
|
// $gevuld = $this->CI->Scores_model->fCountGevuldeBestuurVersies($this->lijst->orgversieid, $this->orgid);
|
||||||
|
// if($gevuld){
|
||||||
|
// $this->lijst->metingen = $gevuld->aantal;
|
||||||
|
// $this->lijst->aantalorgs = $gevuld->aantalorgs;}
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// if ($this->soort == 2) {
|
||||||
|
//
|
||||||
|
// $this->onderorgs = $this->CI->Organisaties_model->getscholenonderkamer($this->orgid);
|
||||||
|
// $this->setGevuldeVersies12();
|
||||||
|
// $metingen = $this->CI->Scores_model->fCountGevuldeKamerEnSWVVersies($this->lijst->orgversieid, $this->orgstring);
|
||||||
|
// if($metingen){
|
||||||
|
// $this->lijst->metingen = $metingen->aantal;
|
||||||
|
// $this->lijst->aantalorgs = $metingen->aantalorgs;
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// if ($this->soort == 1) {
|
||||||
|
// $this->onderorgs = $this->CI->Organisaties_model->getscholenonderswv($this->orgid);
|
||||||
|
// $this->setGevuldeVersies12();
|
||||||
|
// $metingen = $this->CI->Scores_model->fCountGevuldeKamerEnSwvVersies($this->lijst->orgversieid, $this->orgstring);
|
||||||
|
// if($metingen){
|
||||||
|
// $this->lijst->metingen = $metingen->aantal;
|
||||||
|
// $this->lijst->aantalorgs = $metingen->aantalorgs;
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
// }
|
||||||
|
|
||||||
|
// private function setGevuldeVersies12(){
|
||||||
|
// $orgids = [];
|
||||||
|
// if (count($this->onderorgs) > 0) {
|
||||||
|
// foreach ($this->onderorgs as $index => $this->org) {
|
||||||
|
// $orgids[] = $this->org->id;
|
||||||
|
// }
|
||||||
|
// $this->orgstring = implode(',', $orgids);
|
||||||
|
// } else $this->orgstring = false;
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
|
// private function setMetingenVergelijking(){
|
||||||
|
// if(!isset($this->lijst->vergelijkingen) || !($this->lijst->vergelijkingen)) return;
|
||||||
|
// if($this->lijst->vorm != 1) return;
|
||||||
|
// foreach($this->lijst->vergelijkingen as $index => $this->lijst->vergelijking) {
|
||||||
|
// $this->lijst->metingenV= 0;
|
||||||
|
// if(! isset($this->lijst->vergelijking->aantalscholen)){continue;}
|
||||||
|
// $this->lijst->metingenV = $this->lijst->vergelijking->aantalscholen;
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
|
// private function setMetingenVergelijkingIndividueel(){
|
||||||
|
// if(! isset($this->lijst->vergelijkingen )|| ! ($this->lijst->vergelijkingen)) return;
|
||||||
|
// if($this->lijst->vorm != 2) return;
|
||||||
|
// $this->lijst->metingenV = new stdClass();
|
||||||
|
// $this->lijst->metingenV = 0;
|
||||||
|
// foreach($this->lijst->vergelijkingen as $index => $this->lijst->vergelijking) {
|
||||||
|
// if(! isset($this->lijst->vergelijking->aantallijsten)){continue;}
|
||||||
|
// $this->lijst->metingenV = $this->lijst->vergelijking->aantallijsten;
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
private function setResultaten(){
|
private function setResultaten(){
|
||||||
switch($this->soort) {
|
switch($this->soort) {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ class Swvscores
|
|||||||
private $swvnaam;
|
private $swvnaam;
|
||||||
private $orgids;
|
private $orgids;
|
||||||
private $scores;
|
private $scores;
|
||||||
|
private $metingen;
|
||||||
|
|
||||||
|
|
||||||
public function __construct( $orgversieid, $orgid, $vorm)
|
public function __construct( $orgversieid, $orgid, $vorm)
|
||||||
@@ -23,6 +24,10 @@ class Swvscores
|
|||||||
return $this->scores;
|
return $this->scores;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getMetingen(){
|
||||||
|
return $this->metingen;
|
||||||
|
}
|
||||||
|
|
||||||
public function getOrgnaam(){
|
public function getOrgnaam(){
|
||||||
return $this->swvnaam;
|
return $this->swvnaam;
|
||||||
}
|
}
|
||||||
@@ -34,6 +39,7 @@ class Swvscores
|
|||||||
$this->setSWVnaam();
|
$this->setSWVnaam();
|
||||||
$this->setScholenString();
|
$this->setScholenString();
|
||||||
$this->setScores();
|
$this->setScores();
|
||||||
|
$this->setMetingen();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setOrg(){
|
private function setOrg(){
|
||||||
@@ -64,7 +70,11 @@ class Swvscores
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function setScores(){
|
private function setScores(){
|
||||||
$this->scores = $this->CI->Scores_model->calculateOverScholen($this->orgversieid, $this->orgids);
|
$this->scores = $this->CI->Scores_model->getgemscores($this->orgversieid, $this->orgids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function setMetingen(){
|
||||||
|
$this->metingen = $this->CI->Scores_model->fCountGevuldeVersiesNieuw($this->orgversieid, $this->orgids);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -83,7 +83,10 @@ class Userlijsten
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function setLabels(){
|
private function setLabels(){
|
||||||
$this->lijst->labels = $this->CI->Labels_model->getalllabels($this->modulenr);
|
// $this->lijst->labels = $this->CI->Labels_model->getalllabels($this->modulenr);
|
||||||
|
$this->lijst->label = $this->CI->Labels_model->gettabellabel($this->modulenr);
|
||||||
|
$this->lijst->label2 = $this->CI->Labels_model->getresultaatlabel($this->modulenr);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setAmbities(){
|
private function setAmbities(){
|
||||||
@@ -134,32 +137,43 @@ class Userlijsten
|
|||||||
|
|
||||||
|
|
||||||
private function loopVergelijkingScores(){
|
private function loopVergelijkingScores(){
|
||||||
if( (!isset($this->lijst->vergelijkingen))) return;
|
if( (!isset($this->lijst->vergelijkingen) ||$this->lijst->vergelijkingen== false )) return;
|
||||||
for($i = 0; $i < count($this->lijst->vergelijkingen); $i++){
|
for($i = 0; $i < count($this->lijst->scores); $i++){
|
||||||
$this->setVergelijkingScores($i);
|
$this->setVergelijkingScores($i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setVergelijkingScores($i){
|
private function setVergelijkingScores($i){
|
||||||
if($this->lijst->scores[$i]) {
|
if($this->lijst->vergelijkingen[$i]) {
|
||||||
$this->lijst->scores[$i]->gemV = $this->lijst->vergelijkingen[$i]->gem;
|
$this->lijst->scores[$i]->gemV = $this->lijst->vergelijkingen[$i]->gem;
|
||||||
$this->lijst->scores[$i]->kleurV = $this->lijst->vergelijkingen[$i]->kleur;
|
$this->lijst->scores[$i]->kleurV = $this->lijst->vergelijkingen[$i]->kleur;
|
||||||
|
$this->lijst->scores[$i]->disabledV = $this->lijst->vergelijkingen[$i]->disabled;
|
||||||
|
$this->lijst->scores[$i]->disablenvtV = $this->lijst->vergelijkingen[$i]->disablenvt;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private function setIndividueleMetingen(){
|
private function setIndividueleMetingen(){
|
||||||
if(!isset($this->lijst->scores)) return;
|
if(!isset($this->lijst->scores)||$this->lijst->scores == false ) return;
|
||||||
$this->lijst->metingen = $this->gemiddeldeScores->getAantalLeerkrachten();
|
$this->lijst->metingen = 1;
|
||||||
|
$this->lijst->aantalorgs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private function setMetingenVergelijkingIndividueel(){
|
private function setMetingenVergelijkingIndividueel(){
|
||||||
if(! isset($this->lijst->vergelijkingen)) return;
|
if(! isset($this->lijst->vergelijkingen)||$this->lijst->vergelijkingen == false ) return;
|
||||||
foreach($this->lijst->vergelijkingen as $index => $this->lijst->vergelijking) {
|
foreach($this->lijst->vergelijkingen as $index => $this->lijst->vergelijking) {
|
||||||
$this->lijst->metingenV = $this->lijst->vergelijking->aantallijsten;
|
$metingenV = $this->kamerScores->getMetingen();
|
||||||
return;
|
if($metingenV) {
|
||||||
|
$this->lijst->metingenV = $metingenV->aantal;
|
||||||
|
$this->lijst->aantalorgsV = $metingenV->aantalorgs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private function setVNaam(){
|
private function setVNaam(){
|
||||||
$this->lijst->vNaam = $this->kamerScores->getOrgnaam();
|
$this->lijst->vNaam = $this->kamerScores->getOrgnaam();
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ class Phantom_model extends CI_Model{
|
|||||||
if( $margins ) $data['margins'] = serialize($margins);
|
if( $margins ) $data['margins'] = serialize($margins);
|
||||||
|
|
||||||
curl_setopt_array($curl, array(
|
curl_setopt_array($curl, array(
|
||||||
|
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0),
|
||||||
CURLOPT_RETURNTRANSFER => 1,
|
CURLOPT_RETURNTRANSFER => 1,
|
||||||
CURLOPT_URL => 'https://print.pensare-services.nl/test/1',
|
CURLOPT_URL => 'https://print.pensare-services.nl/test/1',
|
||||||
CURLOPT_POST => 1,
|
CURLOPT_POST => 1,
|
||||||
|
|||||||
@@ -34,10 +34,15 @@ class Ambities_model extends MY_Model{
|
|||||||
return $this->get_query_row();
|
return $this->get_query_row();
|
||||||
}
|
}
|
||||||
function getambitie($orgversieid, $orgid){
|
function getambitie($orgversieid, $orgid){
|
||||||
$this->sql="SELECT A.id, gem_score AS gemscore, x_ijkpunten AS xijkpunten , z_procent AS zprocent
|
$this->sql="SELECT A.id, gem_score AS gemscore, x_ijkpunten AS xijkpuntenoud, COUNT(Y.id) AS xijkpunten, z_procent AS zprocent
|
||||||
FROM tb_ambities A
|
FROM tb_ambities A
|
||||||
|
JOIN tb_orgversies OV ON A.orgversie_id = OV.id
|
||||||
|
JOIN tb_versies V ON OV.versie_id = V.id
|
||||||
|
JOIN tb_ijkpunten Y ON Y.versie_id = V.id
|
||||||
WHERE A.organisatie_id = {$orgid}
|
WHERE A.organisatie_id = {$orgid}
|
||||||
AND A.orgversie_id = {$orgversieid}";
|
AND A.orgversie_id = {$orgversieid}
|
||||||
|
AND Y.disabled = 'F'
|
||||||
|
GROUP BY A.id ";
|
||||||
return $this->get_query_row();
|
return $this->get_query_row();
|
||||||
}
|
}
|
||||||
function getdefault($aantalY){
|
function getdefault($aantalY){
|
||||||
|
|||||||
@@ -20,6 +20,16 @@ class Ijkpunten_model extends MY_Model{
|
|||||||
ORDER BY Y.nummer ";
|
ORDER BY Y.nummer ";
|
||||||
return $this->get_query_result();
|
return $this->get_query_result();
|
||||||
}
|
}
|
||||||
|
function getijkpuntenMetIndicatoren($orgversieid){
|
||||||
|
$this->sql="SELECT Y.id, Y.nummer,Y.omschrijving,Y.toelichting, disabled
|
||||||
|
FROM tb_orgversies OV
|
||||||
|
JOIN tb_ijkpunten Y ON Y.versie_id = OV.versie_id
|
||||||
|
JOIN tb_indicatoren I ON Y.id = I.ijkpunt_id
|
||||||
|
WHERE OV.id ={$orgversieid}
|
||||||
|
GROUP BY Y.nummer
|
||||||
|
ORDER BY Y.nummer ";
|
||||||
|
return $this->get_query_result();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -27,12 +37,13 @@ class Ijkpunten_model extends MY_Model{
|
|||||||
$this->sql="SELECT COUNT(Y.id) AS aantalY
|
$this->sql="SELECT COUNT(Y.id) AS aantalY
|
||||||
FROM tb_orgversies OV
|
FROM tb_orgversies OV
|
||||||
JOIN tb_ijkpunten Y ON Y.versie_id = OV.versie_id
|
JOIN tb_ijkpunten Y ON Y.versie_id = OV.versie_id
|
||||||
WHERE OV.id ={$orgversieid} ";
|
WHERE OV.id ={$orgversieid}
|
||||||
|
AND Y.disabled = 'F' ";
|
||||||
return $this->get_query_row('aantalY');
|
return $this->get_query_row('aantalY');
|
||||||
}
|
}
|
||||||
|
|
||||||
function getijkpunten1($versieid){
|
function getijkpunten1($versieid){
|
||||||
$this->sql="SELECT Y.id, Y.nummer,Y.omschrijving,Y.toelichting
|
$this->sql="SELECT Y.id, Y.nummer,Y.omschrijving,Y.toelichting, Y.disabled
|
||||||
FROM tb_ijkpunten Y
|
FROM tb_ijkpunten Y
|
||||||
WHERE Y.versie_id ={$versieid}
|
WHERE Y.versie_id ={$versieid}
|
||||||
ORDER BY Y.nummer ";
|
ORDER BY Y.nummer ";
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||||
|
|
||||||
|
/**Scorekleuren_model november 2031 */
|
||||||
|
|
||||||
|
class Scorekleuren_model extends MY_Model{
|
||||||
|
|
||||||
|
protected $tablename = 'tb_scorekleuren';
|
||||||
|
|
||||||
|
function __construct(){
|
||||||
|
parent::__construct();
|
||||||
|
$models = array('');
|
||||||
|
$this->load->model($models);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getGemiddeldeKleur($scoretype, $gemiddelde){
|
||||||
|
$this->sql="SELECT kleurcode, nummer, ondergrens, bovengrens
|
||||||
|
FROM tb_scorekleuren
|
||||||
|
WHERE scoretype = {$scoretype}
|
||||||
|
AND bovengrens > {$gemiddelde}
|
||||||
|
AND ondergrens <= {$gemiddelde}
|
||||||
|
AND disabled = 'F' ";
|
||||||
|
|
||||||
|
return $this->get_query_row();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -25,9 +25,65 @@ class Scores_model extends MY_Model{
|
|||||||
|
|
||||||
return $this->get_query_result();
|
return $this->get_query_result();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function calculateindividualscores($orgversieid, $orgid, $userid){
|
function calculateindividualscores($orgversieid, $orgid, $userid){
|
||||||
|
$this->sql="SELECT SC.id, filledversion_id, SC.ijkpunt_id, scoretype, score, Y.disabled,
|
||||||
|
SUM(CASE WHEN Y.disabled = 'T' THEN 0
|
||||||
|
WHEN Y.disabled = 'F' THEN
|
||||||
|
CASE
|
||||||
|
WHEN SC.scoretype = 1 THEN SC.score * 10 * Indi.gewicht
|
||||||
|
WHEN SC.scoretype = 2 THEN SC.score * Indi.gewicht
|
||||||
|
WHEN (SC.scoretype = 3 OR SC.scoretype = 5) THEN
|
||||||
|
CASE
|
||||||
|
WHEN SC.score = 1 THEN 100 * Indi.gewicht
|
||||||
|
WHEN (SC.score = 2 OR SC.score = 0) THEN 0
|
||||||
|
ELSE 50 * Indi.gewicht
|
||||||
|
END
|
||||||
|
WHEN SC.scoretype = 4 THEN
|
||||||
|
CASE
|
||||||
|
WHEN SC.score = 1 THEN 100 * Indi.gewicht
|
||||||
|
ELSE 0
|
||||||
|
END
|
||||||
|
WHEN SC.scoretype = 6 THEN
|
||||||
|
CASE
|
||||||
|
WHEN SC.score = 2 THEN 60 * Indi.gewicht
|
||||||
|
WHEN SC.score = 3 THEN 100 * Indi.gewicht
|
||||||
|
ELSE 0
|
||||||
|
END
|
||||||
|
WHEN SC.scoretype = 7 THEN
|
||||||
|
CASE
|
||||||
|
WHEN SC.score = 1 THEN 100 * Indi.gewicht
|
||||||
|
WHEN SC.score = 2 THEN 66.6 * Indi.gewicht
|
||||||
|
WHEN SC.score = 3 THEN 33.3 * Indi.gewicht
|
||||||
|
ELSE 0
|
||||||
|
END
|
||||||
|
ELSE 0
|
||||||
|
END
|
||||||
|
ELSE 0
|
||||||
|
END) AS somscore,
|
||||||
|
|
||||||
|
SUM( Indi.gewicht ) AS num,
|
||||||
|
SUM(CASE WHEN SC.scoretype = 4 AND SC.score = 3 THEN 1
|
||||||
|
ELSE 0
|
||||||
|
END) AS aantalnvt,
|
||||||
|
SUM(CASE WHEN SC.scoretype = 4 THEN 1
|
||||||
|
ELSE 0
|
||||||
|
END) AS aantalvier,
|
||||||
|
Y.nummer, Y.omschrijving, 0 AS aantalscholen, Y.toelichting
|
||||||
|
FROM tb_filledversions FV
|
||||||
|
JOIN tb_scores SC ON SC.filledversion_id = FV.id
|
||||||
|
JOIN tb_indicatoren Indi ON Indi.id = SC.indicator_id
|
||||||
|
JOIN tb_ijkpunten Y ON Y.id = SC.ijkpunt_id
|
||||||
|
WHERE FV.orgversie_id = {$orgversieid}
|
||||||
|
AND FV.organisatie_id = {$orgid}
|
||||||
|
AND FV.user_id ={$userid}
|
||||||
|
AND FV.meetellen = 1
|
||||||
|
GROUP BY SC.ijkpunt_id
|
||||||
|
ORDER BY Y.nummer ";
|
||||||
|
return $this->get_query_result();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function calculateindividualscoresoud($orgversieid, $orgid, $userid){
|
||||||
$this->sql="SELECT SC.id, filledversion_id, SC.ijkpunt_id, scoretype, score,
|
$this->sql="SELECT SC.id, filledversion_id, SC.ijkpunt_id, scoretype, score,
|
||||||
SUM(CASE
|
SUM(CASE
|
||||||
WHEN SC.scoretype = 1 THEN SC.score * 10 * Indi.gewicht
|
WHEN SC.scoretype = 1 THEN SC.score * 10 * Indi.gewicht
|
||||||
@@ -419,7 +475,7 @@ class Scores_model extends MY_Model{
|
|||||||
FROM tb_scores S
|
FROM tb_scores S
|
||||||
JOIN tb_filledversions FV ON FV.id = S.filledversion_id
|
JOIN tb_filledversions FV ON FV.id = S.filledversion_id
|
||||||
WHERE FV.orgversie_id = {$orgversieid}
|
WHERE FV.orgversie_id = {$orgversieid}
|
||||||
AND FV.organisatie_id = {$orgid}
|
AND FV.organisatie_id IN ({$orgid})
|
||||||
AND FV.meetellen = 1
|
AND FV.meetellen = 1
|
||||||
AND S.score > 0
|
AND S.score > 0
|
||||||
GROUP BY S.filledversion_id
|
GROUP BY S.filledversion_id
|
||||||
@@ -460,6 +516,25 @@ class Scores_model extends MY_Model{
|
|||||||
return $this->get_query_row();
|
return $this->get_query_row();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fCountGevuldeVersiesNieuw($orgversieid, $orgids){
|
||||||
|
$this->sql =" SELECT SUM(CASE WHEN Q.aantal> 0 THEN Q.aantal
|
||||||
|
ELSE 0
|
||||||
|
END ) as aantal,
|
||||||
|
SUM(CASE WHEN Q.aantalorgs > 0 THEN Q.aantalorgs
|
||||||
|
ELSE 0
|
||||||
|
END ) as aantalorgs
|
||||||
|
FROM( SELECT COUNT(DISTINCT filledversion_id) as aantal, COUNT(DISTINCT(FV.organisatie_id)) AS aantalorgs
|
||||||
|
FROM tb_scores S
|
||||||
|
JOIN tb_filledversions FV ON FV.id = S.filledversion_id
|
||||||
|
WHERE FV.orgversie_id = {$orgversieid}
|
||||||
|
AND FV.organisatie_id IN ({$orgids})
|
||||||
|
AND FV.meetellen = 1
|
||||||
|
AND S.score > 0
|
||||||
|
GROUP BY FV.organisatie_id
|
||||||
|
HAVING COUNT(S.id) >= 5 ) AS Q ";
|
||||||
|
return $this->get_query_row();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function fGetGevuldeBestuurVersie($orgversieid, $bgid){
|
function fGetGevuldeBestuurVersie($orgversieid, $bgid){
|
||||||
@@ -558,8 +633,104 @@ class Scores_model extends MY_Model{
|
|||||||
return $lijst;
|
return $lijst;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getgemscores($orgversieid, $orgids){
|
||||||
|
$gevuldeversies = $this->fGetGevuldeVersies($orgversieid, $orgids);
|
||||||
|
if ($gevuldeversies) {
|
||||||
|
$this->sql = " SELECT Q.omschrijving, Q.toelichting, Q.ijkpunt_id, Q.kleurnummer, Q.disabled, Q.scoretype,
|
||||||
|
CASE WHEN Q.aantalvier > 0 THEN
|
||||||
|
CASE WHEN Q.aantalvier = Q.aantalnvt THEN
|
||||||
|
'T'
|
||||||
|
ELSE 'F'
|
||||||
|
END
|
||||||
|
ELSE 'F'
|
||||||
|
END AS disablenvt,
|
||||||
|
Q.sumscores/Q.sumgewicht AS gem, Q.kleurcode, Q.nummer, Q.ondergrens, Q.bovengrens
|
||||||
|
FROM (
|
||||||
|
SELECT Y.omschrijving, Y.toelichting,Y.id as ijkpunt_id,
|
||||||
|
Y.nummer, Y.disabled, SC.scoretype, SK.nummer AS kleurnummer,
|
||||||
|
SK.kleurcode, SK.ondergrens, SK.bovengrens,
|
||||||
|
SUM(CASE WHEN Y.disabled = 'T' THEN 0
|
||||||
|
WHEN Y.disabled = 'F' THEN
|
||||||
|
CASE WHEN SC.scoretype = 1
|
||||||
|
THEN (SC.score * I.gewicht * 10)
|
||||||
|
WHEN SC.scoretype = 2
|
||||||
|
THEN (SC.score * I.gewicht)
|
||||||
|
WHEN SC.scoretype = 3
|
||||||
|
THEN
|
||||||
|
CASE WHEN SC.score = 0
|
||||||
|
THEN 0
|
||||||
|
WHEN SC.score = 1
|
||||||
|
THEN (100 * I.gewicht)
|
||||||
|
WHEN SC.score = 2
|
||||||
|
THEN 0
|
||||||
|
WHEN SC.score = 3
|
||||||
|
THEN (50 * I.gewicht)
|
||||||
|
END
|
||||||
|
WHEN SC.scoretype = 4
|
||||||
|
THEN
|
||||||
|
CASE WHEN SC.score = 1
|
||||||
|
THEN (100 * I.gewicht)
|
||||||
|
ELSE 0
|
||||||
|
END
|
||||||
|
WHEN SC.scoretype = 5
|
||||||
|
THEN
|
||||||
|
CASE WHEN SC.score = 0
|
||||||
|
THEN 0
|
||||||
|
WHEN SC.score = 1
|
||||||
|
THEN (100 * I.gewicht)
|
||||||
|
WHEN SC.score = 2
|
||||||
|
THEN 0
|
||||||
|
WHEN SC.score = 3
|
||||||
|
THEN (50 * I.gewicht)
|
||||||
|
END
|
||||||
|
WHEN SC.scoretype = 6
|
||||||
|
THEN
|
||||||
|
CASE WHEN SC.score = 2
|
||||||
|
THEN (50 * I.gewicht)
|
||||||
|
WHEN SC.score = 3
|
||||||
|
THEN (100 * I.gewicht)
|
||||||
|
ELSE 0
|
||||||
|
END
|
||||||
|
WHEN SC.scoretype = 7
|
||||||
|
THEN
|
||||||
|
CASE WHEN SC.score = 1
|
||||||
|
THEN (100 * I.gewicht)
|
||||||
|
WHEN SC.score = 2
|
||||||
|
THEN (66.6 * I.gewicht)
|
||||||
|
WHEN SC.score = 3
|
||||||
|
THEN (33.3 * I.gewicht)
|
||||||
|
ELSE 0
|
||||||
|
END
|
||||||
|
ELSE 0
|
||||||
|
END
|
||||||
|
ELSE 0
|
||||||
|
END)AS sumscores,
|
||||||
|
SUM(CASE WHEN SC.scoretype = 4 AND SC.score = 3 THEN 1
|
||||||
|
ELSE 0
|
||||||
|
END) AS aantalnvt,
|
||||||
|
SUM(CASE WHEN SC.scoretype = 4 THEN 1
|
||||||
|
ELSE 0
|
||||||
|
END) AS aantalvier,
|
||||||
|
SUM(I.gewicht) AS sumgewicht
|
||||||
|
FROM tb_scores SC
|
||||||
|
JOIN tb_indicatoren I ON I.id = SC.indicator_id
|
||||||
|
JOIN tb_ijkpunten Y ON Y.id = SC.ijkpunt_id
|
||||||
|
JOIN tb_scorekleuren SK ON SK.scoretype = SC.scoretype
|
||||||
|
WHERE SC.filledversion_id IN ({$gevuldeversies})
|
||||||
|
AND SK.disabled = Y.disabled
|
||||||
|
GROUP BY SC.ijkpunt_id, SK.id
|
||||||
|
ORDER BY Y.nummer ) AS Q
|
||||||
|
HAVING Q.ondergrens <= gem AND Q.bovengrens > gem ";
|
||||||
|
}
|
||||||
|
else return false;
|
||||||
|
return $this->get_query_result();
|
||||||
|
}
|
||||||
|
|
||||||
function getgemscores($orgversieid, $orgid){
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function getgemscoresoud($orgversieid, $orgid){
|
||||||
$gevuldeversies = $this->fGetGevuldeVersies($orgversieid, $orgid);
|
$gevuldeversies = $this->fGetGevuldeVersies($orgversieid, $orgid);
|
||||||
|
|
||||||
$p = "SC.scoretype = 7";
|
$p = "SC.scoretype = 7";
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
|
|
||||||
$versie = $result['targetversie'];
|
$versie = $result['targetversie'];
|
||||||
$mbgrafiek = $result['grafiek1'];
|
$mbgrafiek = $result['grafiek1'];
|
||||||
|
// print_r($mbgrafiek);
|
||||||
|
// exit;
|
||||||
$imagemb =$this->Phantom_model->create_img($mbgrafiek, 'test', FALSE, FALSE, array(650, 300));
|
$imagemb =$this->Phantom_model->create_img($mbgrafiek, 'test', FALSE, FALSE, array(650, 300));
|
||||||
$imagedata = "<img src='data:image/png;base64,".$imagemb."' id='mod1image1'/>";
|
$imagedata = "<img src='data:image/png;base64,".$imagemb."' id='mod1image1'/>";
|
||||||
$pos = strpos($content,'mbgrafiek1');
|
$pos = strpos($content,'mbgrafiek1');
|
||||||
@@ -552,7 +554,7 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
$targetversieid = $this->gettargetversie($profielid, $orgid,$chapterid);
|
$targetversieid = $this->gettargetversie($profielid, $orgid,$chapterid);
|
||||||
}
|
}
|
||||||
if ($targetversieid) {
|
if ($targetversieid) {
|
||||||
$scores = $this->Scores_model->calculateschool($targetversieid, $orgid);
|
$scores = $this->Scores_model->getgemscores($targetversieid, $orgid);
|
||||||
$ambitie = $this->Ambities_model->getOrgAmbities($targetversieid, $orgid);
|
$ambitie = $this->Ambities_model->getOrgAmbities($targetversieid, $orgid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -569,33 +571,41 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
$hoogstescore = -1;
|
$hoogstescore = -1;
|
||||||
$welkelaagste = 0;
|
$welkelaagste = 0;
|
||||||
$laagstescore = 101;
|
$laagstescore = 101;
|
||||||
if ($scores){
|
if ($scores) {
|
||||||
foreach($scores as $score){
|
foreach ($scores as $score) {
|
||||||
$gem = 0;
|
$score->gem = round($score->gem);
|
||||||
|
//
|
||||||
|
// if ($score->num > 0) {
|
||||||
|
// $gem=$score->somscore / $score->num;
|
||||||
|
// };
|
||||||
|
//LS ACTIEF GEMAAKT
|
||||||
|
$score->kleurcode = $this->kleurcodes->getkleur($score->gem);
|
||||||
|
|
||||||
if ($score->num > 0) {
|
if ($score->disabled == 'F' && $score->disablenvt == 'F') {
|
||||||
$gem=$score->somscore / $score->num;
|
$totgem = $totgem + $score->gem;
|
||||||
};
|
$totaantal = $totaantal + 1;
|
||||||
$totgem= $totgem + $gem;
|
|
||||||
$totaantal=$totaantal + 1;
|
|
||||||
|
|
||||||
$score->kleurcode=$this->kleurcodes->getkleur($gem);
|
if ($score->gem > $hoogstescore) {
|
||||||
|
$hoogstescore = $score->gem;
|
||||||
if ($gem > $hoogstescore){
|
|
||||||
$hoogstescore = $gem;
|
|
||||||
$welkehoogste = $score->nummer;
|
$welkehoogste = $score->nummer;
|
||||||
}
|
}
|
||||||
if ($gem <= $laagstescore){
|
if ($score->gem <= $laagstescore) {
|
||||||
$laagstescore = $gem;
|
$laagstescore = $score->gem;
|
||||||
$welkelaagste = $score->nummer;
|
$welkelaagste = $score->nummer;
|
||||||
}
|
}
|
||||||
if ($ambitie && $gem >= $ambitie->zprocent) {$ijkpuntenok = $ijkpuntenok + 1;};
|
if ($ambitie && $score->gem >= $ambitie->zprocent) {
|
||||||
|
$ijkpuntenok = $ijkpuntenok + 1;
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
if ($totaantal >0){ $totgem= round($totgem/ $totaantal, 2);}
|
|
||||||
}
|
}
|
||||||
$totgemkleur= $this->kleurcodes->getkleur($totgem);
|
if ($totaantal > 0) {
|
||||||
|
$totgem = round($totgem / $totaantal, 0);
|
||||||
|
}
|
||||||
|
$totgemkleur = $this->kleurcodes->getkleur($totgem);
|
||||||
// foreach scores bereken som en dus totgem en ijkpuntenok
|
// foreach scores bereken som en dus totgem en ijkpuntenok
|
||||||
|
}
|
||||||
|
|
||||||
$tabelid='';
|
$tabelid='';
|
||||||
switch ($module){
|
switch ($module){
|
||||||
case 1: $tabelid = "tabelmb1"; break;
|
case 1: $tabelid = "tabelmb1"; break;
|
||||||
@@ -616,7 +626,7 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
"labels" => $labels,
|
"labels" => $labels,
|
||||||
"scores" => $scores,
|
"scores" => $scores,
|
||||||
'totgem' => $totgem,
|
'totgem' => $totgem,
|
||||||
'totgemkleur' =>$totgem,
|
'totgemkleur' =>$totgemkleur,
|
||||||
'ijkpuntenok' => $ijkpuntenok,
|
'ijkpuntenok' => $ijkpuntenok,
|
||||||
'welkehoogste' => $welkehoogste,
|
'welkehoogste' => $welkehoogste,
|
||||||
'hoogstescore' => round($hoogstescore,1),
|
'hoogstescore' => round($hoogstescore,1),
|
||||||
@@ -668,16 +678,33 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
$lks = $this->Filledversions_model->getlks($orgid, $orgversieid);
|
$lks = $this->Filledversions_model->getlks($orgid, $orgversieid);
|
||||||
if ($lks){
|
if ($lks){
|
||||||
foreach($lks as $lk){
|
foreach($lks as $lk){
|
||||||
$lk->scores = $this->Scores_model->getlkscores($lk->filledversionid);
|
$lk->scores = $this->Scores_model->calculateindividualscores($orgversieid, $orgid, $lk->user_id);
|
||||||
$som = 0;
|
$som = 0;
|
||||||
|
|
||||||
if ($lk->scores){
|
if ($lk->scores){
|
||||||
foreach($lk->scores as $score){
|
foreach($lk->scores as $index => $score){
|
||||||
|
$aftrek = 0;
|
||||||
$score->gem = new stdClass();
|
$score->gem = new stdClass();
|
||||||
$score->gem = $score->somcore / $score->num;
|
$score->gem = 0;
|
||||||
|
$score->colorcode = '#808080';
|
||||||
|
$score->disablenvt = 'F';
|
||||||
|
if($score->aantalvier > 0 && $score->aantalvier == $score->aantalnvt) $score->disablenvt = 'T';
|
||||||
|
if($score->disabled == 'F' && $score->disablenvt == 'F') {
|
||||||
|
$score->gem = $score->somscore / $score->num;
|
||||||
$score->colorcode = $this->kleurcodes->getkleur($score->gem);
|
$score->colorcode = $this->kleurcodes->getkleur($score->gem);
|
||||||
$som = $som + $score->gem;
|
$som = $som + $score->gem;
|
||||||
}
|
}
|
||||||
$lk->lkgem = round($som / $aantalijkpunten, 0);
|
|
||||||
|
if($score->disabled == 'T') $aftrek++;
|
||||||
|
if($score->disablenvt == 'T') $aftrek++;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$deler = $aantalijkpunten - $aftrek;
|
||||||
|
if ($deler > 0) $lk->lkgem = round($som / $aantalijkpunten, 0);
|
||||||
|
else $lk->gem = 0;
|
||||||
$lk->colorcode = $this->kleurcodes->getkleur($lk->lkgem);
|
$lk->colorcode = $this->kleurcodes->getkleur($lk->lkgem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -696,11 +723,21 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
|
|
||||||
if ($lks[0]->scores){
|
if ($lks[0]->scores){
|
||||||
$som = 0;
|
$som = 0;
|
||||||
|
$aftrek = 0;
|
||||||
foreach($lks[0]->scores as $score){
|
foreach($lks[0]->scores as $score){
|
||||||
|
$score->colorcode = '#808080';
|
||||||
|
if($score->disabled == 'F' && $score->disablenvt == 'F') {
|
||||||
$score->colorcode = $this->kleurcodes->getkleur($score->gem);
|
$score->colorcode = $this->kleurcodes->getkleur($score->gem);
|
||||||
$som = $som + $score->gem;
|
$som = $som + $score->gem;
|
||||||
}
|
}
|
||||||
$lks[0]->lkgem = round($som / $aantalijkpunten, 0);
|
if($score->disabled =='T' || $score->disablenvt =='T' ) $aftrek++;
|
||||||
|
}
|
||||||
|
if($aantalijkpunten - $aftrek > 0) {
|
||||||
|
$lks[0]->lkgem = round($som / ($aantalijkpunten - $aftrek), 0);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$lks[0]->lkgem = 0;
|
||||||
|
}
|
||||||
$lks[0]->colorcode = $this->kleurcodes->getkleur($lks[0]->lkgem);
|
$lks[0]->colorcode = $this->kleurcodes->getkleur($lks[0]->lkgem);
|
||||||
}
|
}
|
||||||
return $lks;
|
return $lks;
|
||||||
@@ -719,7 +756,7 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
}
|
}
|
||||||
if ($targetversieid){
|
if ($targetversieid){
|
||||||
$targetversie = $this->Orgversies_model->get_record_by_id($targetversieid);
|
$targetversie = $this->Orgversies_model->get_record_by_id($targetversieid);
|
||||||
$scores = $this->Scores_model->calculateschool($targetversieid, $orgid);
|
$scores = $this->Scores_model->getgemscores($targetversieid, $orgid);
|
||||||
$ambitie = $this->Ambities_model->getOrgAmbities($targetversieid, $orgid);
|
$ambitie = $this->Ambities_model->getOrgAmbities($targetversieid, $orgid);
|
||||||
|
|
||||||
if($targetversie->scoretype == 7){
|
if($targetversie->scoretype == 7){
|
||||||
@@ -743,10 +780,12 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
|
|
||||||
foreach($scores as $score){
|
foreach($scores as $score){
|
||||||
$score->gem = 0;
|
$score->gem = 0;
|
||||||
if ($score->num > 0) {
|
if (isset($score->gem)) {
|
||||||
$score->gem= round($score->somscore / $score->num,1);
|
$score->gem= round($score->gem);
|
||||||
}
|
}
|
||||||
$score->huidig = $this->kleurcodes->getnummer($score->gem);
|
$score->kleur = '#808080';
|
||||||
|
if(isset($score->kleurcode)) $score->kleur = $score->kleurcode;
|
||||||
|
$score->huidig = $score->kleurnummer;
|
||||||
if($targetversie->scoretype == 7){
|
if($targetversie->scoretype == 7){
|
||||||
if($score->gem == $grens3) $score->huidig = 4;
|
if($score->gem == $grens3) $score->huidig = 4;
|
||||||
if($score->gem < $grens3) $score->huidig = 3;
|
if($score->gem < $grens3) $score->huidig = 3;
|
||||||
@@ -755,9 +794,14 @@ class Sopinhouden_model extends MY_Model{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($gewenst){
|
if ($gewenst){
|
||||||
|
|
||||||
$score->wens = $gewenst[$i]->wens;
|
$score->wens = $gewenst[$i]->wens;
|
||||||
$i = $i + 1;
|
$i = $i + 1;
|
||||||
};
|
}
|
||||||
|
else{
|
||||||
|
$score->wens = 3;
|
||||||
|
$score->wenskleur = '#9fdf9f';
|
||||||
|
}
|
||||||
}; //foreach
|
}; //foreach
|
||||||
|
|
||||||
$labels = $this->Labels_model->getalllabels($module);
|
$labels = $this->Labels_model->getalllabels($module);
|
||||||
|
|||||||
@@ -12,10 +12,12 @@ class Wenssituaties_model extends MY_Model{
|
|||||||
$this->load->model($models);
|
$this->load->model($models);
|
||||||
}
|
}
|
||||||
function getgewenst($orgversieid, $orgid){
|
function getgewenst($orgversieid, $orgid){
|
||||||
$this->sql = "SELECT id, ijkpunt_id, wens
|
$this->sql = "SELECT W.id, W.ijkpunt_id, W.wens, Y.disabled
|
||||||
FROM tb_wenssituaties
|
FROM tb_wenssituaties W
|
||||||
|
JOIN tb_ijkpunten Y ON W.ijkpunt_id = Y.id
|
||||||
WHERE organisatie_id = {$orgid}
|
WHERE organisatie_id = {$orgid}
|
||||||
AND orgversie_id = {$orgversieid}";
|
AND orgversie_id = {$orgversieid}
|
||||||
|
ORDER BY Y.nummer ";
|
||||||
return $this->get_query_result();
|
return $this->get_query_result();
|
||||||
}
|
}
|
||||||
function getgewenstvoorpartituur($orgversieid, $orgid){
|
function getgewenstvoorpartituur($orgversieid, $orgid){
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
### Send POST request with json body
|
||||||
|
POST https://print.pensare-services.nl/test/1
|
||||||
|
Content-Type: application/json
|
||||||
|
|
||||||
|
{
|
||||||
|
"html":"<h1>test</h1>",
|
||||||
|
"file":"test.png",
|
||||||
|
"app": "MONPAS"
|
||||||
|
}
|
||||||
|
|
||||||
@@ -45,12 +45,15 @@
|
|||||||
if(isset($score->omschrijving)){
|
if(isset($score->omschrijving)){
|
||||||
$omschrijving = $score->omschrijving;
|
$omschrijving = $score->omschrijving;
|
||||||
};
|
};
|
||||||
|
$kleur = '#808080';
|
||||||
|
if(isset($score->kleur) && $score->disabled == 'F' && $score->disablenvt =='F') $kleur = $score->kleur;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
labels.push(<?php $score->nummer ?>);
|
labels.push(<?php $score->nummer ?>);
|
||||||
scores.push({
|
scores.push({
|
||||||
y: <?= $score->gem ?>,
|
y: <?= $score->gem ?>,
|
||||||
color: '<?=$score->kleur ?>',
|
color: '<?=$kleur ?>',
|
||||||
name: '<?= $score->nummer ?>',
|
name: '<?= $score->nummer ?>',
|
||||||
soort: 'score',
|
soort: 'score',
|
||||||
versie: <?= $lijst->periodenummer ?>,
|
versie: <?= $lijst->periodenummer ?>,
|
||||||
@@ -235,8 +238,8 @@
|
|||||||
<?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
<?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($data['lijsten'] as $lijst){
|
<?php foreach ($data['lijsten'] as $lijst){
|
||||||
$kleur = isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '';
|
$kleur = $lijst->scores[$i]->disabled == 'T' || $lijst->scores[$i]->disablenvt == 'T' ? '' : (isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '');
|
||||||
$gem = isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : ''; ?>
|
$gem = $lijst->scores[$i]->disabled == 'T' ? 'uit' : ($lijst->scores[$i]->disablenvt == 'T' ? 'nvt' : (isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : '')); ?>
|
||||||
<td style="background-color: <?=$kleur ?> !important;
|
<td style="background-color: <?=$kleur ?> !important;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
text-align: right" >
|
text-align: right" >
|
||||||
|
|||||||
@@ -235,8 +235,8 @@
|
|||||||
<?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
<?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($data['lijsten'] as $lijst){
|
<?php foreach ($data['lijsten'] as $lijst){
|
||||||
$kleur = isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '';
|
$kleur = $lijst->scores[$i]->disabled == 'T' || $lijst->scores[$i]->disablenvt == 'T' ? '' : (isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '');
|
||||||
$gem = isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : ''; ?>
|
$gem = $lijst->scores[$i]->disabled == 'T' ? 'uit' : ($lijst->scores[$i]->disablenvt == 'T' ? 'nvt' : (isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : '')); ?>
|
||||||
<td style="background-color: <?=$kleur ?> !important;
|
<td style="background-color: <?=$kleur ?> !important;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
text-align: right" >
|
text-align: right" >
|
||||||
|
|||||||
@@ -233,8 +233,8 @@
|
|||||||
white-space: nowrap;" ><?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
white-space: nowrap;" ><?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($data['lijsten'] as $lijst){
|
<?php foreach ($data['lijsten'] as $lijst){
|
||||||
$kleur = isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '';
|
$kleur = $lijst->scores[$i]->disabled == 'T' || $lijst->scores[$i]->disablenvt == 'T' ? '' : (isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '');
|
||||||
$gem = isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : ''; ?>
|
$gem = $lijst->scores[$i]->disabled == 'T' ? 'uit' : ($lijst->scores[$i]->disablenvt == 'T' ? 'nvt' : (isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : '')); ?>
|
||||||
<td style="background-color: <?=$kleur ?> !important;
|
<td style="background-color: <?=$kleur ?> !important;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
text-align: right" >
|
text-align: right" >
|
||||||
|
|||||||
@@ -45,13 +45,15 @@
|
|||||||
$omschrijving = "gemiddelde";
|
$omschrijving = "gemiddelde";
|
||||||
if(isset($score->omschrijving)){
|
if(isset($score->omschrijving)){
|
||||||
$omschrijving = $score->omschrijving;
|
$omschrijving = $score->omschrijving;
|
||||||
|
$kleur = '#808080';
|
||||||
|
if(isset($score->kleur) && $score->disabled == 'F' && $score->disablenvt =='F') $kleur = $score->kleur;
|
||||||
};
|
};
|
||||||
?>
|
?>
|
||||||
|
|
||||||
labels.push(<?php $score->nummer ?>);
|
labels.push(<?php $score->nummer ?>);
|
||||||
scores.push({
|
scores.push({
|
||||||
y: <?= $score->gem ?>,
|
y: <?= $score->gem ?>,
|
||||||
color: '<?=$score->kleur ?>',
|
color: '<?=$kleur ?>',
|
||||||
name: '<?= $score->nummer ?>',
|
name: '<?= $score->nummer ?>',
|
||||||
soort: 'score',
|
soort: 'score',
|
||||||
versie: <?= $lijst->periodenummer ?>,
|
versie: <?= $lijst->periodenummer ?>,
|
||||||
@@ -234,8 +236,8 @@
|
|||||||
<?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
<?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($data['lijsten'] as $lijst){
|
<?php foreach ($data['lijsten'] as $lijst){
|
||||||
$kleur = isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '';
|
$kleur = $lijst->scores[$i]->disabled == 'T' || $lijst->scores[$i]->disablenvt == 'T' ? '' : (isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '');
|
||||||
$gem = isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : ''; ?>
|
$gem = $lijst->scores[$i]->disabled == 'T' ? 'uit' : ($lijst->scores[$i]->disablenvt == 'T' ? 'nvt' : (isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : '')); ?>
|
||||||
<td style="background-color: <?=$kleur ?> !important;
|
<td style="background-color: <?=$kleur ?> !important;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
text-align: right" >
|
text-align: right" >
|
||||||
|
|||||||
@@ -227,8 +227,8 @@
|
|||||||
<td style="overflow-x: hidden; overflow-y: hidden; text-overflow: ellipsis; white-space: nowrap;" ><?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
<td style="overflow-x: hidden; overflow-y: hidden; text-overflow: ellipsis; white-space: nowrap;" ><?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($data['lijsten'] as $lijst){
|
<?php foreach ($data['lijsten'] as $lijst){
|
||||||
$kleur = isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '';
|
$kleur = $lijst->scores[$i]->disabled == 'T' || $lijst->scores[$i]->disablenvt == 'T' ? '' : (isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '');
|
||||||
$gem = isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : ''; ?>
|
$gem = $lijst->scores[$i]->disabled == 'T' ? 'uit' : ($lijst->scores[$i]->disablenvt == 'T' ? 'nvt' : (isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : '')); ?>
|
||||||
<td style="background-color: <?=$kleur ?> !important;
|
<td style="background-color: <?=$kleur ?> !important;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
text-align: right" >
|
text-align: right" >
|
||||||
|
|||||||
@@ -227,8 +227,9 @@
|
|||||||
<td style="overflow-x: hidden; overflow-y: hidden; text-overflow: ellipsis; white-space: nowrap; " ><?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
<td style="overflow-x: hidden; overflow-y: hidden; text-overflow: ellipsis; white-space: nowrap; " ><?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?>
|
||||||
</td>
|
</td>
|
||||||
<?php foreach ($data['lijsten'] as $lijst){
|
<?php foreach ($data['lijsten'] as $lijst){
|
||||||
$kleur = isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '';
|
$kleur = $lijst->scores[$i]->disabled == 'T' || $lijst->scores[$i]->disablenvt == 'T' ? '' : (isset($lijst->scores[$i]->kleur) ? $lijst->scores[$i]->kleur : '');
|
||||||
$gem = isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : ''; ?>
|
$gem = $lijst->scores[$i]->disabled == 'T' ? 'uit' : ($lijst->scores[$i]->disablenvt == 'T' ? 'nvt' : (isset($lijst->scores[$i]->gem) ? $lijst->scores[$i]->gem : '')); ?>
|
||||||
|
|
||||||
<td style="background-color: <?=$kleur ?> !important;
|
<td style="background-color: <?=$kleur ?> !important;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
text-align: right" >
|
text-align: right" >
|
||||||
|
|||||||
@@ -280,7 +280,7 @@
|
|||||||
</th>
|
</th>
|
||||||
|
|
||||||
<th colspan="1"
|
<th colspan="1"
|
||||||
style="overflow: hidden; text-overflow: ellipsis; font-size: 10px; border-right: 2px solid white; padding-left: 3px;"
|
style="overflow: hidden; text-overflow: ellipsis; font-size: 10px;vertical-align: top; border-right: 2px solid white; padding-left: 3px;"
|
||||||
data-bind=" text: naamV">
|
data-bind=" text: naamV">
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -299,8 +299,9 @@
|
|||||||
style: {backgroundColor: kleur}">
|
style: {backgroundColor: kleur}">
|
||||||
</td>
|
</td>
|
||||||
<td colspan="1" style="text-align:right; vertical-align:top; padding-right: 5px; border-left: 1px solid #a07b8e; color:#ffffff;"
|
<td colspan="1" style="text-align:right; vertical-align:top; padding-right: 5px; border-left: 1px solid #a07b8e; color:#ffffff;"
|
||||||
data-bind= "text: gemV,
|
data-bind="text: gemV,
|
||||||
style: {backgroundColor: kleurV}">
|
style: {backgroundColor: kleurV}">
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -190,8 +190,9 @@
|
|||||||
<!-- ko foreach: ijkpunten -->
|
<!-- ko foreach: ijkpunten -->
|
||||||
|
|
||||||
<th class="clickable"
|
<th class="clickable"
|
||||||
|
data-bind="click: $parent.fToonToelichting"
|
||||||
style=" text-align:center; font-size: x-small; padding: 3px; border: 2px solid white; width: 30px;">
|
style=" text-align:center; font-size: x-small; padding: 3px; border: 2px solid white; width: 30px;">
|
||||||
<span data-bind="text: nummer, attr:{'title' : omschrijving}, click: $parent.fToonToelichting">
|
<span data-bind="text: nummer, attr:{'title' : omschrijving}">
|
||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
<!-- /ko -->
|
<!-- /ko -->
|
||||||
|
|||||||
@@ -13,10 +13,10 @@
|
|||||||
value : selectedOrgversion,
|
value : selectedOrgversion,
|
||||||
event : {change: fChangeVersion}">
|
event : {change: fChangeVersion}">
|
||||||
</select>
|
</select>
|
||||||
<!-- <span style="display: inline-block; float:right"-->
|
<span style="display: inline-block; float:right"
|
||||||
<!-- class="glyphicon glyphicon-print"-->
|
class="glyphicon glyphicon-print"
|
||||||
<!-- data-bind="click: fPrint">-->
|
data-bind="click: fPrint">
|
||||||
<!-- </span>-->
|
</span>
|
||||||
|
|
||||||
</h4>
|
</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -33,8 +33,15 @@
|
|||||||
|
|
||||||
<tbody data-bind="foreach:listitems">
|
<tbody data-bind="foreach:listitems">
|
||||||
<tr class="clickable" data-bind="click: $parent.fToonToelichting">
|
<tr class="clickable" data-bind="click: $parent.fToonToelichting">
|
||||||
<td style="width:30px; background-color:#6f0b3d; color:#ffffff" data-bind="text:nummer"> </td>
|
<td style="width:30px; "
|
||||||
<td style="background-color:#6f0b3d; color:#ffffff" data-bind="text: omschrijving"> </td>
|
data-bind= "text:nummer,
|
||||||
|
style: {color: disabled()? '#262626' : '#ffffff' ,
|
||||||
|
backgroundColor: disabled()? '#d9d9d9' : '#6f0b3d' }" >
|
||||||
|
</td>
|
||||||
|
<td data-bind= "text: disabled() ? omschrijving + ' (uitgezet)' : omschrijving,
|
||||||
|
style: {color: disabled()? '#262626' : '#ffffff',
|
||||||
|
backgroundColor: disabled() ? '#d9d9d9' : '#6f0b3d' }">
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan = 2>
|
<td colspan = 2>
|
||||||
@@ -42,24 +49,32 @@
|
|||||||
<table style="width:100%">
|
<table style="width:100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="header2" style="width: 3%;padding-left: 2px;text-align:right"> nr </th>
|
<th class="header2" style="width: 3%;padding-left: 2px;text-align:right"
|
||||||
<th class="header2" style="width: 60%;padding-left: 2px">indicator</th>
|
data-bind="style: {backgroundColor: disabled() ? '#d9d9d9' : '#e7e2e5'}"> nr
|
||||||
<th class="header2" style="width: 30%;padding-left: 2px;text-align:left"> score</th>
|
</th>
|
||||||
|
<th class="header2" style="width: 60%;padding-left: 2px"
|
||||||
|
data-bind="style: {backgroundColor: disabled() ? '#d9d9d9' : '#e7e2e5'}">indicator
|
||||||
|
</th>
|
||||||
|
<th class="header2" style="width: 30%;padding-left: 2px;text-align:left"
|
||||||
|
data-bind="style: {backgroundColor: disabled() ? '#d9d9d9' : '#e7e2e5'}"> score
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody data-bind="foreach: indicatorscores">
|
<tbody data-bind="foreach: indicatorscores">
|
||||||
<tr style="border-bottom: 1px solid #ebebeb">
|
<tr style="border-bottom: 1px solid #ebebeb">
|
||||||
<td style="text-align:right;vertical-align:top" data-bind="text: nummer">
|
<td style="text-align:right;vertical-align:top" data-bind="text: nummer,
|
||||||
|
style: {color: $parent.disabled()? '#d9d9d9' : '#262626' }">
|
||||||
</td>
|
</td>
|
||||||
<td data-bind="text: omschrijving" style="vertical-align:top">
|
<td data-bind="text: omschrijving,
|
||||||
|
style: {color: $parent.disabled()? '#d9d9d9' : '#262626' }" style="vertical-align:top">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span data-bind="visible: scoretype==1">
|
<span data-bind="visible: scoretype==1">
|
||||||
<input class="rapport"
|
<input class="rapport"
|
||||||
data-bind="textInput: score,
|
data-bind="textInput: score,
|
||||||
event:{input: $root.fUpdateScoretype12},
|
event:{input: $root.fUpdateScoretype12},
|
||||||
enable: $root.editok(),
|
enable: $root.editok() && $parent.disabled() == false,
|
||||||
attr:{'id' : $index}" />
|
attr:{'id' : $index}" />
|
||||||
</span>
|
</span>
|
||||||
<span data-bind="visible: scoretype == 2">
|
<span data-bind="visible: scoretype == 2">
|
||||||
@@ -67,16 +82,31 @@
|
|||||||
data-bind="textInput: score,
|
data-bind="textInput: score,
|
||||||
event:{input: $root.fUpdateScoretype12},
|
event:{input: $root.fUpdateScoretype12},
|
||||||
visible: scoretype==2,
|
visible: scoretype==2,
|
||||||
enable: $root.editok()" /> %
|
enable: $root.editok() && $parent.disabled() == false" /> %
|
||||||
</span>
|
</span>
|
||||||
<div data-bind="visible: scoretype==3 || scoretype == 4 || scoretype == 5 || scoretype == 6 || scoretype==7 ">
|
<div data-bind="visible: scoretype==3 || scoretype == 4 || scoretype == 5 || scoretype == 6 || scoretype==7 ">
|
||||||
|
<!-- ko if: $parent.disabled() == false -->
|
||||||
<!-- ko foreach: $root.scoreopties -->
|
<!-- ko foreach: $root.scoreopties -->
|
||||||
<!-- ko if: $parent.scoretype == type -->
|
<!-- ko if: $parent.scoretype == type -->
|
||||||
<input type='radio'
|
<input type='radio'
|
||||||
data-bind="checked: $parent.score(), event:{click: $root.fUpdateScoretypeVanaf3.bind($data, $parent.id)}, attr: {'name': $parent.id , 'value': value}, enable: $root.editok()" />
|
data-bind="checked: $parent.score(),
|
||||||
|
event:{click: $root.fUpdateScoretypeVanaf3.bind($data, $parent.id)},
|
||||||
|
attr: {'name': $parent.id , 'value': value},
|
||||||
|
enable: $root.editok() " />
|
||||||
<span style="vertical-align:top; display: inline-block; margin-left:5px;" data-bind="text: optie"> </span>
|
<span style="vertical-align:top; display: inline-block; margin-left:5px;" data-bind="text: optie"> </span>
|
||||||
<!-- /ko -->
|
<!-- /ko -->
|
||||||
<!-- /ko -->
|
<!-- /ko -->
|
||||||
|
<!-- /ko -->
|
||||||
|
<!-- ko if: $parent.disabled() == true -->
|
||||||
|
<!-- ko foreach: $root.scoreopties -->
|
||||||
|
<!-- ko if: $parent.scoretype == type -->
|
||||||
|
<input type='radio'
|
||||||
|
data-bind="checked: $parent.score(),
|
||||||
|
enable: false " />
|
||||||
|
<span style="vertical-align:top; display: inline-block; margin-left:5px;" data-bind="text: optie"> </span>
|
||||||
|
<!-- /ko -->
|
||||||
|
<!-- /ko -->
|
||||||
|
<!-- /ko -->
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -97,22 +127,43 @@
|
|||||||
<tbody data-bind="foreach: indicatorscores">
|
<tbody data-bind="foreach: indicatorscores">
|
||||||
<tr style="border-bottom: 1px solid #ebebeb">
|
<tr style="border-bottom: 1px solid #ebebeb">
|
||||||
<td style="text-align:right;vertical-align:top; border-left: 1px solid #ebebeb;"
|
<td style="text-align:right;vertical-align:top; border-left: 1px solid #ebebeb;"
|
||||||
data-bind="text: nummer">
|
data-bind="text: nummer,
|
||||||
|
style: {color: $parent.disabled()? '#d9d9d9' : '#262626' } ">
|
||||||
</td>
|
</td>
|
||||||
<td data-bind="text: omschrijving, attr: {'colspan': $root.optieslengte()}" style="vertical-align:top; border-right: 1px solid #ebebeb;">
|
<td data-bind="text: omschrijving,
|
||||||
|
attr: {'colspan': $root.optieslengte()},
|
||||||
|
style: {color: $parent.disabled()? '#d9d9d9' : '#262626' }" style="vertical-align:top; border-right: 1px solid #ebebeb;">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="border-bottom: 1px solid #ebebeb">
|
<tr style="border-bottom: 1px solid #ebebeb">
|
||||||
<td style="border-left: 1px solid #ebebeb;">
|
<td style="border-left: 1px solid #ebebeb;">
|
||||||
</td>
|
</td>
|
||||||
|
<!-- ko if: $parent.disabled() == false -->
|
||||||
<!-- ko foreach: $root.scoreopties -->
|
<!-- ko foreach: $root.scoreopties -->
|
||||||
<td style="border-right: 1px solid #ebebeb;vertical-align:top">
|
<td style="border-right: 1px solid #ebebeb;vertical-align:top">
|
||||||
<input style="vertical-align:top; padding-left: 5px;" type='radio'
|
<input style="vertical-align:top; padding-left: 5px;" type='radio'
|
||||||
data-bind="checked: $parent.score(), event:{click: $root.fUpdateScoretypeVanaf3.bind($data, $parent.id)}, attr: {'name': $parent.id , 'value': value}, enable: $root.editok()" />
|
data-bind="checked: $parent.score(),
|
||||||
<p style="vertical-align:top; padding-left: 5px;" data-bind="text: scoretekst"> </p>
|
event:{click: $root.fUpdateScoretypeVanaf3.bind($data, $parent.id)},
|
||||||
|
attr: {'name': $parent.id , 'value': value},
|
||||||
|
enable: $root.editok()" />
|
||||||
|
<p style="vertical-align:top; padding-left: 5px;"
|
||||||
|
data-bind="text: scoretekst">
|
||||||
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<!-- /ko -->
|
<!-- /ko -->
|
||||||
|
<!-- /ko -->
|
||||||
|
<!-- ko if: $parent.disabled() == true -->
|
||||||
|
<!-- ko foreach: $root.scoreopties -->
|
||||||
|
<td style="border-right: 1px solid #ebebeb;vertical-align:top">
|
||||||
|
<input style="vertical-align:top; padding-left: 5px;" type='radio'
|
||||||
|
data-bind="checked: $parent.score(),
|
||||||
|
enable: false" />
|
||||||
|
<p style="vertical-align:top; padding-left: 5px;"
|
||||||
|
data-bind="text: scoretekst">
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<!-- /ko -->
|
||||||
|
<!-- /ko -->
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
|
|||||||
@@ -190,12 +190,12 @@
|
|||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 25px">
|
<col style="width: 25px">
|
||||||
<col >
|
<col >
|
||||||
<col span='9' style="width: 35px">
|
<col span='11' style="width: 35px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=6 style="text-align:right; padding-right: 15px"> <b>huidige situatie</b><br/> </td>
|
<td colspan=7 style="text-align:right; padding-right: 15px"> <b>huidige situatie</b><br/> </td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td colspan =4 > <b> gewenste situatie</b><br/> </td>
|
<td colspan =5 > <b> gewenste situatie</b><br/> </td>
|
||||||
<tr>
|
<tr>
|
||||||
<tr class="modal-header">
|
<tr class="modal-header">
|
||||||
<td style="width: 25px"></td>
|
<td style="width: 25px"></td>
|
||||||
@@ -204,25 +204,34 @@
|
|||||||
<td style=" text-align:center" class="oranje"> 2</td>
|
<td style=" text-align:center" class="oranje"> 2</td>
|
||||||
<td style=" text-align:center" class="groen"> 3</td>
|
<td style=" text-align:center" class="groen"> 3</td>
|
||||||
<td style=" text-align:center" class="blauw"> 4</td>
|
<td style=" text-align:center" class="blauw"> 4</td>
|
||||||
|
<td style=" text-align:center; background-color: #808080;" > </td>
|
||||||
<td style="background-color:#ffffff"></td>
|
<td style="background-color:#ffffff"></td>
|
||||||
<td style="text-align:center" class="rood" > 1</td>
|
<td style="text-align:center" class="rood" > 1</td>
|
||||||
<td style=" text-align:center" class="oranje" > 2</td>
|
<td style=" text-align:center" class="oranje" > 2</td>
|
||||||
<td style="text-align:center" class="groen" > 3</td>
|
<td style="text-align:center" class="groen" > 3</td>
|
||||||
<td style="text-align:center" class="blauw" > 4</td>
|
<td style="text-align:center" class="blauw" > 4</td>
|
||||||
|
<td style="text-align:center; background-color: #808080; " > </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tbody data-bind="foreach : results">
|
<tbody data-bind="foreach : results">
|
||||||
<tr class=" fixedH" >
|
<tr class=" fixedH" >
|
||||||
<td class="allborders"
|
<td class="allborders"
|
||||||
data-bind="text: nummer" style="text-align:right; padding-right:3px; vertical-align:top"></td>
|
data-bind="text: nummer,
|
||||||
<td style="vertical-align:top;"
|
style: {backgroundColor: disabled == 'T' || disablentv == 'T' ? '#cccccc' : ''}"
|
||||||
|
style="text-align:right; padding-right:3px; vertical-align:top">
|
||||||
|
</td>
|
||||||
|
<td style="vertical-align:top; "
|
||||||
class="allborders fixedH clickable"
|
class="allborders fixedH clickable"
|
||||||
data-bind="text: omschrijving, click: $parent.fToonToelichting">
|
data-bind=" click: $parent.fToonToelichting, style: {backgroundColor: disabled == 'T' || disablentv == 'T' ? '#cccccc' : ''}">
|
||||||
|
<span data-bind="text: omschrijving"></span>
|
||||||
|
<span data-bind="visible: disabled == 'T'" > (Uitgezet.)</span>
|
||||||
|
<span data-bind="visible: disabled == 'F' && disablentv == 'T'" > (Niet van toepassing.)</span>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td class="allborders" ><div class="cirkel" data-bind="css: {'rood' : huidig() == 1}"></div></td>
|
<td class="allborders" ><div class="cirkel" data-bind="css: {'rood' : huidig() == 1}"></div></td>
|
||||||
<td class="allborders"><div class="cirkel" data-bind="css: {'oranje' : huidig() == 2}"></div></td>
|
<td class="allborders"><div class="cirkel" data-bind="css: {'oranje' : huidig() == 2}"></div></td>
|
||||||
<td class="allborders"><div class="cirkel" data-bind="css: {'groen' : huidig() == 3}"></div></td>
|
<td class="allborders"><div class="cirkel" data-bind="css: {'groen' : huidig() == 3}"></div></td>
|
||||||
<td class="allborders"><div class="cirkel" data-bind="css: {'blauw' : huidig() == 4}"></div></td>
|
<td class="allborders"><div class="cirkel" data-bind="css: {'blauw' : huidig() == 4}"></div></td>
|
||||||
|
<td class="allborders"><div class="cirkel" data-bind="css: {'grijs' : huidig() == 5}"></div></td>
|
||||||
|
|
||||||
<td style="border-bottom:none; border-top:none"></td>
|
<td style="border-bottom:none; border-top:none"></td>
|
||||||
|
|
||||||
@@ -230,6 +239,7 @@
|
|||||||
<td class="allborders" data-bind="click: $parent.fUpdateGewenst.bind($data,2)"><div class="cirkel" data-bind="css: {'oranje' : gewenst() == 2}"> </div></td>
|
<td class="allborders" data-bind="click: $parent.fUpdateGewenst.bind($data,2)"><div class="cirkel" data-bind="css: {'oranje' : gewenst() == 2}"> </div></td>
|
||||||
<td class="allborders" data-bind="click: $parent.fUpdateGewenst.bind($data,3)"><div class="cirkel" data-bind="css: {'groen' : gewenst() == 3}"> </div></td>
|
<td class="allborders" data-bind="click: $parent.fUpdateGewenst.bind($data,3)"><div class="cirkel" data-bind="css: {'groen' : gewenst() == 3}"> </div></td>
|
||||||
<td class="allborders" data-bind="click: $parent.fUpdateGewenst.bind($data,4)"><div class="cirkel" data-bind="css: {'blauw' : gewenst() == 4}"> </div></td>
|
<td class="allborders" data-bind="click: $parent.fUpdateGewenst.bind($data,4)"><div class="cirkel" data-bind="css: {'blauw' : gewenst() == 4}"> </div></td>
|
||||||
|
<td class="allborders" ><div class="cirkel" data-bind="css: {'grijs' : gewenst() == 5}"> </div></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
<div class="col-sm-12 mainpagina submenupage" id ="pagVersies">
|
<div class="col-sm-12 mainpagina submenupage" id ="pagVersies">
|
||||||
|
|
||||||
<div class='row'>
|
<div class='row'>
|
||||||
|
|
||||||
<div class="col-sm-12 col-md-3" style="border:1px solid #f2f2f2">
|
<div class="col-sm-12 col-md-3" style="border:1px solid #f2f2f2">
|
||||||
<h3>Instrument</h3>
|
<h3>Instrument</h3>
|
||||||
<select style="font-size:1em"
|
<select style="font-size:1em; max-width: 250px;"
|
||||||
data-bind=" options : modules,
|
data-bind=" options : modules,
|
||||||
optionsText : 'naam',
|
optionsText : 'naam',
|
||||||
value : selectedModule,
|
value : selectedModule,
|
||||||
@@ -51,10 +50,11 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th style="width:5%;padding-left:3px">i</th>
|
<th style="width:5%;padding-left:3px">i</th>
|
||||||
<th style="width:5%"> nr </th>
|
<th style="width:5%"> nr </th>
|
||||||
<th style="width:40%"> omschrijving</th>
|
<th style="width:25%"> omschrijving</th>
|
||||||
<th style="width: 40%">toelichting</th>
|
<th style="width: 35%">toelichting</th>
|
||||||
<th style="width: 5%"> del</th>
|
<th style="width: 4%"> del</th>
|
||||||
<th style="widht: 5%">add</th>
|
<th style="width: 6%"> disable</th>
|
||||||
|
<th style="width: 5%"> add</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody data-bind="foreach: ijkpunten">
|
<tbody data-bind="foreach: ijkpunten">
|
||||||
@@ -64,27 +64,36 @@
|
|||||||
data-bind="click: $parent.fToggleIndicatoren, css:{ 'closebutton' : toonindics(), 'openbutton': !toonindics()}"></button>
|
data-bind="click: $parent.fToggleIndicatoren, css:{ 'closebutton' : toonindics(), 'openbutton': !toonindics()}"></button>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align: top">
|
<td style="vertical-align: top">
|
||||||
<input class= 'integer' data-bind="textInput:nummer, event:{input:$parent.fUpdateIJkpunt}"/>
|
<input class= 'integer' data-bind="textInput:nummer,
|
||||||
|
event:{input:$parent.fUpdateIJkpunt},
|
||||||
|
style: {color: disabled()? '#d9d9d9' : '#262626' }"/>
|
||||||
</td>
|
</td>
|
||||||
<td><textarea style="width:99%" data-bind="textInput:omschrijving, event:{input: $parent.fUpdateIJkpunt}" ></textarea>
|
<td><textarea style="width:99%" data-bind="textInput: omschrijving,
|
||||||
|
event:{input: $parent.fUpdateIJkpunt},
|
||||||
|
style: {color: disabled()? '#d9d9d9' : '#262626' }" ></textarea>
|
||||||
</td>
|
</td>
|
||||||
<td><textarea style="width:99%" data-bind="textInput:toelichting, event:{input: $parent.fUpdateIJkpunt}" ></textarea>
|
<td><textarea style="width:99%" data-bind="textInput:toelichting,
|
||||||
|
event:{input: $parent.fUpdateIJkpunt},
|
||||||
|
style: {color: disabled()? '#d9d9d9' : '#262626' }" ></textarea>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align: top">
|
<td style="vertical-align: top">
|
||||||
<button class="delete noshow" data-bind="click: $parent.fDeleteIJkpunt, visible: indicatoren().length == 0"></button>
|
<button class="delete noshow" data-bind="click: $parent.fDeleteIJkpunt, visible: indicatoren().length == 0"></button>
|
||||||
</td>
|
</td>
|
||||||
<td style="vertical-align: top" data-bind="click: $parent.fNieuweIndicator">
|
<td style="vertical-align: top" data-bind="click: $parent.fDisableIJkpunt">
|
||||||
<button class="plus noshow"></button>
|
<button class="fa fa-ban noshow" data-bind="style: {color: disabled() ? 'red' : 'black' }"></button>
|
||||||
|
</td>
|
||||||
|
<td style="vertical-align: top" data-bind="click: $parent.fNieuweIndicator ">
|
||||||
|
<button class=" noshow fa fa-plus " data-bind=" style: {color: disabled()? '#d9d9d9' : '#262626' }" ></button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr data-bind="visible: toonindics() && indicatoren().length > 0">
|
<tr data-bind="visible: toonindics() && indicatoren().length > 0">
|
||||||
<td></td>
|
<td></td>
|
||||||
<td colspan=4>
|
<td colspan=5>
|
||||||
<table style="width: 100%">
|
<table style="width: 100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="header2" style="width4%;padding-left: 2px;text-align:center"> nr </th>
|
<th class="header2" style="width4%;padding-left: 2px;text-align:center"> nr </th>
|
||||||
<!-- <th class="header2" style="width:7%;padding-left: 2px;text-align:center">insp.</th>-->
|
<!-- <th class="header2" style="width:7%;padding-left: 2px;text-align:center">insp.</th>-->
|
||||||
<th class="header2" style="width:6%;padding-left: 2px;text-align:center">w.</th>
|
<th class="header2" style="width:6%;padding-left: 2px;text-align:center">w.</th>
|
||||||
<th class="header2" style="width:40%;padding-left: 2px"> schoolvorm</th>
|
<th class="header2" style="width:40%;padding-left: 2px"> schoolvorm</th>
|
||||||
<th class="header2" style="width:40%;padding-left: 2px"> ik-vorm</th>
|
<th class="header2" style="width:40%;padding-left: 2px"> ik-vorm</th>
|
||||||
@@ -96,19 +105,27 @@
|
|||||||
<td style="vertical-align: top">
|
<td style="vertical-align: top">
|
||||||
<input class= 'integer'
|
<input class= 'integer'
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
data-bind="textInput: nummer, event:{input: $root.fUpdateIndicator}" /></td>
|
data-bind="textInput: nummer,
|
||||||
<!-- <td style="vertical-align: top">-->
|
event:{input: $root.fUpdateIndicator},
|
||||||
<!-- <input style="width: 100%"-->
|
style: {color: $parent.disabled()? '#d9d9d9' : '#262626' }" /></td>
|
||||||
<!-- data-bind="textInput: inspectie, event:{input: $root.fUpdateIndicator}" /></td>-->
|
<!-- <td style="vertical-align: top">-->
|
||||||
|
<!-- <input style="width: 100%"-->
|
||||||
|
<!-- data-bind="textInput: inspectie, event:{input: $root.fUpdateIndicator}" /></td>-->
|
||||||
<td style="vertical-align: top">
|
<td style="vertical-align: top">
|
||||||
<input class= 'decimal'
|
<input class= 'decimal'
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
data-bind="textInput: gewicht, event:{input: $root.fUpdateIndicator}" /></td>
|
data-bind="textInput : gewicht,
|
||||||
<td><textarea data-bind="textInput: omschrijving1, event:{input: $root.fUpdateIndicator}"
|
event :{input: $root.fUpdateIndicator},
|
||||||
|
style : {color: $parent.disabled()? '#d9d9d9' : '#262626' }" /></td>
|
||||||
|
<td><textarea data-bind="textInput: omschrijving1,
|
||||||
|
event : {input: $root.fUpdateIndicator},
|
||||||
|
style : {color: $parent.disabled()? '#d9d9d9' : '#262626' }"
|
||||||
style="width:99%">
|
style="width:99%">
|
||||||
</textarea>
|
</textarea>
|
||||||
</td>
|
</td>
|
||||||
<td><textarea data-bind="textInput: omschrijving2, event:{input: $root.fUpdateIndicator}"
|
<td><textarea data-bind="textInput : omschrijving2,
|
||||||
|
event :{input: $root.fUpdateIndicator},
|
||||||
|
style : {color: $parent.disabled()? '#d9d9d9' : '#262626' }"
|
||||||
style="width: 99% ">
|
style="width: 99% ">
|
||||||
</textarea>
|
</textarea>
|
||||||
</td>
|
</td>
|
||||||
@@ -187,7 +204,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ************ pop nieuw indicator -->
|
<!-- ************ pop nieuw indicator -->
|
||||||
<div class="modal fade" id="modNieuwIndicator" role="dialog" >
|
<div class="modal fade" id="modNieuwIndicator" role="dialog" >
|
||||||
<div class="modal-dialog modal-lg ">
|
<div class="modal-dialog modal-lg ">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
@@ -205,10 +222,10 @@
|
|||||||
<td style="width:20%"> gewicht</td>
|
<td style="width:20%"> gewicht</td>
|
||||||
<td > <input class="decimal" data-bind="textInput: gewicht" /></td>
|
<td > <input class="decimal" data-bind="textInput: gewicht" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- <tr >-->
|
<!-- <tr >-->
|
||||||
<!-- <td style="width:20%">inspectie indicator (nummer)</td>-->
|
<!-- <td style="width:20%">inspectie indicator (nummer)</td>-->
|
||||||
<!-- <td > <input data-bind="textInput: inspectie" /></td>-->
|
<!-- <td > <input data-bind="textInput: inspectie" /></td>-->
|
||||||
<!-- </tr>-->
|
<!-- </tr>-->
|
||||||
<tr>
|
<tr>
|
||||||
<td style="width:20%">school omschrijving </td>
|
<td style="width:20%">school omschrijving </td>
|
||||||
<td > <textarea style="width: 100%" data-bind="textInput: omschrijving1"></textarea></td>
|
<td > <textarea style="width: 100%" data-bind="textInput: omschrijving1"></textarea></td>
|
||||||
|
|||||||
@@ -3,82 +3,114 @@
|
|||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 25px">
|
<col style="width: 25px">
|
||||||
<col >
|
<col >
|
||||||
<col span='9' style="width: 22px">
|
<col span='12' style="width: 22px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2></td>
|
<td colspan=2></td>
|
||||||
<td colspan=4 style="text-align:center"> <b>huidige situatie</b></td>
|
<td colspan=5 style="text-align:center"> <b>huidige situatie</b></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td colspan =4 style="text-align:center"> <b> gewenste situatie</b></td>
|
<td colspan =5 style="text-align:center"> <b> gewenste situatie</b></td>
|
||||||
<tr>
|
<tr>
|
||||||
<tr style="background-color: #6F0B3D; color:#ffffff">
|
<tr style="background-color: #6F0B3D; color:#ffffff">
|
||||||
<td style="width: 25px"></td>
|
<td style="width: 25px"></td>
|
||||||
<td ><?=ucfirst($labels['ijkpunten'])?></td>
|
<td ><?=ucfirst($labels['ijkpunten'])?></td>
|
||||||
<td style=" text-align:center; background-color: #fe2219; color:#ffffff"> 1</td>
|
<td style=" text-align:center; background-color: #e08885; color:#ffffff"> 1</td>
|
||||||
<td style=" text-align:center; background-color: #fea719; color:#ffffff" > 2</td>
|
<td style=" text-align:center; background-color: #ffcc80; color:#ffffff" > 2</td>
|
||||||
<td style=" text-align:center; background-color:#15d029 ; color:#ffffff" > 3</td>
|
<td style=" text-align:center; background-color:#9fdf9f ; color:#ffffff" > 3</td>
|
||||||
<td style=" text-align:center; background-color: #1558d0; color:#ffffff;" > 4</td>
|
<td style=" text-align:center; background-color: #99d6ff; color:#ffffff;" > 4</td>
|
||||||
|
<td style=" text-align:center; background-color: #99d6ff; color:#ffffff;" > </td>
|
||||||
<td style="background-color:#ffffff"></td>
|
<td style="background-color:#ffffff"></td>
|
||||||
<td style="text-align:center; background-color: #fe2219; color:#ffffff"> 1</td>
|
<td style="text-align:center; background-color: #e08885; color:#ffffff"> 1</td>
|
||||||
<td style="text-align:center; background-color: #fea719; color:#ffffff"> 2</td>
|
<td style="text-align:center; background-color: #ffcc80; color:#ffffff"> 2</td>
|
||||||
<td style="text-align:center; background-color:#15d029 ; color:#ffffff"> 3</td>
|
<td style="text-align:center; background-color:#9fdf9f ; color:#ffffff"> 3</td>
|
||||||
<td style="text-align:center; background-color: #1558d0; color:#ffffff"> 4</td>
|
<td style="text-align:center; background-color: #99d6ff; color:#ffffff"> 4</td>
|
||||||
|
<td style=" text-align:center; background-color: #99d6ff; color:#ffffff;" ></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
if ($scores){
|
if ($scores){
|
||||||
foreach ($scores as $score){ ?>
|
foreach ($scores as $score){ ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:1px solid #dddddd; text-align:right; padding-right:3px"><?=$score->nummer?></td>
|
<td style="border:1px solid #dddddd; text-align:right; padding-right:3px"><?=$score->nummer?></td>
|
||||||
<td style="border:1px solid #dddddd;padding-left:2px;"><?=$score->omschrijving?></td>
|
<td style="border:1px solid #dddddd;padding-left:2px;"><?=$score->omschrijving?>
|
||||||
<td style="border:1px solid #dddddd" >
|
<span><?=$score->omschrijving?></span>
|
||||||
<?php if ($score->huidig == 1){
|
<span><?php if ($score->disabled == 'T'){echo ' (uit)';} ?></span>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#fe2219;'></div>";
|
<span><?php if ($score->disabled == 'F' && $score->disablenvt == 'T'){echo ' (nvt)';} ?></span>
|
||||||
};?>
|
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd;padding-left:2px;">
|
||||||
|
<span> <?php if (isset($score->omschrijving)){echo $score->omschrijving;} ?></span>
|
||||||
|
<span><?php if ($score->disabled == 'T'){echo ' (uit)';} ?></span>
|
||||||
|
<span><?php if ($score->disabled == 'F' && $score->disablenvt == 'T'){echo ' (nvt)';} ?></span>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 2){
|
<?php if ($score->huidig == 1){ ?>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#fea719;'></div>";
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
};?>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 3){
|
<?php if ($score->huidig == 2){ ?>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#15d029;'></div>";
|
<div style= "width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
};?>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 4){
|
<?php if ($score->huidig == 3){ ?>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#1558d0;'></div>";
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
};?>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->huidig == 4){ ?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
|
<?php }; ?>
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->disabled == 'T' || $score->disablenvt == 'T'){ ?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color: #808080;"></div>
|
||||||
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="border-bottom:none; border-top:none"></td>
|
<td style="border-bottom:none; border-top:none"></td>
|
||||||
|
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 1){
|
<?php if (isset($score->wens) && $score->wens == 1){ ?>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#fe2219;'></div>";
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
};?>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 2){
|
<?php if (isset($score->wens) && $score->wens == 2){ ?>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#fea719;'></div>";
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
};?>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 3){
|
<?php if (isset($score->wens) && $score->wens == 3){ ?>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#15d029;'></div>";
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
};?>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 4){
|
<?php if (isset($score->wens) && $score->wens == 4){ ?>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#1558d0;'></div>";
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
};?>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->disabled == 'T' || $score->disablenvt == 'T'){ ?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color: #808080;"></div>
|
||||||
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php ;};}; ?>
|
<?php ;};}; ?>
|
||||||
</table>
|
</table>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<?=$kleurtabel?>
|
<?=$kleurtabel?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,25 @@
|
|||||||
var ambitiescore= <?php echo $ambitie->gemscore; ?>;
|
var ambitiescore= <?php echo $ambitie->gemscore; ?>;
|
||||||
var lijnAt = (((100 - parseFloat(ambitiescore)) / 10 ) * 25 ) +12;
|
var lijnAt = (((100 - parseFloat(ambitiescore)) / 10 ) * 25 ) +12;
|
||||||
var j=0;
|
var j=0;
|
||||||
$.each(results, function(i,p){
|
var colors=[]
|
||||||
// scores[i] = p.gem();
|
<?php foreach($scores as $index => $score){ ?>
|
||||||
if (p.num > 0){
|
|
||||||
scores[i]=p.somscore / p.num;
|
slabels.push('<?= $score->nummer ?>');
|
||||||
}
|
tekstlabels.push('<?= $score->omschrijving ?>');
|
||||||
else {scores[i]= 0;};
|
// scores.push({
|
||||||
slabels[i] = p.nummer;
|
// y: <?= $score->gem ?>,
|
||||||
tekstlabels[i] = p.omschrijving;
|
// color: '<?= isset($score->kleur)? $score->kleur : "#808080" ?>',
|
||||||
j ++;
|
// name: '<?= $score->nummer ?>',
|
||||||
}); // each
|
|
||||||
slabels[j]='gem';
|
// });
|
||||||
scores[j]=<?php echo $totgem;?> ;
|
scores.push(<?=$score->gem ?>)
|
||||||
|
colors.push('<?= isset($score->kleurcode) ? $score->kleurcode : "#808080" ?>')
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
slabels.push('gem')
|
||||||
|
scores.push(<?= $totgem ?>)
|
||||||
|
colors.push('<?= isset($totgemkleur) ? $totgemkleur : "#808080" ?>')
|
||||||
|
|
||||||
var ctxSchoolijkpunt2=$("#schoolijkpunt2").get(0).getContext("2d");
|
var ctxSchoolijkpunt2=$("#schoolijkpunt2").get(0).getContext("2d");
|
||||||
|
|
||||||
var data5 = {labels :slabels,
|
var data5 = {labels :slabels,
|
||||||
@@ -35,7 +42,8 @@
|
|||||||
fillColor: "rgba(147,15,80,0.9)",
|
fillColor: "rgba(147,15,80,0.9)",
|
||||||
strokeColor: "rgba(111,11,61,1)",
|
strokeColor: "rgba(111,11,61,1)",
|
||||||
highlightStroke: "rgba(222,22,123,1)",
|
highlightStroke: "rgba(222,22,123,1)",
|
||||||
data: scores},
|
data: scores
|
||||||
|
},
|
||||||
]}
|
]}
|
||||||
|
|
||||||
Chart.types.Bar.extend({
|
Chart.types.Bar.extend({
|
||||||
|
|||||||
@@ -34,18 +34,21 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody >
|
<tbody >
|
||||||
<?php foreach($scores as $score){
|
<?php foreach($scores as $score){
|
||||||
$gem =round($score->somscore / $score->num,1);
|
$kleur = $score->disabled == 'T' || $score->disablenvt == 'T' ? '#808080' : $score->kleurcode; ?>
|
||||||
|
|
||||||
|
<!-- // $gem =round($score->somscore / $score->num,1);
|
||||||
//$backgroundcolor =$score->kleurcode;
|
//$backgroundcolor =$score->kleurcode;
|
||||||
// if ($gem >50 )$backgroundcolor = "#fea719";
|
// if ($gem >50 )$backgroundcolor = "#fea719";
|
||||||
// if ($gem > 70) $backgroundcolor = "#15d029";
|
// if ($gem > 70) $backgroundcolor = "#15d029";
|
||||||
// if ($gem > 90) $backgroundcolor = "#1558d0";
|
// if ($gem > 90) $backgroundcolor = "#1558d0";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
-->
|
||||||
<tr style="border-bottom: 1px solid #ebebeb" >
|
<tr style="border-bottom: 1px solid #ebebeb" >
|
||||||
<td style="vertical-align:top" ><?=$score->nummer?></td>
|
<td style="vertical-align:top" ><?=$score->nummer?></td>
|
||||||
<td style="vertical-align:top" ><?=$score->omschrijving?></td>
|
<td style="vertical-align:top" ><?=$score->omschrijving?></td>
|
||||||
<td style="text-align:right; vertical-align:top; padding-right: 5px; color:#ffffff; background-color:<?=$score->kleurcode?> ">
|
<td style="text-align:right; vertical-align:top; padding-right: 5px; color:#ffffff; background-color:<?=$kleur?> ">
|
||||||
<?=number_format($gem,1);?>
|
<?php echo $score->disabled == 'T' ? 'uit' : ($score->disablenvt == 'T' ? 'nvt' : (isset($score->gem) ? $score->gem : '')) ?>
|
||||||
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,10 @@
|
|||||||
<?php
|
<?php
|
||||||
if ($lk->scores) {
|
if ($lk->scores) {
|
||||||
foreach($lk->scores as $result){
|
foreach($lk->scores as $result){
|
||||||
echo "<td style='background-color:".$result->colorcode." ; color:#ffffff;text-align:right; padding-right:1px '>".number_format($result->gem,0)."</td>";
|
$tekst = number_format($result->gem,0);
|
||||||
|
if($result->disablenvt == 'T') $tekst = 'nvt';
|
||||||
|
if($result->disabled == 'T') $tekst = 'uit';
|
||||||
|
echo "<td style='background-color:".$result->colorcode." ; color:#ffffff;text-align:right; padding-right:1px '>".$tekst."</td>";
|
||||||
};?>
|
};?>
|
||||||
<td style="background-color: <?=$lk->colorcode?>; color:#ffffff;text-align:right; padding-right:1px" ><?=$lk->lkgem?></td>
|
<td style="background-color: <?=$lk->colorcode?>; color:#ffffff;text-align:right; padding-right:1px" ><?=$lk->lkgem?></td>
|
||||||
<?php }; // if scores ?>
|
<?php }; // if scores ?>
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 25px">
|
<col style="width: 25px">
|
||||||
<col >
|
<col >
|
||||||
<col span='9' style="width: 22px">
|
<col span='11' style="width: 22px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2></td>
|
<td colspan=2></td>
|
||||||
<td colspan=4 style="text-align:center"> <b>huidige situatie</b></td>
|
<td colspan=5 style="text-align:center"> <b>huidige situatie</b></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td colspan =4 style="text-align:center"> <b> gewenste situatie</b></td>
|
<td colspan =5 style="text-align:center"> <b> gewenste situatie</b></td>
|
||||||
<tr>
|
<tr>
|
||||||
<tr style="background-color: #6F0B3D; color:#ffffff">
|
<tr style="background-color: #6F0B3D; color:#ffffff">
|
||||||
<td style="width: 25px"></td>
|
<td style="width: 25px"></td>
|
||||||
@@ -18,61 +18,121 @@
|
|||||||
<td style=" text-align:center; background-color: #ffcc80; color:#ffffff" > 2</td>
|
<td style=" text-align:center; background-color: #ffcc80; color:#ffffff" > 2</td>
|
||||||
<td style=" text-align:center; background-color:#9fdf9f ; color:#ffffff" > 3</td>
|
<td style=" text-align:center; background-color:#9fdf9f ; color:#ffffff" > 3</td>
|
||||||
<td style=" text-align:center; background-color: #99d6ff; color:#ffffff;" > 4</td>
|
<td style=" text-align:center; background-color: #99d6ff; color:#ffffff;" > 4</td>
|
||||||
|
<td style=" text-align:center; background-color: #808080; color:#ffffff;" > </td>
|
||||||
<td style="background-color:#ffffff"></td>
|
<td style="background-color:#ffffff"></td>
|
||||||
<td style="text-align:center; background-color: #e08885; color:#ffffff"> 1</td>
|
<td style="text-align:center; background-color: #e08885; color:#ffffff"> 1</td>
|
||||||
<td style="text-align:center; background-color: #ffcc80; color:#ffffff"> 2</td>
|
<td style="text-align:center; background-color: #ffcc80; color:#ffffff"> 2</td>
|
||||||
<td style="text-align:center; background-color:#9fdf9f ; color:#ffffff"> 3</td>
|
<td style="text-align:center; background-color:#9fdf9f ; color:#ffffff"> 3</td>
|
||||||
<td style="text-align:center; background-color: #99d6ff; color:#ffffff"> 4</td>
|
<td style="text-align:center; background-color: #99d6ff; color:#ffffff"> 4</td>
|
||||||
|
<td style=" text-align:center; background-color: #808080; color:#ffffff;" ></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
if ($scores){
|
if ($scores){
|
||||||
foreach ($scores as $score){ ?>
|
foreach ($scores as $score){ ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border:1px solid #dddddd; text-align:right; padding-right:3px"><?=$score->nummer?></td>
|
<td style="border:1px solid #dddddd; text-align:right; padding-right:3px"><?=$score->nummer?></td>
|
||||||
<td style="border:1px solid #dddddd;padding-left:2px;"><?=$score->omschrijving?></td>
|
<td style="border:1px solid #dddddd;padding-left:2px;">
|
||||||
<td style="border:1px solid #dddddd" >
|
<span><?=$score->omschrijving?></span>
|
||||||
<?php if ($score->huidig == 1){
|
<span><?php if ($score->disabled == 'T'){echo ' (uit)';} ?></span>
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#e08885;'></div>";
|
<span><?php if ($score->disabled == 'F' && $score->disablenvt == 'T'){echo ' (nvt)';} ?></span>
|
||||||
};?>
|
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 2){
|
<?php if ($score->kleurnummer == 1){
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#ffcc80;'></div>";
|
$kleur = '';
|
||||||
};?>
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = '#e08885';
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $kleur;} ?>"></div>
|
||||||
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 3){
|
<?php if ($score->kleurnummer == 2){
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#9fdf9f;'></div>";
|
$kleur = '';
|
||||||
};?>
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = '#ffcc80';
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<div style= "width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $kleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 4){
|
<?php if ($score->kleurnummer == 3){
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#99d6ff;'></div>";
|
$kleur = '';
|
||||||
};?>
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = '#9fdf9f';
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $kleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->kleurnummer == 4){
|
||||||
|
$kleur = '';
|
||||||
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = '#99d6ff';
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $kleur;} ?>"></div>
|
||||||
|
<?php }; ?>
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->disabled == 'T' || $score->disablenvt == 'T'){ ?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color: #808080;"></div>
|
||||||
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="border-bottom:none; border-top:none"></td>
|
<td style="border-bottom:none; border-top:none"></td>
|
||||||
|
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 1){
|
<?php if (isset($score->wens) && $score->wens == 1){
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#e08885;'></div>";
|
$kleur = '';
|
||||||
};?>
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = '#e08885';
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $kleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 2){
|
<?php if (isset($score->wens) && $score->wens == 2){
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#ffcc80;'></div>";
|
$kleur = '';
|
||||||
};?>
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = '#ffcc80';
|
||||||
|
?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $kleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 3){
|
<?php if (isset($score->wens) && $score->wens == 3){
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#9fdf9f;'></div>";
|
$kleur = '';
|
||||||
};?>
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = '#99d6ff';
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $kleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 4){
|
<?php if (isset($score->wens) && $score->wens == 4){
|
||||||
echo "<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:#99d6ff;'></div>";
|
$kleur = '';
|
||||||
};?>
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = '#99d6ff';
|
||||||
|
?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $kleur;} ?>"></div>
|
||||||
|
<?php };?>
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->disabled == 'T' || $score->disablenvt == 'T'){ ?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color: #808080;"></div>
|
||||||
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php ;};}; ?>
|
<?php ;};}; ?>
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
<table style="border-collapse: collapse; cellspacing:0px; font-size:0.8em; line-height:1.5em"
|
<table style="border-collapse: collapse; cellspacing:0px; font-size:0.8em; line-height:1.5em"
|
||||||
id="mod<?=$module?>tabel2">
|
id="mod<?=$module?>tabel2">
|
||||||
<?php foreach($scores as $score){
|
<?php foreach($scores as $score){
|
||||||
if (isset($score->wens) && $score->huidig < $score->wens){?>
|
if (isset($score->wens) &&
|
||||||
|
$score->huidig < $score->wens &&
|
||||||
|
$score->wens!= 0 &&
|
||||||
|
isset($score->omschrijving ) &&
|
||||||
|
$score->disabled == 'F' &&
|
||||||
|
$score->disablenvt == 'F'){?>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:right; padding-right:3px"><?=$score->nummer?></td>
|
<td style="text-align:right; padding-right:3px"><?=$score->nummer?></td>
|
||||||
<td><?=$score->omschrijving?></td>
|
<td><?=$score->omschrijving?></td>
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 25px; ">
|
<col style="width: 25px; ">
|
||||||
<col >
|
<col >
|
||||||
<col span='9' style="width: 22px">
|
<col span='11' style="width: 22px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr style="background-color: #ded0d7; border: 1px solid grey; border-bottom: none">
|
<tr style="background-color: #ded0d7; border: 1px solid grey; border-bottom: none">
|
||||||
<td colspan=2 style=" border-bottom: none; "></td>
|
<td colspan=2 style=" border-bottom: none; "></td>
|
||||||
<td colspan=4 style="text-align:center; "> <b>huidige situatie</b></td>
|
<td colspan=5 style="text-align:center; "> <b>huidige situatie</b></td>
|
||||||
<td style="border: 1px; solid grey;"></td>
|
<td style="border: 1px; solid grey;"></td>
|
||||||
<td colspan =4 style="text-align:center; "> <b> gewenste situatie</b></td>
|
<td colspan =5 style="text-align:center; "> <b> gewenste situatie</b></td>
|
||||||
<tr>
|
<tr>
|
||||||
<tr style="background-color: #ded0d7; border: 1px; solid grey; border-top: none">
|
<tr style="background-color: #ded0d7; border: 1px; solid grey; border-top: none">
|
||||||
<td style="width: 25px; border-bottom: 1px solid grey;border-left: 1px solid grey;font-weight: bold;">nr</td>
|
<td style="width: 25px; border-bottom: 1px solid grey;border-left: 1px solid grey;font-weight: bold;">nr</td>
|
||||||
@@ -31,63 +31,93 @@
|
|||||||
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur2?>; color:#ffffff"> 2</td>
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur2?>; color:#ffffff"> 2</td>
|
||||||
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur3?>; color:#ffffff"> 3</td>
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur3?>; color:#ffffff"> 3</td>
|
||||||
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur4?>; color:#ffffff"> 4</td>
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur4?>; color:#ffffff"> 4</td>
|
||||||
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #808080"> </td>
|
||||||
|
|
||||||
<td style="border-bottom: 1px solid grey;background-color:#ded0d7"></td>
|
<td style="border-bottom: 1px solid grey;background-color:#ded0d7"></td>
|
||||||
<td style="border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur1?>; color:#ffffff"> 1</td>
|
<td style="border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur1?>; color:#ffffff"> 1</td>
|
||||||
<td style="border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur2?>; color:#ffffff"> 2</td>
|
<td style="border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur2?>; color:#ffffff"> 2</td>
|
||||||
<td style="border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur3?>; color:#ffffff"> 3</td>
|
<td style="border-bottom: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur3?>; color:#ffffff"> 3</td>
|
||||||
<td style="border-bottom: 1px solid grey; border-right: 1px solid grey;text-align:center; background-color: <?=$data['kleuren']->kleur4?>; color:#ffffff"> 4</td>
|
<td style="border-bottom: 1px solid grey; text-align:center; background-color: <?=$data['kleuren']->kleur4?>; color:#ffffff"> 4</td>
|
||||||
|
<td style="border-bottom: 1px solid grey;text-align:center; background-color: #808080; border-right: 1px solid grey; "> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
if ($data['lijsten'][0]->scores){
|
if ($data['lijsten'][0]->scores){
|
||||||
foreach ($data['lijsten'][0]->scores as $ijkpunt){
|
foreach ($data['lijsten'][0]->scores as $score){
|
||||||
if($ijkpunt->nummer != 'gem'){?>
|
if($score->nummer != 'gem'){?>
|
||||||
<tr style="border:1px solid #dddddd;">
|
<tr style="border:1px solid #dddddd;">
|
||||||
<td style="border:1px solid #dddddd; text-align:right; padding-right:3px"><?php echo $ijkpunt->nummer;?></td>
|
<td style="border:1px solid #dddddd; text-align:right; padding-right:3px"><?php echo $score->nummer;?></td>
|
||||||
<td style="border:1px solid #dddddd;padding-left:2px;"><?php if (isset($ijkpunt->omschrijving)){echo $ijkpunt->omschrijving;}?></td>
|
<td style="border:1px solid #dddddd;padding-left:2px;"><?php if (isset($score->omschrijving)){echo $score->omschrijving;}?>
|
||||||
|
<span><?php if (isset($score->omschrijving)){echo $score->omschrijving;}?></span>
|
||||||
|
<span><?php if ($score->disabled == 'T'){echo ' (uit)';} ?></span>
|
||||||
|
<span><?php if ($score->disabled == 'F' && $score->disablenvt == 'T'){echo ' (nvt)';} ?></span>
|
||||||
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($ijkpunt->huidig == 1){?>
|
<?php if (isset($score->huidig) && $score->huidig == 1){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:<?php if(isset($ijkpunt->kleur)){echo $ijkpunt->kleur;} ?>"></div>
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
|
<?php }; ?>
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if (isset($score->huidig) && $score->huidig == 2){ ?>
|
||||||
|
<div style= "width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($ijkpunt->huidig == 2){?>
|
<?php if (isset($score->huidig) && $score->huidig == 3){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:<?php if(isset($ijkpunt->kleur)){echo $ijkpunt->kleur;} ?>"></div>
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($ijkpunt->huidig == 3){?>
|
<?php if (isset($score->huidig) && $score->huidig == 4){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:<?php if(isset($ijkpunt->kleur)){echo $ijkpunt->kleur;} ?>"></div>
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
<?php };?>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($ijkpunt->huidig == 4){?>
|
<?php if ($score->disabled == 'T' || $score->disablenvt == 'T'){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:<?php if(isset($ijkpunt->kleur)){echo $ijkpunt->kleur;} ?>"></div>
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
<?php };?>
|
background-color: #808080;"></div>
|
||||||
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="border-bottom:none; border-top:none"></td>
|
<td style="border-bottom:none; border-top:none"></td>
|
||||||
|
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($ijkpunt->wens) && $ijkpunt->wens == 1){ ?>
|
<?php if (isset($score->wens) && $score->wens == 1){ ?>
|
||||||
<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:<?php if(isset($ijkpunt->wenskleur)){echo $ijkpunt->wenskleur;} ?>'></div>
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($ijkpunt->wens) && $ijkpunt->wens == 2){ ?>
|
<?php if (isset($score->wens) && $score->wens == 2){ ?>
|
||||||
<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:<?php if(isset($ijkpunt->wenskleur)){echo $ijkpunt->wenskleur;} ?>'></div>
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($ijkpunt->wens) && $ijkpunt->wens == 3){ ?>
|
<?php if (isset($score->wens) && $score->wens == 3){ ?>
|
||||||
<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:<?php if(isset($ijkpunt->wenskleur)){echo $ijkpunt->wenskleur;} ?>'></div>
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($ijkpunt->wens) && $ijkpunt->wens == 4){ ?>
|
<?php if (isset($score->wens) && $score->wens == 4){ ?>
|
||||||
<div style='width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;background-color:<?php if(isset($ijkpunt->wenskleur)){echo $ijkpunt->wenskleur;} ?>'></div>
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->disabled == 'T' || $score->disablenvt == 'T'){ ?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color: #808080;"></div>
|
||||||
|
<?php }; ?>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php ;}};}; ?>
|
<?php ;}};}; ?>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -48,12 +48,17 @@
|
|||||||
var xastitel = '<?php echo $lijst->label ?>';
|
var xastitel = '<?php echo $lijst->label ?>';
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php foreach($lijst->scores as $index2 => $score){ ?>
|
<?php foreach($lijst->scores as $index2 => $score){
|
||||||
|
$kleur = '#808080';
|
||||||
|
if($score->disabled == 'F' && $score->disablenvt == 'F' && isset($score->kleur)) $kleur = $score->kleur;
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
labels.push(<?php $score->nummer ?>);
|
labels.push(<?php $score->nummer ?>);
|
||||||
scores.push({
|
scores.push({
|
||||||
y: <?= $score->gem ?>,
|
y: <?= $score->gem ?>,
|
||||||
color: '<?=$score->kleur ?>',
|
color: '<?=$kleur ?>',
|
||||||
name: '<?= $score->nummer ?>',
|
name: '<?= $score->nummer ?>',
|
||||||
soort: 'score',
|
soort: 'score',
|
||||||
versie: <?= $lijst->periodenummer ?>
|
versie: <?= $lijst->periodenummer ?>
|
||||||
|
|||||||
@@ -41,12 +41,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach($lijst->scores as $score){?>
|
<?php foreach($lijst->scores as $score){
|
||||||
|
$kleur = $score->disabled == 'T' || $score->disablenvt == 'T' ? '#808080' : $score->kleur; ?>
|
||||||
<tr style="border: 1px solid grey">
|
<tr style="border: 1px solid grey">
|
||||||
|
<td style="vertical-align:top; text-align: right; border-right: 1px solid grey; padding-left: 3px; background-color: <?= $kleur ?>">
|
||||||
|
<?php echo $score->disabled == 'T' ? 'uit' : ($score->disablenvt == 'T' ? 'nvt' : (isset($score->gem) ? $score->gem : '')) ?>
|
||||||
<td style="vertical-align:top; text-align: right; border-right: 1px solid grey; padding-left: 3px; background-color: <?php echo $score->kleur ?>" >
|
|
||||||
<?php echo $score->gem ?>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
@@ -54,7 +53,7 @@
|
|||||||
|
|
||||||
</table>
|
</table>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<p style="clear: both;">Scores in procenten.</p>
|
<p style=" clear: both;">Scores in procenten.</p>
|
||||||
</div>
|
</div>
|
||||||
<?php ;} ;?>
|
<?php ;} ;?>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -22,11 +22,12 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody >
|
<tbody >
|
||||||
<?php foreach($data['lijsten'][0]->scores ? $data['lijsten'][0]->scores : [] as $ijkpunt){
|
<?php foreach($data['lijsten'][0]->scores ? $data['lijsten'][0]->scores : [] as $score){
|
||||||
?>
|
?>
|
||||||
<tr style="border: 1px solid grey" >
|
<tr style="border: 1px solid grey" >
|
||||||
<td style="vertical-align:top; border-right: 1px solid grey" ><?php if($ijkpunt->nummer != 'gem'){ echo $ijkpunt->nummer;}?></td>
|
<td style="vertical-align:top; border-right: 1px solid grey" ><?php if($score->nummer != 'gem'){ echo $score->nummer;}?></td>
|
||||||
<td style="vertical-align:top; border-right: 1px solid grey; overflow-x: hidden; overflow-y: hidden; text-overflow: ellipsis; white-space: nowrap;"><?php echo isset($ijkpunt->omschrijving) ? $ijkpunt->omschrijving: 'Gemiddelde'?></td>
|
<td style="vertical-align:top; border-right: 1px solid grey; overflow-x: hidden; overflow-y: hidden; text-overflow: ellipsis; white-space: nowrap;">
|
||||||
|
<?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?></td>
|
||||||
<?php ;} ; ?>
|
<?php ;} ; ?>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -42,12 +43,19 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php if ($lijst->scores)
|
<?php if ($lijst->scores)
|
||||||
foreach($lijst->scores as $ijkpunt){?>
|
foreach($lijst->scores as $score){
|
||||||
|
$kleur = '#808080';
|
||||||
|
if(isset($score->kleur) && $score->disabled == 'F' && $score->disablenvt== 'F')
|
||||||
|
$kleur = $score->kleur;
|
||||||
|
$gem = $score->gem;
|
||||||
|
if($score->disablenvt == 'T') $gem = 'nvt';
|
||||||
|
if($score->disabled == 'T') $gem = 'uit';
|
||||||
|
?>
|
||||||
<tr style="border: 1px solid grey">
|
<tr style="border: 1px solid grey">
|
||||||
|
|
||||||
|
|
||||||
<td style="vertical-align:top; text-align: right: border-right: 1px solid grey; padding-left: 3px; background-color: <?php echo $ijkpunt->kleur ?>" >
|
<td style="vertical-align:top; text-align: right: border-right: 1px solid grey; padding-left: 3px; background-color: <?php echo $kleur ?>" >
|
||||||
<?php echo $ijkpunt->gem ?>
|
<?php echo $gem ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
@@ -42,10 +42,17 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($data['lijsten'][0]->scores){
|
if($data['lijsten'][0]->scores){
|
||||||
foreach($data['lijsten'][0]->scores as $score){ ?>
|
foreach($data['lijsten'][0]->scores as $score){
|
||||||
<td style=" color:white; text-align:center; width: 30px; border-left: 1px solid grey; background-color:<?=$score->kleur?>">
|
$kleur = '#808080';
|
||||||
|
if($score->disabled == 'F' && $score->disablenvt == 'F') $kleur = $score->kleur;
|
||||||
|
$gem = number_format($score->gem);
|
||||||
|
if($score->disablenvt == 'T') $gem = 'nvt';
|
||||||
|
if($score->disabled == 'T') $gem = 'uit';
|
||||||
|
?>
|
||||||
|
|
||||||
|
<td style=" color:white; text-align:center; width: 30px; border-left: 1px solid grey; background-color:<?=$kleur?>">
|
||||||
<div>
|
<div>
|
||||||
<?php echo number_format($score->gem);
|
<?php echo $gem;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($data['lijsten'][0]->scores){
|
if($data['lijsten'][0]->scores){
|
||||||
foreach($data['lijsten'][0]->scores as $ijkpunt){ ?>
|
foreach($data['lijsten'][0]->scores as $score){ ?>
|
||||||
<td style="text-align:center; ">
|
<td style="text-align:center; ">
|
||||||
<?php echo $ijkpunt->nummer;
|
<?php echo $score->nummer;
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
<?php };
|
<?php };
|
||||||
@@ -42,10 +42,15 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($data['lijsten'][0]->scores){
|
if($data['lijsten'][0]->scores){
|
||||||
foreach($data['lijsten'][0]->scores as $ijkpunt){ ?>
|
foreach($data['lijsten'][0]->scores as $score){
|
||||||
<td style=" color:white; width: 30px; text-align:center; border-left: 1px solid grey; background-color:<?=$ijkpunt->kleur?>">
|
$kleur = '#808080';
|
||||||
|
if($score->disabled == 'F' && $score->disablenvt == 'F' && isset($score->kleur)) $kleur = $score->kleur;
|
||||||
|
$gem = number_format($score->gem);
|
||||||
|
if($score->disablenvt == 'T') $gem = 'nvt';
|
||||||
|
if($score->disabled == 'T') $gem = 'uit';?>
|
||||||
|
<td style=" color:white; width: 30px; text-align:center; border-left: 1px solid grey; background-color:<?=$kleur?>">
|
||||||
<div >
|
<div >
|
||||||
<?php echo number_format($ijkpunt->score);
|
<?php echo $gem;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 25px; ">
|
<col style="width: 25px; ">
|
||||||
<col >
|
<col >
|
||||||
<col span='9' style="width: 22px">
|
<col span='11' style="width: 22px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr style="background-color: #ded0d7;border: 1px solid grey; border-bottom: none">
|
<tr style="background-color: #ded0d7;border: 1px solid grey; border-bottom: none">
|
||||||
<td colspan=2 style="border: 1px; solid grey; border-bottom: none; "></td>
|
<td colspan=2 style="border: 1px; solid grey; border-bottom: none; "></td>
|
||||||
<td colspan=4 style="text-align:center; "> <b>huidige situatie</b></td>
|
<td colspan=5 style="text-align:center; "> <b>huidige situatie</b></td>
|
||||||
<td style="border: 1px; solid grey;"></td>
|
<td style="border: 1px; solid grey;"></td>
|
||||||
<td colspan =4 style="text-align:center;"> <b> gewenste situatie</b></td>
|
<td colspan =5 style="text-align:center;"> <b> gewenste situatie</b></td>
|
||||||
<tr>
|
<tr>
|
||||||
<tr style="background-color: #ded0d7; border: 1px; solid grey; border-top: none;">
|
<tr style="background-color: #ded0d7; border: 1px; solid grey; border-top: none;">
|
||||||
<td style="width: 25px; border-left: 1px solid grey;border-top: none; border-bottom: 1px solid grey; border-right:none;font-weight: bold">nr</td>
|
<td style="width: 25px; border-left: 1px solid grey;border-top: none; border-bottom: 1px solid grey; border-right:none;font-weight: bold">nr</td>
|
||||||
@@ -31,11 +31,13 @@
|
|||||||
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #ffcc80; color:#ffffff"> 2</td>
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #ffcc80; color:#ffffff"> 2</td>
|
||||||
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #9fdf9f; color:#ffffff"> 3</td>
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #9fdf9f; color:#ffffff"> 3</td>
|
||||||
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #99d6ff; color:#ffffff"> 4</td>
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #99d6ff; color:#ffffff"> 4</td>
|
||||||
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #808080; color:#ffffff"> </td>
|
||||||
<td style="border-bottom: 1px solid grey;background-color:#ded0d7"></td>
|
<td style="border-bottom: 1px solid grey;background-color:#ded0d7"></td>
|
||||||
<td style="border-bottom: 1px solid grey;text-align:center; background-color: #e08885; color:#ffffff"> 1</td>
|
<td style="border-bottom: 1px solid grey;text-align:center; background-color: #e08885; color:#ffffff"> 1</td>
|
||||||
<td style="border-bottom: 1px solid grey;text-align:center; background-color: #ffcc80; color:#ffffff"> 2</td>
|
<td style="border-bottom: 1px solid grey;text-align:center; background-color: #ffcc80; color:#ffffff"> 2</td>
|
||||||
<td style="border-bottom: 1px solid grey;text-align:center; background-color: #9fdf9f; color:#ffffff"> 3</td>
|
<td style="border-bottom: 1px solid grey;text-align:center; background-color: #9fdf9f; color:#ffffff"> 3</td>
|
||||||
<td style="border-bottom: 1px solid grey; border-right: 1px solid grey;text-align:center; background-color: #99d6ff; color:#ffffff"> 4</td>
|
<td style="border-bottom: 1px solid grey; border-right: 1px solid grey;text-align:center; background-color: #99d6ff; color:#ffffff"> 4</td>
|
||||||
|
<td style=" border-bottom: 1px solid grey;text-align:center; background-color: #808080; color:#ffffff"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
if ($data['lijsten'][0]->scores){
|
if ($data['lijsten'][0]->scores){
|
||||||
@@ -43,31 +45,41 @@
|
|||||||
if($score->nummer != 'gem'){?>
|
if($score->nummer != 'gem'){?>
|
||||||
<tr style="border:1px solid #dddddd;">
|
<tr style="border:1px solid #dddddd;">
|
||||||
<td style="border:1px solid #dddddd; text-align:right; padding-right:3px">
|
<td style="border:1px solid #dddddd; text-align:right; padding-right:3px">
|
||||||
<?php if($score->nummer!= 'gem') echo $score->nummer;?></td>
|
<?php if($score->nummer!= 'gem') echo $score->nummer;?>
|
||||||
|
</td>
|
||||||
<td style="border:1px solid #dddddd;padding-left:2px;">
|
<td style="border:1px solid #dddddd;padding-left:2px;">
|
||||||
<?php if (isset($score->omschrijving)){echo $score->omschrijving;} ?></td>
|
<span> <?php if (isset($score->omschrijving)){echo $score->omschrijving;} ?></span>
|
||||||
|
<span><?php if ($score->disabled == 'T'){echo ' (uit)';} ?></span>
|
||||||
|
<span><?php if ($score->disabled == 'F' && $score->disablenvt == 'T'){echo ' (nvt)';} ?></span>
|
||||||
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 1){ ?>
|
<?php if ($score->huidig == 1){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
background-color:<?php if(isset($score->kleur)){echo $score->kleur;} ?>"></div>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
<?php }; ?>
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 2){ ?>
|
<?php if ($score->huidig == 2){ ?>
|
||||||
<div style= "width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
<div style= "width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
background-color:<?php if(isset($score->kleur)){echo $score->kleur;} ?>"></div>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 3){ ?>
|
<?php if ($score->huidig == 3){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
background-color:<?php if(isset($score->kleur)){echo $score->kleur;} ?>"></div>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if ($score->huidig == 4){ ?>
|
<?php if ($score->huidig == 4){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
background-color:<?php if(isset($score->kleur)){echo $score->kleur;} ?>"></div>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->kleur;} ?>"></div>
|
||||||
|
<?php }; ?>
|
||||||
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->disabled == 'T' || $score->disablenvt == 'T'){ ?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color: #808080;"></div>
|
||||||
<?php }; ?>
|
<?php }; ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
@@ -76,28 +88,34 @@
|
|||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 1){ ?>
|
<?php if (isset($score->wens) && $score->wens == 1){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
background-color:<?php if(isset($score->wenskleur)){echo $score->wenskleur;} ?>"></div>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 2){ ?>
|
<?php if (isset($score->wens) && $score->wens == 2){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
background-color:<?php if(isset($score->wenskleur)){echo $score->wenskleur;} ?>"></div>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 3){ ?>
|
<?php if (isset($score->wens) && $score->wens == 3){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
background-color:<?php if(isset($score->wenskleur)){echo $score->wenskleur;} ?>"></div>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
<td style="border:1px solid #dddddd" >
|
<td style="border:1px solid #dddddd" >
|
||||||
<?php if (isset($score->wens) && $score->wens == 4){ ?>
|
<?php if (isset($score->wens) && $score->wens == 4){ ?>
|
||||||
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
background-color:<?php if(isset($score->wenskleur)){echo $score->wenskleur;} ?>"></div>
|
background-color:<?php {echo $score->disabled == 'T' || $score->disablenvt == 'T' ? '': $score->wenskleur;} ?>"></div>
|
||||||
<?php };?>
|
<?php };?>
|
||||||
</td>
|
</td>
|
||||||
|
<td style="border:1px solid #dddddd" >
|
||||||
|
<?php if ($score->disabled == 'T' || $score->disablenvt == 'T'){ ?>
|
||||||
|
<div style="width: 12px; height: 12px;border-radius: 12px;margin-left: 5px;
|
||||||
|
background-color: #808080;"></div>
|
||||||
|
<?php }; ?>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php ;}};}; ?>
|
<?php ;}};}; ?>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -920,6 +920,12 @@ tr.selected, td.selected{
|
|||||||
.rood{
|
.rood{
|
||||||
background-color:#e08885;
|
background-color:#e08885;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grijs{
|
||||||
|
background-color:#808080;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.submenupage{
|
.submenupage{
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,7 +149,6 @@ ls.initIJkpuntenModel = function(){
|
|||||||
|
|
||||||
this.scores = ko.observableArray([]);
|
this.scores = ko.observableArray([]);
|
||||||
this.erzijnscores = ko.observable(true);
|
this.erzijnscores = ko.observable(true);
|
||||||
|
|
||||||
if(l.scores){
|
if(l.scores){
|
||||||
var meegeven = 'scores';
|
var meegeven = 'scores';
|
||||||
$.each(l.scores, function (i, s){
|
$.each(l.scores, function (i, s){
|
||||||
@@ -157,6 +156,7 @@ ls.initIJkpuntenModel = function(){
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
else if(l.vergelijkingen){
|
else if(l.vergelijkingen){
|
||||||
|
|
||||||
var meegeven = 'vergelijkingen';
|
var meegeven = 'vergelijkingen';
|
||||||
$.each(l.vergelijkingen, function (x, v){
|
$.each(l.vergelijkingen, function (x, v){
|
||||||
dit.scores.push(new fAddScore(x,v, meegeven))
|
dit.scores.push(new fAddScore(x,v, meegeven))
|
||||||
@@ -188,17 +188,42 @@ ls.initIJkpuntenModel = function(){
|
|||||||
this.omschrijving = s.omschrijving;
|
this.omschrijving = s.omschrijving;
|
||||||
this.toelichting = s.toelichting;
|
this.toelichting = s.toelichting;
|
||||||
if (meegeven == 'vergelijkingen'){
|
if (meegeven == 'vergelijkingen'){
|
||||||
this.gem = 'nvt';
|
this.gem = '';
|
||||||
this.gemV = s.gem;
|
this.gemV = s.gemV;
|
||||||
this.kleur = 'lightgray'
|
this.disabled = ko.observable(false);
|
||||||
this.kleurV = s.kleur;
|
this.disabledV = ko.observable(false);
|
||||||
|
if(s.disablenvtV =='T') dit.gemV ='nvt';
|
||||||
|
if(s.disabledV =='T') dit.gemV ='uitgezet';
|
||||||
|
if(s.disabledV =='T') dit.gem ='uitgezet';
|
||||||
|
if(s.disabledV == 'T') dit.disabledV(true)
|
||||||
|
this.disablenvt = ko.observable(false);
|
||||||
|
this.disablenvtV = ko.observable(false);
|
||||||
|
if(s.disablenvtV == 'T') dit.disablenvtV(true);
|
||||||
|
this.kleur = 'lightgray';
|
||||||
|
this.kleurV = ko.observable ='lightgray';
|
||||||
|
if(s.disabled == 'F' && s.disablenvt == 'F')this.kleurV =s.kleurV;
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.gem = s.gem;
|
this.gem = s.gem;
|
||||||
|
if(s.disablenvt =='T') dit.gem ='nvt';
|
||||||
|
if(s.disabled =='T') dit.gem ='uitgezet';
|
||||||
this.gemV = s.gemV;
|
this.gemV = s.gemV;
|
||||||
|
if(s.disablenvtV =='T') dit.gemV ='nvt';
|
||||||
|
if(s.disabledV =='T') dit.gemV ='uitgezet';
|
||||||
|
this.disabled = ko.observable(false);
|
||||||
|
if(s.disabled == 'T') dit.disabled(true);
|
||||||
|
this.disabledV = ko.observable(false);
|
||||||
|
if(s.disabledV == 'T') dit.disabledV(true)
|
||||||
|
this.disablenvt = ko.observable(false);
|
||||||
|
if(s.disablenvt == 'T') dit.disablenvt(true);
|
||||||
|
this.disablenvtV = ko.observable(false);
|
||||||
|
if(s.disablenvtV == 'T') dit.disablenvtV(true);
|
||||||
|
this.kleur = 'lightgray';
|
||||||
|
if(s.disabled == 'F' && s.disablenvt == 'F')this.kleur = s.kleur;
|
||||||
|
this.kleurV = 'lightgray';
|
||||||
|
if(s.disabledV == 'F' && s.disablenvtV == 'F')this.kleurV =s.kleurV;
|
||||||
|
|
||||||
this.kleur = s.kleur;
|
|
||||||
this.kleurV = s.kleurV;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -468,8 +493,6 @@ ls.initIJkpuntenModel = function(){
|
|||||||
self.nieuwsteVersie(nieuw);
|
self.nieuwsteVersie(nieuw);
|
||||||
}
|
}
|
||||||
$.each(result.lijsten, function(j,l){
|
$.each(result.lijsten, function(j,l){
|
||||||
console.log(l, "l")
|
|
||||||
|
|
||||||
if(j == 0){
|
if(j == 0){
|
||||||
self.label(l.label)
|
self.label(l.label)
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ $(function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fAddResult(k) {
|
function fAddResult(k) {
|
||||||
var dit = this;
|
|
||||||
if (k.gem === '' || isNaN(k.gem) || k.gem === null) {
|
if (k.gem === '' || isNaN(k.gem) || k.gem === null) {
|
||||||
this.gem = 0;
|
this.gem = 0;
|
||||||
}
|
}
|
||||||
@@ -128,7 +127,11 @@ $(function () {
|
|||||||
}
|
}
|
||||||
this.num = k.nummer;
|
this.num = k.nummer;
|
||||||
this.colorcode = '#e08885';
|
this.colorcode = '#e08885';
|
||||||
if(k.kleur) dit.colorcode = k.kleur;
|
if(k.kleurcode) this.colorcode = k.kleurcode;
|
||||||
|
if (k.disabled == "T" || k.disablenvt == "T") {
|
||||||
|
this.gem='';
|
||||||
|
this.colorcode="#cccccc";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function fAddCriteria(c) {
|
function fAddCriteria(c) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
ls.initMonitorModel = function(){
|
ls.initMonitorModel = function(){
|
||||||
var timer;
|
var timer;
|
||||||
|
|
||||||
function fAddOrgversion(p){
|
function fAddOrgversion(p){
|
||||||
@@ -36,6 +36,8 @@ ls.initMonitorModel = function(){
|
|||||||
this.nummer = p.nummer
|
this.nummer = p.nummer
|
||||||
this.omschrijving = p.omschrijving;
|
this.omschrijving = p.omschrijving;
|
||||||
this.toelichting = p.toelichting;
|
this.toelichting = p.toelichting;
|
||||||
|
this.disabled = ko.observable(false);
|
||||||
|
if(p.disabled == 'T')dit.disabled(true);
|
||||||
this.indicatorscores = ko.observableArray([]);
|
this.indicatorscores = ko.observableArray([]);
|
||||||
$.each(p.indicatorscores, function(j,k){
|
$.each(p.indicatorscores, function(j,k){
|
||||||
dit.indicatorscores.push(new fAddIndicatorscore(k));
|
dit.indicatorscores.push(new fAddIndicatorscore(k));
|
||||||
@@ -209,6 +211,7 @@ ls.initMonitorModel = function(){
|
|||||||
fUpdateScoretypeVanaf3: function(data){
|
fUpdateScoretypeVanaf3: function(data){
|
||||||
var self= ls.MonitorModel
|
var self= ls.MonitorModel
|
||||||
var indicatorscoreID = data;
|
var indicatorscoreID = data;
|
||||||
|
console.log(this, "this")
|
||||||
|
|
||||||
var submitData = {
|
var submitData = {
|
||||||
indicatorscoreid : indicatorscoreID,
|
indicatorscoreid : indicatorscoreID,
|
||||||
@@ -273,5 +276,5 @@ ls.initMonitorModel = function(){
|
|||||||
} ; // definition van model
|
} ; // definition van model
|
||||||
ls.MonitorModel.initBindings();
|
ls.MonitorModel.initBindings();
|
||||||
}; // else
|
}; // else
|
||||||
}// function initMonitorModel
|
}// function initMonitorModel
|
||||||
});
|
});
|
||||||
@@ -88,21 +88,30 @@ ls.initOntwikkelModel = function(){
|
|||||||
,this)
|
,this)
|
||||||
}
|
}
|
||||||
function fAddResult(p){
|
function fAddResult(p){
|
||||||
|
var dit = this;
|
||||||
this.ijkpuntid = p.ijkpunt_id;
|
this.ijkpuntid = p.ijkpunt_id;
|
||||||
this.wensid = 0;
|
this.wensid = 0;
|
||||||
|
|
||||||
if (p.gewenstid) { this.wensid = p.gewenstid; }
|
// if (p.gewenstid) { this.wensid = p.gewenstid; }
|
||||||
this.scoretype = p.scoretype;
|
this.scoretype = p.scoretype;
|
||||||
|
this.disabled = p.disabled;
|
||||||
|
this.disablentv = p.disablenvt;
|
||||||
|
this.huidig = ko.observable( p.huidig);
|
||||||
|
if(p.disabled == 'T' || p.disablenvt == 'T') this.huidig(5)
|
||||||
|
|
||||||
this.huidig = ko.observable( p.huidig); // observable is niet nodig maar dit was eerst een computed
|
|
||||||
|
|
||||||
|
// observable is niet nodig maar dit was eerst een computed
|
||||||
this.gewenst = ko.observable(3);
|
this.gewenst = ko.observable(3);
|
||||||
if (p.gewenst) {this.gewenst(p.gewenst)};
|
if (p.gewenst) {this.gewenst(p.gewenst)};
|
||||||
|
if(p.disabled == 'T' || p.disablenvt == 'T') this.gewenst(5)
|
||||||
|
|
||||||
this.nummer = p.nummer;
|
this.nummer = p.nummer;
|
||||||
this.omschrijving = p.omschrijving;
|
this.omschrijving = p.omschrijving;
|
||||||
this.toelichting = p.toelichting;
|
this.toelichting = p.toelichting;
|
||||||
this.aantalscholen = p.aantalscholen;
|
this.aantalscholen = p.aantalscholen;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ls.OntwikkelModel !== undefined){
|
if (ls.OntwikkelModel !== undefined){
|
||||||
@@ -205,8 +214,7 @@ ls.initOntwikkelModel = function(){
|
|||||||
},
|
},
|
||||||
fUpdateGewenst: function(num){
|
fUpdateGewenst: function(num){
|
||||||
var self=ls.OntwikkelModel;
|
var self=ls.OntwikkelModel;
|
||||||
|
if(this.huidig() != 5 ) this.gewenst(num);
|
||||||
this.gewenst(num);
|
|
||||||
},
|
},
|
||||||
fSwitchOrg: function(){
|
fSwitchOrg: function(){
|
||||||
var self = ls.OntwikkelModel;
|
var self = ls.OntwikkelModel;
|
||||||
@@ -341,10 +349,12 @@ ls.initOntwikkelModel = function(){
|
|||||||
self.ingevuld(false);
|
self.ingevuld(false);
|
||||||
if (self.selectedOrgversion() == undefined) return;
|
if (self.selectedOrgversion() == undefined) return;
|
||||||
|
|
||||||
|
|
||||||
var submitData = {orgversieid : self.selectedOrgversion().id,
|
var submitData = {orgversieid : self.selectedOrgversion().id,
|
||||||
orgid : self.selectedOrg().id
|
orgid : self.selectedOrg().id
|
||||||
}
|
}
|
||||||
$.post("index.php/monpas/rapontwikkel/getscores", submitData, function(data){
|
$.post("index.php/monpas/rapontwikkel/getscores", submitData, function(data){
|
||||||
|
|
||||||
self.results.removeAll();
|
self.results.removeAll();
|
||||||
if (data){
|
if (data){
|
||||||
$.each(data.scores, function(i,p){
|
$.each(data.scores, function(i,p){
|
||||||
@@ -354,25 +364,6 @@ ls.initOntwikkelModel = function(){
|
|||||||
self.fGetWriteAutorisatie();
|
self.fGetWriteAutorisatie();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},'json');
|
|
||||||
|
|
||||||
var submitData = {orgversieid : self.selectedOrgversion().id,
|
|
||||||
orgid : self.selectedOrg().id
|
|
||||||
}
|
|
||||||
$.post("index.php/monpas/rapontwikkel/getscores", submitData, function(data){
|
|
||||||
self.results.removeAll();
|
|
||||||
if (data){
|
|
||||||
$.each(data.scores, function(i,p){
|
|
||||||
self.results.push(new fAddResult(p));
|
|
||||||
self.ingevuld(true);
|
|
||||||
})
|
|
||||||
self.fGetWriteAutorisatie();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},'json');
|
},'json');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
ls.initVersiesModel = function(){
|
ls.initVersiesModel = function(){
|
||||||
var timeout;
|
var timeout;
|
||||||
|
|
||||||
function fAddModule(p){
|
function fAddModule(p){
|
||||||
@@ -27,6 +27,8 @@ ls.initVersiesModel = function(){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.toonindics = ko.observable(false);
|
this.toonindics = ko.observable(false);
|
||||||
|
this.disabled = ko.observable(false)
|
||||||
|
if(p.disabled == 'T') this.disabled(true);
|
||||||
}
|
}
|
||||||
function fAddIndicator(k){
|
function fAddIndicator(k){
|
||||||
this.id = k.id;
|
this.id = k.id;
|
||||||
@@ -203,6 +205,7 @@ ls.initVersiesModel = function(){
|
|||||||
else { apprise("Er is een fout opgetreden bij opslaan."); };
|
else { apprise("Er is een fout opgetreden bij opslaan."); };
|
||||||
},'json');
|
},'json');
|
||||||
},
|
},
|
||||||
|
|
||||||
fToggleIndicatoren: function(){
|
fToggleIndicatoren: function(){
|
||||||
var self= ls.VersiesModel;
|
var self= ls.VersiesModel;
|
||||||
self.selectedIJkpunt(null);
|
self.selectedIJkpunt(null);
|
||||||
@@ -212,6 +215,7 @@ ls.initVersiesModel = function(){
|
|||||||
fUpdateIJkpunt: function(){
|
fUpdateIJkpunt: function(){
|
||||||
var self= ls.VersiesModel;
|
var self= ls.VersiesModel;
|
||||||
var dit = this;
|
var dit = this;
|
||||||
|
if(dit.disabled()) return;
|
||||||
if (timeout){
|
if (timeout){
|
||||||
clearTimeout(timeout)
|
clearTimeout(timeout)
|
||||||
timeout ==null;
|
timeout ==null;
|
||||||
@@ -227,6 +231,25 @@ ls.initVersiesModel = function(){
|
|||||||
$.post("index.php/monpas/beheer/updateijkpunt",submitData, function(){})
|
$.post("index.php/monpas/beheer/updateijkpunt",submitData, function(){})
|
||||||
},800);
|
},800);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
fDisableIJkpunt: function(){
|
||||||
|
var self = ls.VersiesModel;
|
||||||
|
var dit = this;
|
||||||
|
|
||||||
|
dit.disabled(! dit.disabled())
|
||||||
|
var disabled = 'F';
|
||||||
|
if(dit.disabled()) disabled = 'T';
|
||||||
|
var submitData = {
|
||||||
|
'id' : dit.id,
|
||||||
|
'disabled' : disabled
|
||||||
|
}
|
||||||
|
|
||||||
|
$.post("index.php/monpas/beheer/disableijkpunt", submitData, function(){
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
fDeleteIJkpunt:function(){
|
fDeleteIJkpunt:function(){
|
||||||
var self =ls.VersiesModel;
|
var self =ls.VersiesModel;
|
||||||
var id = this.id;
|
var id = this.id;
|
||||||
@@ -248,6 +271,8 @@ ls.initVersiesModel = function(){
|
|||||||
fNieuweIndicator: function(){
|
fNieuweIndicator: function(){
|
||||||
var self = ls.VersiesModel;
|
var self = ls.VersiesModel;
|
||||||
var num =0
|
var num =0
|
||||||
|
var dit = this;
|
||||||
|
if(dit.disabled()) return;
|
||||||
self.selectedIJkpunt(this);
|
self.selectedIJkpunt(this);
|
||||||
$.each(self.selectedIJkpunt().indicatoren(), function(j,k){
|
$.each(self.selectedIJkpunt().indicatoren(), function(j,k){
|
||||||
num=k.nummer();
|
num=k.nummer();
|
||||||
@@ -311,5 +336,5 @@ ls.initVersiesModel = function(){
|
|||||||
} ; // definition van model
|
} ; // definition van model
|
||||||
ls.VersiesModel.initBindings();
|
ls.VersiesModel.initBindings();
|
||||||
}; // else
|
}; // else
|
||||||
}// function initVersiesModel
|
}// function initVersiesModel
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user