302 lines
12 KiB
PHP
302 lines
12 KiB
PHP
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
font-family: 'OpenSans', 'Arial', 'Verdana' ,sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
@media print{
|
|
.paginaeinde{
|
|
page-break-before: always;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h2> <?=$instrument?>: <?= $lijsten[0]->label ?></h2>
|
|
<table style="font-family: inherit; border-collapse:collapse; border-spacing:0px; " >
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 20%"></th>
|
|
<th style="width: 80%"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>Organisatie: </td>
|
|
<td>
|
|
<?php if($organisatie->soort === 4) {
|
|
echo $organisatie->brin.'-'.$organisatie->naam;
|
|
}
|
|
else{
|
|
echo $organisatie->naam;
|
|
}?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Printdatum: </td>
|
|
<td><?=$vandaag?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div style="margin-top: 50px;">
|
|
<img src="<?=$inputimage?>" >
|
|
</div>
|
|
<div style="margin-left:50px;">
|
|
<p> <?= $versie?></p>
|
|
<table>
|
|
<?php
|
|
foreach($lijsten as $lijst){ ?>
|
|
<tr>
|
|
<td style="width:30px;">
|
|
<?= $lijst->periodenummer?>
|
|
</td>
|
|
<td style="padding-left:10px; width: 500px; ">
|
|
<?= ': '. $lijst->vantm?>
|
|
</td>
|
|
|
|
</tr>
|
|
<?php }; ?>
|
|
</table>
|
|
<table >
|
|
<tr >
|
|
<td style=" width: 30px; "><div style="border-bottom: 3px solid #404040; margin-bottom: 1px;"></div></td>
|
|
<td style="padding-left:10px;">: ambitie</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="paginaeinde"></div>
|
|
|
|
|
|
<!-- <h2>Scores</h2>-->
|
|
|
|
<?php
|
|
if($aantal == 4){
|
|
echo '<div>';
|
|
}
|
|
if($aantal < 4){
|
|
echo '<div style="margin-left: 50px;">';
|
|
}
|
|
?>
|
|
<div>
|
|
<?php
|
|
foreach($lijsten as $lijst){
|
|
?>
|
|
<table style="font-family: inherit; float:left;">
|
|
<thead>
|
|
<tr style="height: 15px; border-bottom: none">
|
|
<?php
|
|
if($lijst->orgversieid == $nieuwsteversie){
|
|
?>
|
|
<th colspan="1"
|
|
style=" width: 40px; border-right: 2px solid white; background-color: #ded0d7;
|
|
border-right: 2px solid white;font-weight: 300;vertical-align: top; ">nr</th>
|
|
<th colspan="5"
|
|
style="width: 240px;border-right: 2px solid white; vertical-align: top;
|
|
background-color: #ded0d7; border-right: 2px solid white;font-weight: 300;">
|
|
<?=$lijst->label?>
|
|
</th>
|
|
<?php };
|
|
?>
|
|
|
|
<th colspan="2"
|
|
style=" background-color: #ded0d7; border-right: 2px solid white;font-weight: 300; width:80px ">
|
|
<span style="padding-left: 4px;"><?=$lijst->vantm?>
|
|
</span>
|
|
</th>
|
|
</tr>
|
|
<tr style="height: 25px;">
|
|
<?php
|
|
if($lijst->orgversieid == $nieuwsteversie){
|
|
?>
|
|
<th colspan="1"
|
|
style="border-right: 2px solid white; background-color: #ded0d7;">
|
|
</th>
|
|
<th colspan="5"
|
|
style="border-right: 2px solid white; background-color: #ded0d7;">
|
|
</th>
|
|
<?php };
|
|
?>
|
|
<th colspan="1"
|
|
style="border-right: 1px solid white; overflow: hidden; text-overflow: ellipsis;
|
|
padding-left: 3px;background-color: #ded0d7; border-right: 2px solid white;font-weight: 300;">
|
|
<?php
|
|
echo substr($lijst->orgnaam, 0, 11);
|
|
?>
|
|
</th>
|
|
<?php
|
|
if($organisatie->soort != 1){
|
|
?>
|
|
<th colspan="1"
|
|
style="overflow: hidden; text-overflow: ellipsis; border-right: 2px solid white;
|
|
padding-left: 3px; background-color: #ded0d7; font-weight: 300;">
|
|
<?= substr($lijst->naamV, 0, 9)?>
|
|
</th>
|
|
<?php };
|
|
?>
|
|
</tr>
|
|
<tr style="height: 10px;">
|
|
<?php
|
|
if($lijst->orgversieid == $nieuwsteversie){
|
|
?>
|
|
<th colspan="1" style="border-right: 2px solid white; background-color: #ded0d7">
|
|
</th>
|
|
<th colspan="5"; style="border-right: 2px solid white; background-color: #ded0d7">
|
|
</th>
|
|
<?php };
|
|
?>
|
|
<th colspan="1"; style=" border-right: 1px solid white;
|
|
padding-left: 3px;background-color: #ded0d7; font-weight: 300;">
|
|
<span>metingen: <?=$lijst->metingen?>
|
|
</span>
|
|
</th>
|
|
<?php
|
|
if($organisatie->soort != 1){
|
|
?>
|
|
<th colspan="1" style="border-right: 2px solid white;
|
|
padding-left: 3px;background-color: #ded0d7; font-weight: 300; text-align: right">
|
|
<span>
|
|
<?=$lijst->metingenV?>
|
|
</span>
|
|
</th>
|
|
<?php };
|
|
?>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
foreach($lijst->scores as $score){ ?>
|
|
<tr style="border-bottom: 1px solid #ebebeb; max-height: 30px;" >
|
|
<?php
|
|
if($lijst->orgversieid == $nieuwsteversie){
|
|
?>
|
|
<td colspan="1" style="vertical-align:top; padding-left: 10px;" >
|
|
<?=$score->nummer?>
|
|
</td>
|
|
<td colspan="5" style="vertical-align:top; padding-left: 4px; text-align:left">
|
|
<?php if(isset($score->omschrijving)){ echo $score->omschrijving; }?>
|
|
</td>
|
|
<?php };
|
|
?>
|
|
<td
|
|
colspan="1" style="text-align: right; vertical-align:top; padding-right:5px;
|
|
color: #ffffff; background-color: <?=$score->kleur ?>">
|
|
<?=$score->gem?>
|
|
</td>
|
|
<?php
|
|
if($organisatie->soort != 1){
|
|
?>
|
|
<td colspan="1" style="text-align:right;color:#ffffff; vertical-align:top;
|
|
padding-right: 5px; border-left: 1px solid white; background-color: <?=$score->kleurV ?>">
|
|
<?=$score->gemV?>
|
|
</td>
|
|
<?php };
|
|
?>
|
|
</tr>
|
|
|
|
<?php ;}; // foreach scores ?>
|
|
</tbody>
|
|
</table>
|
|
<?php };
|
|
?>
|
|
</div>
|
|
|
|
<br>
|
|
<div style="clear:both"></div>
|
|
|
|
|
|
<table style="margin-top: 20px; ">
|
|
<tr>
|
|
<td style="width: 30px; border-bottom: 1px solid #ebebeb; background-color:
|
|
<?=$scorekleuren->kleur4 ?>">
|
|
</td>
|
|
<td style="padding-left:10px; width: 200px ; ">
|
|
<?php {echo 'score >= '.$scorekleuren->grens3. ' en <= '. $scorekleuren->grens4; }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" border-bottom: 1px solid #ebebeb; background-color:
|
|
<?=$scorekleuren->kleur3 ?>" ></td>
|
|
<td style="padding-left:10px;">
|
|
<?php {echo 'score >= '.$scorekleuren->grens2. ' en <= '. $scorekleuren->grens3; }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" border-bottom: 1px solid #ebebeb; background-color:
|
|
<?=$scorekleuren->kleur2 ?>" >
|
|
</td>
|
|
<td style="padding-left:10px;">
|
|
<?php {echo 'score >= '.$scorekleuren->grens1. ' en <= '. $scorekleuren->grens2; }?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style=" border-bottom: 1px solid #ebebeb; background-color:
|
|
<?=$scorekleuren->kleur1 ?>" >
|
|
</td>
|
|
<td style="padding-left:10px;">
|
|
<?php {echo 'score <= '. $scorekleuren->grens1; }?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div style=" width: 450px; float: left; margin-right: 20px;" >
|
|
<h2>Ambities</h2>
|
|
<?php
|
|
foreach($lijsten as $lijst) {
|
|
if ($lijst->gemscore > 0) {
|
|
?>
|
|
<div style="background-color: #f5f0f2; padding-top: 10px; padding-left: 8px; padding-right: 8px; padding-bottom: 10px; border-radius: 2px; width: 350px">
|
|
<p>Gemiddelde score><?= $lijst->gemscore ?> %</p>
|
|
<p>Minimaal <?= $lijst->ijkpunten.' '?><?= $lijst->label ?> op <?= $lijst->zprocent ?>% of hoger.</p>
|
|
<br>
|
|
</div>
|
|
<?php
|
|
}
|
|
};
|
|
?>
|
|
</div>
|
|
<div style=" width: 600px; float: left; ">
|
|
|
|
<h2 >Resultaten</h2>
|
|
<?php
|
|
foreach($lijsten as $lijst){
|
|
?>
|
|
<div style="width:150px; background-color: #ffffff">
|
|
<div style=" background-color: #f5f0f2; padding: 10px; margin: 5px; border-radius: 2px; width: 140px; float: left; display: inline-block">
|
|
<p>Periode: <?=$lijst->vantmresult?>
|
|
</p>
|
|
<p>Betreft: <?=$lijst->metingen?><?php if ($lijst->metingen ==1 ) {echo " meting"; } else {echo "metingen";}; ?>
|
|
</p>
|
|
<p>Gemiddelde score: <?=$lijst->totgem?>
|
|
</p>
|
|
<p><?=$lijst->ijkpuntenok?> <?=$lijst->label ?> op <?=$lijst->zprocent ?>% of hoger.
|
|
</p>
|
|
<p>Hoogst scorende <?=$lijst->label ?> is nummer <?=$lijst->welkehoogste?>
|
|
met een score van <?=$lijst->hoogstescore?>.
|
|
</p>
|
|
<p>
|
|
Laagst scorende <?=$lijst->label ?> is nummer <?=$lijst->welkelaagste?>
|
|
met een score van <?=$lijst->laagstescore?>.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<?php };
|
|
?>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|