Files
monpas/application/views/monpas/sopkeuze/ijkpuntentabel.php
T
2021-11-19 10:31:31 +01:00

61 lines
2.5 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 id="tabijktabel" class="sopfonts">
<table style="table-layout:fixed; border-collapse:collapse; border:1px solid grey;float: left">
<thead >
<tr style="border:1px solid grey;background-color: #ded0d7;">
<th style="width: 30px;padding: 3px;">nr</th>
<th style=" width: 340px; padding: 3px;padding-left:5px; text-align:left;"><?=$data['lijsten'][0]->label?> </th>
</tr>
</thead>
<tbody >
<?php foreach($data['lijsten'][0]->scores as $score){
?>
<tr style="border:1px solid grey;" >
<td style="border-right: 1px solid grey;vertical-align:top" ><?php if($score->nummer != 'gem'){ echo $score->nummer;}?></td>
<td style="vertical-align:top; overflow-x: hidden; overflow-y: hidden; text-overflow: ellipsis; white-space: nowrap;" ><?php echo isset($score->omschrijving) ? $score->omschrijving: 'Gemiddelde'?></td>
<?php ;} ; ?>
</tbody>
</table>
<?php foreach($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: right; padding-left: 3px;">
<th style="width: 50px; padding: 3px;"> <?php echo 'p.'. $lijst->periodenummer ?></th>
</tr>
</thead>
<tbody>
<?php foreach($lijst->scores as $score){
$kleur = $score->disabled == 'T' || $score->disablenvt == 'T' ? '#808080' : $score->kleur; ?>
<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>
</tr>
<?php } ?>
</tbody>
</table>
<?php } ?>
<p style=" clear: both;">Scores in procenten.</p>
</div>
<?php ;} ;?>
</body>
</html>