kleurenfout

This commit is contained in:
Monique
2022-10-07 09:03:49 +02:00
parent 1cccd025d6
commit 09affb644a
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -76,7 +76,8 @@ class MY_Controller extends CI_Controller{
// public $version = '1.18.00';// alle instrumenten in het compact sop // public $version = '1.18.00';// alle instrumenten in het compact sop
// public $version = '1.18.02';// fout in resultaatmatrix // public $version = '1.18.02';// fout in resultaatmatrix
// public $version = '1.18.04';// invul status // public $version = '1.18.04';// invul status
public $version = '1.18.05';// fout schoolgegevens compactsop // public $version = '1.18.05';// fout schoolgegevens compactsop
public $version = '1.18.08';// kleurenfout
@@ -44,19 +44,19 @@
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 $score){
$omschrijving = "gemiddelde"; $omschrijving = "gemiddelde";
if(isset($score->omschrijving)){ if(isset($score->omschrijving)){
$omschrijving = $score->omschrijving; $omschrijving = $score->omschrijving;
$kleur = '#808080'; $kleur = '#808080';}
if(isset($score->kleur) && $score->disabled == 'F' && $score->disablenvt =='F') $kleur = $score->kleur; if(isset($score->kleur) && $score->disabled == 'F' && $score->disablenvt =='F'){ $kleur = $score->kleur;
}; };
?> ?>
labels.push(<?php $score->nummer ?>); labels.push(<?php $score->nummer ?>);
<?php if(floatval($score->gem) > 0 ){ ?> <?php if(floatval($score->gem) > 0 ){ ?>
scores.push({ scores.push({
y: <?= floatval($score->gem) ?>, y: <?= floatval($score->gem) ?>,
color: '<?=$kleur ?>', color: '<?= $kleur ?>',
name: '<?= $score->nummer ?>', name: '<?= $score->nummer ?>',
}); });
<?php } ?> <?php } ?>