74 lines
2.8 KiB
PHP
74 lines
2.8 KiB
PHP
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
font-family: 'Verdana', 'sans-serif';
|
|
font-size: 12px;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<?php if ($data['lijsten'][0]->scores){ ?>
|
|
<div class= "sopfonts" id="tabijkgem">
|
|
<table style="table-layout:fixed; border-collapse:collapse; border:none; float: left"
|
|
>
|
|
<thead style="background-color:#ded0d7;">
|
|
<tr style="border: 1px solid grey";>
|
|
<th style="width: 30px;padding: 3px;">nr</th>
|
|
<th style="width: 340px; padding: 3px; padding-left:5px; text-align:left;"> <?php echo $data['lijsten'][0]->label ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody >
|
|
<?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($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>
|
|
</table>
|
|
<?php foreach($data['lijsten'] ? $data['lijsten'] : [] as $lijst) {
|
|
?>
|
|
|
|
<table style="float: left; table-layout:fixed; border-collapse:collapse; border:none; ">
|
|
<thead style="background-color:#ded0d7;">
|
|
<tr style="border: 1px solid grey; text-align: left; padding-left: 3px;">
|
|
<th style="width: 50px;padding: 3px;"> <?php echo 'p.'. $lijst->periodenummer ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if ($lijst->scores)
|
|
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 $kleur ?>" >
|
|
<?php echo $gem ?>
|
|
</td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
|
|
</table>
|
|
<?php } ?>
|
|
|
|
|
|
<p style="clear: both;">Scores in procenten.</p>
|
|
|
|
</div>
|
|
<?php ;} ;?>
|
|
</body>
|
|
</html>
|