?
Current Path : /home1/savoy/public_html/savoyglobal.net/sibsmoved/system/application/views/HR/ |
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/public_html/savoyglobal.net/sibsmoved/system/application/views/HR/loadstafflist.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <table class="sort" cellpadding="0" cellspacing="0"> <caption>Employees</caption> <thead><tr> <th>Sl.NO</th> <th>Employee Name</th> <th>Employee No</th> <th>Designation</th> <th >Department</th> <th class="last">Use</th> </tr> <?php $maxpage = $Maxpage; $pagenum = $currentpage; if (count($viewinfo) > 0) { foreach ($viewinfo as $row) { if (!isset($row['designation'])) $row['designation'] = ""; if (!isset($row['department'])) $row['department'] = ""; echo '<tr><td>' . $id . '</td> <td>' . $row['name'] . '</td> <td>' . $row['employeeid'] . '</td> <td>' . $row['designation'] . '</td> <td>' . $row['department'] . '</td>'; $staff_id = $row['id']; ?> <td> <img src="<?= base_url() ?>/assets/images/use.png" class="clickimage" onclick="usestaff('<?= $row['name'] ?>','<?= $staff_id ?>','<?= $row['employeeid']; ?>','<?= $row['designation'] ?>','<?= $row['department'] ?>')" 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="searchStaff('<?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="searchStaff('<?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="searchStaff('<?php echo $custname; ?>','<?php echo $searchBy; ?>','<?php echo $i; ?>')"> <?php echo $i; ?></li> <?php } } ?> <li class="pagsel" <?php if ($pagenum < $maxpage) { ?> onclick="searchStaff('<?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="searchStaff('<?php echo $custname ?>','<?php echo $searchBy ?>','<?php echo $maxpage ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>