Skip to content

Commit

Permalink
Update pdfreport.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Jun 25, 2024
1 parent 4e406e6 commit 24fd190
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions application/views/pdfreport.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
} else {
$langprefix ="en_";
}

$ev = array("electric", "pluginpetrol", "plugindiesel");
if (!in_array($inspection->fueltyp_vhcl, $ev)) {
unset($checkpoints[0]);
}

?>
<!doctype html>
<html lang="en">
Expand Down Expand Up @@ -252,6 +258,7 @@
$pointscore = $inspscore[$cp['id_cp']];
if ($pointscore != 0) {
?>
<?php if ($cp['cptype'] == 'chs') { ?>
<tr style="padding:3px 0; page-break-inside:avoid;<?php if($z % 2 != 0){ echo "; background: #ccc;"; } ?>" class="pointrow">
<td style="width:60%; min-height:20px;"><?= sprintf("%02d",$z) ?> <?= $cp[$printtext_cp]; ?></td>
<td class="text-center" style="width:5%; padding:2px 0 0 0"><?php
Expand All @@ -266,6 +273,16 @@
</td>
<td class="text-center">&nbsp;</td>
</tr>
<?php } else { ?>
<tr style="padding:3px 0; page-break-inside:avoid;<?php if($z % 2 != 0){ echo "; background: #ccc;"; } ?>" class="pointrow">
<td style="width:60%; min-height:20px;"><?= sprintf("%02d",$z) ?> <?= $cp[$printtext_cp]; ?></td>
<td class="text-center" style="width:5%; padding:2px 0 0 0"><?php
echo $pointscore." %";
?>
</td>
<td class="text-center">&nbsp;</td>
</tr>
<?php } ?>
<?php
$z = $z + 1;
} ?>
Expand Down

0 comments on commit 24fd190

Please sign in to comment.