- system/ vervangen door CodeIgniter 3.4.5 (pocketarc/codeigniter, PHP 8.2-8.5 compatibel) - config.php, mimes.php, user_agents.php en error-views bijgewerkt naar 3.4.5 - composer.json: php-constraint "^7.4 || ^8.0" zodat composer install op 8.3 werkt - PHP 8-fatals opgelost: count()/array-functies op FALSE/null, rekenen met lege strings, delen door nul, property zetten op FALSE, curly-brace string offsets, ongedefinieerde constanten, foute curl_setopt in Phantom_model::create_img - dynamic properties gedeclareerd in libraries, optionele parameters voor verplichte opgelost - vergelijkingen waar '' == 0 in PHP 8 anders uitvalt gecast naar (int) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
401 lines
18 KiB
PHP
401 lines
18 KiB
PHP
<div class="sopOnderdeelBlok">
|
|
<div class="sopTitelHolder">
|
|
<?php if($naam): ?>
|
|
<p class="sopTitel"><?php echo $naam .' kalenderjaar '. $data['versie'] ?></p>
|
|
<?php endif ?>
|
|
|
|
</div>
|
|
|
|
<div style='margin-top: 20px'>
|
|
<!-- <div class="col-xs-5 highcharts-background" style=" height: 200px; width: 300px;" id="chartBasis">
|
|
</div> -->
|
|
<div class="col-xs-5" >
|
|
<!-- hier alleen de tabel, anders past het niet -->
|
|
<p class="subTitel1" style="text-align:center;margin-bottom:10px">Basisondersteuning</p>
|
|
<table class="sopKaderMiddelTabel" style="width:99%;margin-top: 17px; ">
|
|
<thead>
|
|
<tr style="background-color: #7F036C !important; ">
|
|
<th style="width: 2%; color:#ffffff !important;"></th>
|
|
<th style="width: 66%;
|
|
padding-left: 3px; border-right:1px solid #ffffff;
|
|
color:#ffffff !important;
|
|
font-weight: bold"><!--Bestedingen basisondersteuning--></th>
|
|
<th style="width: 2%"></th>
|
|
<th style=" width: 30%; padding-right: 3px;
|
|
text-align: right;
|
|
color:#ffffff !important;
|
|
font-weight: bold ">Bedrag</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
for($i = 0; $i < ($data['subsoorten'] ? count($data['subsoorten']) : 0); $i++ ){
|
|
if($data['subsoorten'][$i]->categorie == "BASIS"):
|
|
if(($i == 0) || ($i != 0 && $data['subsoorten'][$i]->soort != $data['subsoorten'][$i-1]->soort)): ?>
|
|
<tr style=" background-color: #AF62A3 !important;">
|
|
<td></td>
|
|
<td style="color:#ffffff !important; padding-left:3px "><?php echo $data['subsoorten'][$i]->soort?></td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
<?php endif ?>
|
|
<tr style="border: 1px solid #ffffff; background-color:#d7d8d7 !important">
|
|
<td style=" font-weight: normal; "><?php echo $i+1 ?></td>
|
|
<td style=" font-weight: normal; padding-left: 3px; border-right:1px solid #ffffff;
|
|
overflow-y:hidden; overflow-x:hidden;
|
|
text-overflow:ellipsis;
|
|
white-space: nowrap"><?php echo $data['subsoorten'][$i]->subsoort?></td>
|
|
<td style=" font-weight: normal; text-align: right; padding-left: 3px;">€</td>
|
|
<td style=" font-weight: normal; padding-right: 3px; text-align: right;"><?php echo $data['subsoorten'][$i]->bedragNL?></td>
|
|
</tr>
|
|
<?php endif;} ?>
|
|
<tr style="border: 1px solid #ffffff;">
|
|
<td style=" background-color: #d7d8d7 !important; font-weight: bold; "></td>
|
|
<td style=" background-color: #d7d8d7 !important; font-weight: bold; padding-left: 3px; border-right:1px solid #ffffff;">Totaal</td>
|
|
<td style=" background-color: #d7d8d7 !important;font-weight: bold; text-align: right; padding-left: 3px;">€</td>
|
|
<td style=" background-color: #d7d8d7 !important;font-weight: bold; padding-right: 3px; text-align: right"><?php echo $data['somB']?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div> <!-- col xs 5 -->
|
|
|
|
<div class="col-xs-3">
|
|
<p class="subTitel1" style="text-align:center">Extra ondersteuning</p>
|
|
<?php if($data['somE'] != 0){ ?>
|
|
<!-- eerst de grafiek, daaronder de tabel -->
|
|
<div class="highcharts-background"
|
|
style="height: 200px; width: 160px;"
|
|
id="<?= $chartid ?>"
|
|
</div>
|
|
<!-- tabel -->
|
|
|
|
<table class="sopKaderMiddelTabel" style="width:100%; ">
|
|
<thead>
|
|
<tr style="background-color: #EB6102 !important; ">
|
|
<th style=" padding-left: 3px;
|
|
padding-right: 3px;
|
|
font-weight: bold;
|
|
color: #ffffff ! important;
|
|
border-right:1px solid #ffffff"><br><br><!--Besteding extra ondersteuning--></th>
|
|
<th style="color: #ffffff ! important; padding-left: 3px;padding-right: 3px"></th>
|
|
<th style="color: #ffffff ! important;
|
|
text-align: right;
|
|
padding-right: 3px;">Bedrag</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
for($i = 0; $i < ($data['subsoorten'] ? count($data['subsoorten']) : 0); $i++ ){
|
|
if($data['subsoorten'][$i]->categorie == "EXTRA"):?>
|
|
<tr style="font-weight:normal; background-color:#d7d8d7 !important">
|
|
<td style="padding-right: 3px; padding-left: 3px; border-right:1px solid #ffffff"><?php echo $data['subsoorten'][$i]->subsoort?></td>
|
|
<td style="padding-right: 3px; text-align: right; padding-left: 3px;">€</td>
|
|
<td style="padding-right: 3px; text-align: right;"><?php echo $data['subsoorten'][$i]->bedragNL?></td>
|
|
</tr>
|
|
<?php endif;} ?>
|
|
<tr style=" background-color:#d7d8d7 !important">
|
|
<td style="font-weight:bold !important;padding-right: 3px; padding-left: 3px; border-right:1px solid #ffffff">Totaal</td>
|
|
<td style="font-weight:bold !important;padding-right: 3px; text-align: right; padding-left: 3px;">€</td>
|
|
<td style="font-weight:bold !important;padding-right: 3px; text-align: right"><?php echo $data['somE']?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<?php } ?>
|
|
<?php if($data['somE'] == 0){ ?>
|
|
<p class="subTitel1" style="text-align:center; font-size: 8px" >Geen extra ondersteuning</p>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-4">
|
|
<p class="subTitel1" style="text-align:center">Uitgavetypen</p>
|
|
|
|
<!-- idem: eerst grafiek dan tabel -->
|
|
<div class="highcharts-background"
|
|
style="height: 200px; width: 200px;"
|
|
id="<?= $chartid . 'A' ?>" >
|
|
</div>
|
|
<!-- tabel --->
|
|
|
|
<table class="sopKaderMiddelTabel" style="width:100%;">
|
|
<thead>
|
|
<tr style="background-color: #E6BD03 !important; font-weight: bold ">
|
|
<th style="color:#ffffff !important; width: 50%; padding-left: 3px; border-right:1px solid #ffffff;"><!--Uitgavetype:--></th>
|
|
<th style="color:#ffffff !important; width: 5%"></th>
|
|
<th style="color:#ffffff !important;
|
|
width: 45%;
|
|
padding-right: 3px;
|
|
text-align: right">Bedrag</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach($data['uitgaventypen'] as $index => $type){?>
|
|
<tr style=" background-color:#d7d8d7 !important">
|
|
<td style=" padding-left: 3px;border-right:1px solid #ffffff;"><?php echo $type->uitgavetype ?></td>
|
|
<td style=" text-align: right; padding-left: 3px;">€</td>
|
|
<td style=" padding-right: 3px; text-align: right"><?php echo $type->bedragNL?></td>
|
|
</tr>
|
|
<?php }?>
|
|
</tbody>
|
|
<tr style=" background-color:#d7d8d7 !important">
|
|
<td style=" font-weight:bold !important;padding-left: 3px;border-right:1px solid lightgrey;">Totaal</td>
|
|
<td style=" font-weight:bold !important;text-align: right; padding-left: 3px;">€</td>
|
|
<td style=" font-weight:bold !important;padding-right: 3px; text-align: right;"><?php echo $data['typesom']?></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<script>
|
|
<?php if ($data['subsoorten']){ ?>
|
|
$(function(){
|
|
Highcharts.setOptions({
|
|
lang: {
|
|
numericSymbols: null,
|
|
thousandsSep: '.',
|
|
decimalPoint: ','
|
|
}
|
|
});
|
|
|
|
// fFillGraph6=function(){
|
|
// var xas = [];
|
|
// var yas = [];
|
|
// var nummer = 1;
|
|
// var totaal = 0;
|
|
|
|
// <?php foreach($data['subsoorten'] as $index => $subsoort){
|
|
// if($subsoort->categorie != 'BASIS') continue ?>
|
|
// xas.push(nummer);
|
|
// yas.push(<?=$subsoort->euros?>);
|
|
// nummer++;
|
|
// totaal = totaal+ <?=$subsoort->euros?>;
|
|
// <?php };?>
|
|
// // xas.push('g');
|
|
// // yas.push(totaal);
|
|
|
|
|
|
// // Highcharts.chart('chartBasis', {
|
|
// // chart: {
|
|
// // backgroundColor: '#ffffff',
|
|
// // type: 'column',
|
|
// // animation: false
|
|
// // },
|
|
// // title: {
|
|
// // text: ''
|
|
// // },
|
|
// // credits: {
|
|
// // enabled: false
|
|
// // },
|
|
// // xAxis: {
|
|
// // categories: xas,
|
|
// // labels:{
|
|
// // style:{
|
|
// // fontSize: '6px'
|
|
// // }
|
|
// // }
|
|
// // },
|
|
// // yAxis: {
|
|
// // min: 0,
|
|
// // title: false,
|
|
// // labels:{
|
|
// // style:{
|
|
// // fontSize: '6px'
|
|
// // }
|
|
// // }
|
|
// // },
|
|
// // plotOptions: {
|
|
// // column: {
|
|
// // pointPadding: 0.05,
|
|
// // borderWidth: 0,
|
|
// // color: '#7F036C'
|
|
// // }
|
|
// // },
|
|
// // series: [{
|
|
// // showInLegend: false,
|
|
// // animation: false,
|
|
// // name: 'Interventies',
|
|
// // data: yas
|
|
// // }
|
|
// // ]
|
|
// // });
|
|
// }()
|
|
});
|
|
<?php } ?>
|
|
<?php if ($data['somE']> 0){ ?>
|
|
$(function(){
|
|
Highcharts.setOptions({
|
|
lang: {
|
|
numericSymbols: null,
|
|
thousandsSep: '.',
|
|
decimalPoint: ','
|
|
}
|
|
});
|
|
|
|
fFillGraph7=function(){
|
|
var xas = [];
|
|
var yas = [];
|
|
|
|
<?php foreach($data['subsoorten'] as $index => $subsoort){
|
|
if($subsoort->categorie != 'EXTRA') continue ?>
|
|
xas.push('<?=$subsoort->subsoort?>');
|
|
yas.push(<?=$subsoort->euros?>);
|
|
<?php }; ?>
|
|
|
|
Highcharts.chart('<?= $chartid ?>', {
|
|
chart: {
|
|
type: 'column',
|
|
backgroundColor: '#ffffff',
|
|
animation: false,
|
|
options3d: {
|
|
enabled: true,
|
|
alpha: 20,
|
|
beta: 20,
|
|
viewDistance: 40,
|
|
depth: 75,
|
|
}
|
|
},
|
|
title: {
|
|
text: ''
|
|
},
|
|
credits: {
|
|
enabled: false
|
|
},
|
|
xAxis: {
|
|
categories: xas,
|
|
labels:{
|
|
skew3d: true,
|
|
style:{
|
|
fontSize: '8px'
|
|
|
|
}
|
|
}
|
|
},
|
|
yAxis: {
|
|
min: 0,
|
|
title: false,
|
|
labels:{
|
|
skew3d: true,
|
|
style:{
|
|
fontSize: '8px'
|
|
|
|
}
|
|
}
|
|
|
|
},
|
|
plotOptions: {
|
|
column: {
|
|
pointPadding: 0.05,
|
|
borderWidth: 0,
|
|
color: 'EB6102'
|
|
}
|
|
},
|
|
series: [{
|
|
showInLegend: false,
|
|
animation: false,
|
|
name: 'Interventies',
|
|
data: yas
|
|
}
|
|
]
|
|
});
|
|
}()
|
|
});
|
|
<?php } ?>
|
|
|
|
<?php if ($data['uitgaventypen']){ ?>
|
|
$(function(){
|
|
Highcharts.setOptions({
|
|
lang: {
|
|
thousandsSep: '.'
|
|
}
|
|
});
|
|
|
|
fFillGraph8=function(){
|
|
|
|
var taartpunten = [];
|
|
var punt;
|
|
var kleur;
|
|
var teller = 1;
|
|
var naam;
|
|
var totaal = 0;
|
|
|
|
var kleuren = ['#01A8CB', '#1F7368', '#3b4c87']
|
|
<?php foreach($data['uitgaventypen'] as $index => $type){?>
|
|
// kleur = 'url(#highcharts-default-pattern-'+teller+')';
|
|
kleur = kleuren[teller];
|
|
punt = {
|
|
name : '<?=$type->uitgavetype?>',
|
|
y : <?=$type->euros?>,
|
|
color: kleur
|
|
};
|
|
|
|
taartpunten.push(punt);
|
|
teller = teller + 1;
|
|
totaal = totaal + <?=$type->euros?>;
|
|
<?php }; ?>
|
|
|
|
<?php foreach($data['uitgaventypen'] as $index => $type){?>
|
|
naam = '<?=$type->uitgavetype?>'+(totaal/ <?=$type->euros?> * 100)+ '%';
|
|
<?php }; ?>
|
|
|
|
|
|
Highcharts.chart('<?= $chartid. 'A' ?>', {
|
|
chart: {
|
|
plotBackgroundColor: null,
|
|
plotBorderWidth: null,
|
|
plotShadow: false,
|
|
animation: false,
|
|
type: 'pie',
|
|
backgroundColor: '#ffffff',
|
|
options3d: {
|
|
enabled: true,
|
|
alpha: 45,
|
|
},
|
|
},
|
|
title: {
|
|
text: ''
|
|
},
|
|
credits: {
|
|
enabled: false
|
|
},
|
|
legend:{
|
|
enable: true,
|
|
margin: 0,
|
|
itemStyle: {
|
|
fontWeight: 'normal',
|
|
fontSize: 8,
|
|
text: naam
|
|
}
|
|
},
|
|
|
|
|
|
plotOptions: {
|
|
pie: {
|
|
allowPointSelect: false,
|
|
depth: 25,
|
|
dataLabels: {
|
|
enabled: false,
|
|
showInLegend: true
|
|
}
|
|
}
|
|
},
|
|
series: [{
|
|
name: 'bestedingen',
|
|
animation: false,
|
|
borderColor: '#ffffff',
|
|
colorByPoint: false,
|
|
data: taartpunten,
|
|
dataLabels: {
|
|
enabled: false
|
|
},
|
|
showInLegend: true
|
|
}]
|
|
});
|
|
}()
|
|
});
|
|
<?php } ?>
|
|
|
|
</script>
|
|
</div> <!-- sopKaderMiddelGrafiek -->
|
|
|
|
|
|
|