Skip to content

Commit

Permalink
remove-checkpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Apr 26, 2024
1 parent a50d1c2 commit 90a099e
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions application/views/pdfreport.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,25 @@
<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
$pointscore = $inspscore[$cp['id_cp']];
if ($pointscore > 0) { ?>
<img src="<?php echo base_url(); ?>assets/images/check.png" width="18" height="18">
<?php } else if ($pointscore == 0) { ?>
<img src="<?php echo base_url(); ?>assets/images/minus.png" width="18" height="18">
<?php } else { ?>
<img src="<?php echo base_url(); ?>assets/images/times.png" width="18" height="18">
<?php } ?>
</td>
<td class="text-center">&nbsp;</td>
</tr>
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

if ($pointscore > 0) { ?>
<img src="<?php echo base_url(); ?>assets/images/check.png" width="18" height="18">
<?php } else if ($pointscore == 0) { ?>
<img src="<?php echo base_url(); ?>assets/images/minus.png" width="18" height="18">
<?php } else { ?>
<img src="<?php echo base_url(); ?>assets/images/times.png" width="18" height="18">
<?php } ?>
</td>
<td class="text-center">&nbsp;</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>
Expand All @@ -275,7 +284,6 @@
<?php }
$mcp = $cp['mainsectid'];
$scp = $cp['id_section'];
$z = $z + 1;
endforeach ?>
</table>
<?php if (isset($inspimg)) { ?>
Expand Down

0 comments on commit 90a099e

Please sign in to comment.