Files
monpas/application/views/monpas/reports/printinspectie.php
T
2021-07-10 16:25:16 +02:00

175 lines
4.7 KiB
PHP

<style>
.kopje{
background-color: #d8a8bf;
border:none;
}
.linetop{
border-top:1px solid #ebebeb;
}
.int{
width : 24px;
text-align :right;
}
.naamveld{
width: 170px;
padding-left: 3px;
}
/* .blauw{
background-color:#1558d0;
color:#ffffff;
}
.groen{
background-color:#15d029;
color:#ffffff;
}
.oranje{
background-color:#fea719;
}
.rood{
background-color:#fe2219;
}*/
.lstable{
font-family : inherit;
font-size :inherit;
border-collapse :collapse;
border-spacing :0px;
}
</style>
<div style="font-family: Opensans, Arial,Verdana,sans; font-size: 10px">
<h4> <?=$instrument?>: resultaatmatrix</h4>
<hr/>
<table style=" font-family: inherit; font-size:inherit; border: 1px solid lightgrey; border-spacing:0px;" >
<thead>
<tr>
<th style="width: 20%"></th>
<th style="width: 30%"></th>
<th style="width: 20%"></th>
<th style="width: 20%"></th>
</tr>
</thead>
<tbody>
<tr class="kopje">
<td>Organisatie: </td>
<td><?php if($organisatie->soort === 4) {echo $organisatie->brin.'-'.$organisatie->naam;}
else{echo $organisatie->naam;}?></td>
<td>Geldig vanaf:</td>
<td><?=$info->geldigvanaf?></td>
</tr>
<tr>
<td>Meting: </td>
<td><?=$info->naam?></td>
<td>Geldig tot en met:</td>
<td><?=$info->geldigtm?></td>
</tr>
<tr >
<td>Periode: </td>
<td><?=$info->periodenummer?></td>
<td>Printdatum: </td>
<td><?=$today?></td>
</tr>
<tr>
<td><?php if($organisatie->soort != 4){echo "Gesorteerd per";}?></td>
<td><?php if($organisatie->soort != 4){echo $criterium;}?></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<hr/>
<table style="font-family: inherit; font-size:inherit; table-layout: fixed; width:100%;border: 1px solid lightgrey">
<col style="width: <?php echo($kopbreedte) ?>">
<colgroup>
<col style="width:<?php echo($kolombreedte) ?>; span="<?php echo (count($ijkpunten)); ?> ">
</colgroup>
<thead>
<tr class="kopje">
<th style="text-align:left; ">Organisatie</th>
<?php foreach($ijkpunten as $ijkpunt) {
echo "<th style='text-align:center; font-weight: normal; font-size: xx-small; ' >".$ijkpunt->nummer."</th>";
} ; ?>
</tr>
</thead>
<tbody >
<?php
if ($indelingen) {
foreach($indelingen as $indeling) {
if (isset($indeling->naam)){ ?>
<tr style="background-color: #930f50; color:#ffffff">
<td col="<?php echo (count($ijkpunten) + 1) ;?>"><?php echo $indeling->naam ; ?></td>
</tr>
<?php ;}; // if indeling->naam ?>
<tr>
<td colspan="<?php echo (count($ijkpunten) + 1) ;?>">
<?php
?>
<table style="width:100%; table-layout: fixed; font-family: inherit; font-size:inherit; border-collapse: collapse">
<col style="width: <?php echo($kopbreedte) ?>">
<colgroup>
<col style="width:<?php echo($kolombreedte) ?>; span="<?php echo (count($ijkpunten)); ?> ">
</colgroup>
<tbody>
<?php
if ($indeling->organisaties) {
foreach($indeling->organisaties as $organisatie) {?>
<tr style="border-bottom:1px solid #efefef">
<td style="font-size:0.8em; width: <?php echo($orgbreedte) ?> overflow-x:hidden; ">
<?php
if (isset($organisatie->brin)){
echo $organisatie->brin.'-'.$organisatie->subject;
}
else {echo $organisatie->subject;};
?>
</td>
<?php
if ($organisatie->results) {
foreach($organisatie->results as $result){ ?>
<td style="<?php echo($kolombreedte) ?>; color:white; border: 1px solid white; text-align:center; background-color:<?=$result->kleur?>">
<?php switch($result->normId){
case '1': echo 'Z'; break;
case '2': echo 'O'; break;
case '3': echo 'V'; break;
case '4': echo 'G'; break; }
?>
</td>
<?php };
}; // if scores
?>
</tr>
<?php };
?>
<?php };?>
</tbody>
</table>
<?php ; ?>
</td>
</tr>
<?php ;}; };?>
</tbody>
</table>
<h4 style="margin-top:30px">Legenda <?=$labels['ijkpunten']?></h4>
<table class="lstable">
<tr style="background-color:#efefef" >
<td> nr</td>
<td> <?=$labels['ijkpunt']?></td>
</tr>
<?php foreach($ijkpunten as $ijkpunt){?>
<tr>
<td style="padding-left: 3px; padding-right: 3px"><?= $ijkpunt->nummer?></td>
<td><?= $ijkpunt->omschrijving?></td>
</tr>
<?php }; ?>
</table>
<h4><?=$kleurlegenda?></h4>
</div>