?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Customer/ |
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/Customer/loadcustomerlist.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> $('.tdlink').mouseover(function() { $(this).css({'color':'#8542c1','cursor':'pointer'}); }); $('.tdlink').mouseleave(function() { $(this).css({'color':'#2756c1','cursor':'pointer'}); }); </script> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Customer</caption> <thead><tr> <th>Sl.NO</th><th>Customer ID</th><th>Customer Name</th><th>Office Phone</th> <th>Office Fax</th><th >Office Email</th><th class="last">Action</th> </tr> <?php $id=1; if(count($viewinfo)>0) { $z=1; foreach ($viewinfo as $row) { if($z%2==0) { $alt="alt"; } else $alt="alt1"; ?> <tr class="<?=$alt?>"> <td> <?php echo $sno ?> </td> <td><?php echo $row['code']?></td> <td id="myTd" style="color:#2756c1" onclick="viewthiscust(0,'<?php echo $row['id'] ?>')" class="tdlink"> <?php echo $row['insured'] ?></td> <td><?php echo $row['phone_office']?></td> <td><?php echo $row['fax']?></td> <td><?php echo $row['email']?></td> <td> <div id="console_fronticons"> <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']?>','customer_documents','customer_id')" alt="" /> </div> <div class="fronticons"> <img src="<?= base_url()?>/assets/images/edit-icon.gif" title="Edit" onclick="Editcust(2,<?= $row['id']?>)" alt="" width="20" height="20" /> </div> <div class="fronticons"> <img src="<?= base_url()?>/assets/images/delete-icon.png" title="Delete" onclick="Deletecust(3,<?= $row['id']?>)" alt="" width="20" height="20" /> </div></div> </td> </tr> <?php $sno++; $z++; } $maxpage=$MaxPage; $currentpagenum=$row['currentPage']; ?> </table> <div> <ul > <?php $arr= $this->customermodel->getmaxminlist($currentpagenum,$maxpage,4); $myarray=$arr['listnos']; ?> <li class="pagsel" onclick="searchCust1('<?php echo $custname ?>','<?php echo $searchBy ?>','1')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if($currentpagenum>1){ ?> onclick="searchCust1('<?php echo $custname ?>','<?php echo $searchBy ?>','<?php echo $currentpagenum-1 ?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php for($i=$myarray[0]; $i<=$myarray[1]; $i++) { if($currentpagenum==$i ) { ?> <li class="pagsel"> <?php echo $i ?></li> <?php } else { ?> <li class="pag" onclick="searchCust1('<?php echo $custname ?>','<?php echo $searchBy ?>','<?php echo $i ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if($currentpagenum<$maxpage){ ?> onclick="searchCust1('<?php echo $custname ?>','<?php echo $searchBy ?>','<?php echo $currentpagenum+1 ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="searchCust1('<?php echo $custname ?>','<?php echo $searchBy ?>','<?php echo $maxpage ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div> <?php } ?>