110 lines
3.5 KiB
PHP
110 lines
3.5 KiB
PHP
<link rel="stylesheet" href="<?=base_url()?>css/ijkpartituur/reports.css" type="text/cs">
|
|
|
|
<?php if(isset($pdf)): ?>
|
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
|
|
<?php endif ;?>
|
|
|
|
<?php if(isset($pdf)): ?>
|
|
<head>
|
|
</head>
|
|
<body style= "font-family:'Open Sans', sans; font-size:12px;">
|
|
<?php endif ; ?>
|
|
<header style="display:none">
|
|
<!-- dit stukje van header moet worden opgenomen om het logo-image in de header af te drukken
|
|
vanwege asynchrone afhandeling wordt de image anders niet op tijd geladen -->
|
|
<img src="<?=base_url()?>css/images/frameworklogo30.png" height="30" />
|
|
</header>
|
|
<!-- onderstaaande div om all standaard opmaak aan te hangen -->
|
|
<div class="reportdiv" style="width: 1200px;position:relative; font-family:'Open Sans', sans; font-size:12px;">
|
|
<div style="border:2px solid #975796; padding:5px; height: 115px; overflow-y: auto">
|
|
<div style= "float:left; width = 50%">
|
|
<p>SELECTIECRITERIA</p>
|
|
<table>
|
|
<tr>
|
|
<td>Partituur</td>
|
|
<td><?=$partituurnaam?></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Overzicht</td>
|
|
<td><?=$type?> </td>
|
|
</tr>
|
|
<?php if ($type=="per pijler" ) { ?>
|
|
<tr>
|
|
<td>IJkpunt</td>
|
|
<td> <?=$selectedPijler?> </td>
|
|
</tr>
|
|
<?php ; } ; ?>
|
|
<tr>
|
|
<td>Periode van</td>
|
|
<td><?=$van?> t/m <?=$tm?> </td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
<?php if ($acts == 2) { ?>
|
|
<div style="float:left; width :48%; margin-left:20px">
|
|
<p>Legenda : activiteiten zijn gekleurd naar fase:</p>
|
|
<?php foreach($kleuren as $kleurregel) {
|
|
echo "<p><span style='background-color:".$kleurregel->kleur."' > </span> ".$kleurregel->naam."</p>" ;
|
|
} ; ?>
|
|
</div>
|
|
<?php ; } ; ?>
|
|
</div>
|
|
<p></p>
|
|
<div style="width: 1200px; overflow-x:auto;">
|
|
<?php if (( $dagen* $px_per_dag) > 1000) {
|
|
echo "Tijdspan te lang. Kies een andere datum of pas de periode (dag/maand/jaar) aan." ;
|
|
}
|
|
else { ?>
|
|
<div class="clearfix"></div>
|
|
<!-- ********** header deel 1 ************ -->
|
|
<div class="matrixcell"
|
|
style =" width:200px; "></div>
|
|
<?php foreach ($header1 as $yearinfo){ ?>
|
|
<div class="matrixcell"
|
|
style=" text-align:center;
|
|
width:<?=($yearinfo->days * $px_per_dag)?>px;" ><?= $yearinfo->tekst?></div>
|
|
<?php ; }; ?>
|
|
<div class="clearfix"></div>
|
|
<!-- ********** header deel 2 ************ -->
|
|
<div class="matrixcell"
|
|
style=" width:200px; font-style:italic;"> activiteit/ijkpunt </div>
|
|
<?php foreach ($header2 as $dagmaand){ ?>
|
|
<div class= "matrixcell"
|
|
style=" text-align:center;
|
|
width: <?=($dagmaand->days * $px_per_dag )?>px">
|
|
<?= $dagmaand->label?>
|
|
</div>
|
|
<?php ; } ; ?>
|
|
<div class="clearfix"></div>
|
|
<!-- *********** body van het diagram ************ -->
|
|
<?php if ($pijlers) {
|
|
foreach($pijlers as $pijler) { ?>
|
|
<div style="position:relative; width:1190px;">
|
|
<?php echo $pijler->html ; ?>
|
|
|
|
<div class="matrixcell"
|
|
style="width:200px; "><?=$pijler->naam?>
|
|
</div>
|
|
|
|
<?php $i = 1;
|
|
foreach ($header2 as $dagmaand){ ?>
|
|
<div class="matrixcell"
|
|
style="width: <?=($dagmaand->days * $px_per_dag)?>px;
|
|
background-color:<?php if ($i == 1) {echo '#f7f7f7' ;}
|
|
else {echo '#dedede' ;} ; ?>
|
|
;">
|
|
<?php if ($i == 1) {$i = 0;} else {$i = 1;} ; ?>
|
|
</div>
|
|
<?php ; } ; ?>
|
|
<div style="clearfix" ></div>
|
|
</div>
|
|
<?php ;} ; ?>
|
|
<?php } ; ?>
|
|
</div>
|
|
|
|
<?php ; } ; ?> <!-- else -->
|
|
</div>
|
|
<?php if(isset($pdf)): ?>
|
|
</body>
|
|
<?php endif ; ?>
|