Skip to content

Commit

Permalink
email
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Jun 28, 2024
1 parent 7c8b196 commit 2e64e2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,7 @@ public function emailsend($inspid=null) {
if ($this->email->send()) {
$data['status'] = "success";
$data['msg'] = "Η αποστολή ήταν επιτυχής";
$this->itindata_model->upd_inspection($inspid, array("datesend_inspection" => date('Y-m-d')));
} else {
$data['msg'] = "Προέκυψε κάποιο πρόβλημα. Δοκιμάστε ξανά αργότερα";
$data['status'] = "warning";
Expand Down
3 changes: 3 additions & 0 deletions application/views/inspectionview.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@
<p class="inspfile"><a href="<?= base_url()?>assets/pdfs/<?= $inspection->filename_inspection ?>" target="_blank"><i class="fal fa-file-pdf"></i> <?= $this->lang->line('inspection_report'); ?> (<?= $this->lang->line('greeklang'); ?>)</a></p>
<?php } ?>
</div><div class="col-sm-6 pb-1 text-center text-sm-left">
<?php if (isset($inspection->datesend_inspection) && $inspection->datesend_inspection !=NULL) {
echo "<small>Η επιθεώρηση έχει σταλεί με email στις ".date("d-m-Y", strtotime($inspection->datesend_inspection))."</small>";
} ?>
<a class = "btn btn-primary emailsend" href="<?=base_url()?>inspection/emailsend/<?= $inspection->id_inspection?>">Αποστολή με email</a></div></div>
<div class="row">
<?php if ($inspection->en_filename_inspection != NULL) {?>
Expand Down

0 comments on commit 2e64e2d

Please sign in to comment.