Skip to content

Commit

Permalink
Update inspectionview.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Jun 28, 2024
1 parent c95ce8d commit 611450b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions application/views/inspectionview.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<div class="col-sm-6 p-1 text-center text-sm-left">
<?php if ($inspection->filename_inspection != NULL) {?>
<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 } ?>
<?php } ?> <a class = "btn btn-primary emailsend" href="<?=base_url()?>inspection/emailsend/<?= $insp->id_inspection?>">>Αποστολή με email</a>
<?php if ($inspection->en_filename_inspection != NULL) {?>
<p class="inspfile"><a href="<?= base_url()?>assets/pdfs/<?= $inspection->en_filename_inspection ?>" target="_blank"><i class="fal fa-file-pdf"></i> <?= $this->lang->line('inspection_report'); ?> (<?= $this->lang->line('englishlang'); ?>)</a></p>
<?php } ?>
Expand Down Expand Up @@ -390,7 +390,16 @@


});


$('.emailsend').on('click', function (e) {
e.preventDefault();
href = $(this).attr('href');
return bootbox.confirm('Η έκθεση θα αποσταλεί με email στη διεύθυνση <?= $inspection->email_client ?>. Συμφωνείτε;', function(result) {
if (result) {
window.location = href
}
});
});

function checkifexists(fld, len){

Expand Down

0 comments on commit 611450b

Please sign in to comment.