?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Home/ |
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/Home/customerlist.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 Name</th><th>Office Phone</th> <th>Office Fax</th><th >Office Email</th> </tr> <?php $access='yes'; $id=1; if(count($viewinfo)>0) { $z=1; foreach ($viewinfo as $row) { if($z%2==0) { $alt="alt"; } else $alt="alt1"; ?> <?php if($cust_permis==2) { if(in_array($row['staffid'], $staffids)) { ?> <?php echo '<tr class="'.$alt.'">' ;?> <td> <?php echo $sno ?></td> <td id="myTd" style="color:#2756c1" onclick="viewthiscust('<?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> </tr> <?php } else { ?> <?php echo '<tr class="'.$alt.'">' ;?> <td> <?php echo $sno ?></td> <td id="myTd" style="color:#2756c1" 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> </tr> <?php } } elseif($cust_permis==1) { ?> <?php echo '<tr class="'.$alt.'">' ;?> <td> <?php echo $sno ?></td> <td id="myTd" style="color:#2756c1" onclick="viewthiscust('<?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> </tr> <?php } else { $access='no' ; } ?> </tr> <?php //echo $cust_permis.'<br/>'; //print_r($staffids); //echo $row['staffid'].'--'; $sno++; $z++; } $maxpage=$MaxPage; $currentpagenum=$row['currentPage']; ?> </table> <?php if($access!='no') { ?> <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 } else { echo "Sorry ! You have no permission for searching the customer...."; } } ?>