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 30, 2024
1 parent 32bc2a0 commit 300881e
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions application/views/pdfreport.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,10 @@
<?php $pointscore = $inspscore[$cp['id_cp']];
if ($pointscore != 0) {
?>
<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
<?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:58%; min-height:20px;"><?= sprintf("%02d",$z) ?> <?= $cp[$printtext_cp]; ?></td>
<td class="text-center" style="width:7%; padding:2px 0 0 0"><?php

if ($pointscore > 0) { ?>
<img src="<?php echo base_url(); ?>assets/images/check.png" width="18" height="18">
Expand All @@ -280,20 +279,30 @@
</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:58%; min-height:20px;"><?= sprintf("%02d",$z) ?> <?= $cp[$printtext_cp]; ?></td>
<td class="text-center" style="width:7%; padding:2px 0 0 0"><?php
echo $pointscore." %";
?>
</td>
<td class="text-center">&nbsp;</td>
</tr>
<?php } ?>
<?php

?>
<?php if (isset($inspremark[$cp['id_cp']])){ ?>
<tr style="padding:3px 0; page-break-inside:avoid;<?php if($z % 2 != 0){ echo "; background: #ccc;"; } ?>" class="pointrow">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>
<u><?= $this->lang->line('comment'); ?></u><br/>
<?php echo $inspremark[$cp['id_cp']]; ?>
</td></tr>
<?php }
$z = $z + 1;
}
?>
<?php if (isset($inspremark[$cp['id_cp']])){ ?>
<tr style="padding:3px 0; page-break-inside:avoid;<?php if($z % 2 != 0){ echo "; background: #ccc;"; } ?>" class="pointrow">
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>
<u><?= $this->lang->line('comment'); ?></u><br/>
<?php echo $inspremark[$cp['id_cp']]; ?>
</td></tr>
<?php }
$z = $z + 1;
}
$mcp = $cp['mainsectid'];
$scp = $cp['id_section'];
endforeach ?>
Expand Down

0 comments on commit 300881e

Please sign in to comment.