?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Documents/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Documents/viewbrokingslip.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <div class="select-bar"> <label> <img src="<?= base_url() ?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="loadbrokingslip(1)" alt="Add New" align = "center" width="25" height="25" /></label> </div> <table width="80%" align="center" class="sort" cellpadding="0" cellspacing="0"> <caption>Broking Slip</caption> <tr> <th>Sl.NO</th> <th>Quotation Ref No</th> <th>Broking Slip Date</th> <th>Customer Name</th> <th>Type of Cover</th> <th style="width:115px" class="last">Action</th> </tr> <?php if ($viewinfo->num_rows() > 0) { $z = 1; foreach ($viewinfo->result() as $row) { if ($z % 2 == 0) { $alt = "alt"; } else $alt = "alt1"; $type = $this->customermodel->getSingleFieldValue('customers', 'type', 'id', $row->customer_id); if ($type == 'Individual') { $name = $this->customermodel->getSingleFieldValue('customer_personal_ind', 'insured', 'customer_id', $row->customer_id); } else { $name = $this->customermodel->getSingleFieldValue('customer_corp_info', 'insured', 'customer_id', $row->customer_id); } $covertype = $this->customermodel->getSingleFieldValue('covers', 'cover', 'id', $row->cover_id); $b_date = $this->mastermodel->convdatformat($row->quotation_date); echo '<tr class="' . $alt . '"><td>' . $id . '</td><td class="clickimage" style=" color:#2756c1;" onclick="viewquotationbrokingslip(0,' . $row->id . ')">' . $row->quotation_ref . '</td><td>' . $b_date . '</td><td>' . $name . '</td><td>' . $covertype . '</td>'; ?> <td> <div id="console_fronticons_4"> <div class="fronticons"> <img src="<?= base_url() ?>/assets/images/upload.png" title="Upload" width="20" height="20" alt="Upload" align = "center" class="clickimage uploadform" onclick="showuploadform(<?= $row->id ?>,'broking_slip_files','broking_slip_id')" alt="" /></div> <div class="fronticons"> <?= anchor('documents/pdfquotationbrokingslip/pdfquotationbrokingslip/id/' . $row->id . '', '<img src="' . base_url() . '/assets/images/pdf.png" title="PDF" align = "center" width="20" height="20">', array('class' => 'delete', 'onclick' => "return confirm('Are you sure want to download')")) ?> </div> <div class="fronticons"> <img class="status" src="<?= base_url() ?>/assets/images/documentinfo.png" title="Status" width="20" height="20" alt="Status" align = "center" onclick="showbrokingslipstatus(<?= $row->id ?>)" alt="" /></div> <div class="fronticons"> <img src="<?= base_url() ?>/assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="editbrokingslip(2,<?= $row->id ?>)" alt="" /></div> <div class="fronticons"> <?= anchor('documents/delete/broking_slip/' . $row->id . '/21', '<img src="' . base_url() . '/assets/images/delete-icon.png" title="Delete" align = "center" width="20" height="20">', array('class' => 'delete', 'onclick' => "return confirm('Are you sure want to delete this record?')")) ?></div></div> </td> <?php $id++; $z++; } } ?> </table> <ul class="paginate"> <li class="pagsel"onclick="paginationdatasearch('1','<?= $searchoption ?>','<?= $searchtxt ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if ($pagenum > 1) { ?> onclick="paginationdatasearch('<?= $pagenum - 1 ?>','<?= $searchoption ?>','<?= $searchtxt ?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php //Pagination Numbers for ($i = $startpage; $i <= $endpage; $i++) { if ($pagenum == $i) { ?> <li class="pagsel" onclick="paginationdatasearch('<?= $i ?>','<?= $searchoption ?>','<?= $searchtxt ?>')"><?= $i ?></li> <?php } else { ?> <li class="pag" onclick="paginationdatasearch('<?= $i ?>','<?= $searchoption ?>','<?= $searchtxt ?>')"><?= $i ?></li> <?php } } ?> <li class="pagsel" <?php if ($pagenum < $pages) { ?> onclick="paginationdatasearch(<?= $pagenum + 1 ?>,'<?= $searchoption ?>','<?= $searchtxt ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="paginationdatasearch('<?= $pages ?>','<?= $searchoption ?>','<?= $searchtxt ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul>