?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/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/drafthr/system/application/views/Documents/loadcustomerlist.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <table width="100%" align="center" class="sort" cellpadding="0" cellspacing="0"> <tr> <th>Sl.NO</th> <th>Code</th> <th>Name</th> <th>Office Phone</th> <th >Office Email</th> <th class="last">Use</th> </tr> <?php if(count($viewinfo)>0) { foreach ($viewinfo as $row) { echo '<tr><td>'.$id.'</td> <td>'.$row['code'].'</td> <td>'.$row['insured'].'</td> <td>'.$row['phone_office'].'</td> <td>'.$row['email'].'</td>'; $cust_id=$row['id']; if($row['type']!='Individual') $business=$row['business']; else $business='NIL'; ?> <td> <img src="<?=base_url()?>/assets/images/use.png" class="clickimage" onclick="usecust('<?=$row['code']?>','<?=$row['insured']?>','<?=$row['phone_office']?>','<?=$row['email']?>','<?=$business?>','<?=$cust_id?>')" alt="" width="20" height="20" /> </td> <?php $id++; $maxpage=$MaxPage; $pagenum=$row['currentPage']; } ?> </table> <div> <ul id="pagination" class="paginate"> <li class="pagsel" onclick="searchCust('<?php echo $custname ?>','<?php echo $searchBy ?>','1')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($pagenum>1){ ?> onclick="searchCust('<?php echo $custname ?>','<?php echo $searchBy ?>','<?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="searchCust('<?php echo $custname ;?>','<?php echo $searchBy; ?>','<?php echo $i ;?>')"> <?php echo $i ;?></li> <?php } } ?> <li class="pagsel" <?php if($pagenum<$maxpage){ ?> onclick="searchCust('<?php echo $custname ?>','<?php echo $searchBy ?>','<?php echo $pagenum+1 ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="searchCust('<?php echo $custname ?>','<?php echo $searchBy ?>','<?php echo $maxpage ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div> <?php } else{ echo "<table><tr><td align='center'>No results found</td><td></td><td></td><td></td><td></td><td></td></tr></table>"; } ?>