?
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/loadbsliplist.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <table width="100%" 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 Name</th> <th>Customer Name</th> <th>Type Of Cover</th> <th class="last">Use</th> </tr> <?php $maxpage=$pages; if(count($viewinfo)>0) { foreach ($viewinfo->result() as $row) { $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); echo '<tr><td>'.$id.'</td> <td>'.$row->quotation_ref.'</td> <td>'.$row->template_header.'</td> <td>'.$name.'</td> <td>'.$covertype.'</td>'; $brok_id=$row->id; // $cname=$row['cname']; // $cover=$row['cover']; // $cover_id=$row['cover_id']; // $template_header=$row['template_header']; //$quotation_date=$row['quotation_date']; // $quotation=$row['qref']; ?> <td> <img src="<?=base_url()?>/assets/images/use.png" class="clickimage" onclick="showbrokingdetails('<?=$brok_id?>')" alt="" width="20" height="20" /> </td> <?php $id++; } } else{ echo "<tr><td align='center'>No results found</td><td></td><td></td><td></td><td></td><td></td></tr>"; } ?> </table> <div> <ul id="pagination" class="paginate"> <li class="pagsel" onclick="searchbroslip('<?php echo $searchtxt; ?>','<?php echo $searchoption ?>','1')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="searchbroslip('<?php echo $searchtxt; ?>','<?php echo $searchoption; ?>','<?php echo $pagenum-1 ?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php $arr=$this->documentsmodel->getlist($pagenum,$maxpage); for($i=$arr[0]; $i<=$arr[1]; $i++) { if($pagenum==$i ) { ?> <li class="pagsel"> <?php echo $i ;?></li> <?php } else { ?> <li class="pag" onclick="searchbroslip('<?php echo $searchtxt; ?>','<?php echo $searchoption; ?>','<?php echo $i ;?>')"> <?php echo $i ;?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$maxpage){ ?> onclick="searchbroslip('<?php echo $searchtxt; ?>','<?php echo $searchoption; ?>','<?php echo $pagenum+1 ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="searchbroslip('<?php echo $searchtxt; ?>','<?php echo $searchoption; ?>','<?php echo $maxpage ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>