flexibel sop

This commit is contained in:
Monique
2021-11-19 19:59:34 +01:00
parent b8177ade48
commit 39a120e214
14 changed files with 204 additions and 100 deletions
@@ -22,11 +22,12 @@
</tr>
</thead>
<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" >
<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; 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" ><?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($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?></td>
<?php ;} ; ?>
</tr>
</tbody>
@@ -42,12 +43,19 @@
</thead>
<tbody>
<?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">
<td style="vertical-align:top; text-align: right: border-right: 1px solid grey; padding-left: 3px; background-color: <?php echo $ijkpunt->disable== 'F' || $ijkpunt->kleur ?>" >
<?php echo $ijkpunt->gem ?>
<td style="vertical-align:top; text-align: right: border-right: 1px solid grey; padding-left: 3px; background-color: <?php echo $kleur ?>" >
<?php echo $gem ?>
</td>
</tr>
<?php } ?>