kwalOndersteuning
This commit is contained in:
@@ -79,6 +79,8 @@ class Sopinhouden_model extends MY_Model{
|
||||
|
||||
$versie = $result['targetversie'];
|
||||
$mbgrafiek = $result['grafiek1'];
|
||||
// print_r($mbgrafiek);
|
||||
// exit;
|
||||
$imagemb =$this->Phantom_model->create_img($mbgrafiek, 'test', FALSE, FALSE, array(650, 300));
|
||||
$imagedata = "<img src='data:image/png;base64,".$imagemb."' id='mod1image1'/>";
|
||||
$pos = strpos($content,'mbgrafiek1');
|
||||
@@ -571,12 +573,13 @@ class Sopinhouden_model extends MY_Model{
|
||||
$laagstescore = 101;
|
||||
if ($scores) {
|
||||
foreach ($scores as $score) {
|
||||
$score->gem = round($score->gem);
|
||||
$score->gem = round($score->gem);
|
||||
//
|
||||
// if ($score->num > 0) {
|
||||
// $gem=$score->somscore / $score->num;
|
||||
// };
|
||||
// $score->kleurcode = $this->kleurcodes->getkleur($score->gem);
|
||||
//LS ACTIEF GEMAAKT
|
||||
$score->kleurcode = $this->kleurcodes->getkleur($score->gem);
|
||||
|
||||
if ($score->disabled == 'F' && $score->disablenvt == 'F') {
|
||||
$totgem = $totgem + $score->gem;
|
||||
@@ -593,13 +596,12 @@ class Sopinhouden_model extends MY_Model{
|
||||
if ($ambitie && $score->gem >= $ambitie->zprocent) {
|
||||
$ijkpuntenok = $ijkpuntenok + 1;
|
||||
};
|
||||
|
||||
|
||||
if ($totaantal > 0) {
|
||||
$totgem = round($totgem / $totaantal, 2);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
if ($totaantal > 0) {
|
||||
$totgem = round($totgem / $totaantal, 0);
|
||||
}
|
||||
$totgemkleur = $this->kleurcodes->getkleur($totgem);
|
||||
// foreach scores bereken som en dus totgem en ijkpuntenok
|
||||
}
|
||||
@@ -624,7 +626,7 @@ class Sopinhouden_model extends MY_Model{
|
||||
"labels" => $labels,
|
||||
"scores" => $scores,
|
||||
'totgem' => $totgem,
|
||||
'totgemkleur' =>$totgem,
|
||||
'totgemkleur' =>$totgemkleur,
|
||||
'ijkpuntenok' => $ijkpuntenok,
|
||||
'welkehoogste' => $welkehoogste,
|
||||
'hoogstescore' => round($hoogstescore,1),
|
||||
|
||||
Reference in New Issue
Block a user