?
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/view_settlement.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <div class="select-bar"> <label> <img src="<?= base_url() ?>/assets/images/add-icon.png" title="Add New" class="clickimage" onclick="add_settlement(1)" alt="Add New" align = "top" width="25" height="25" /></label> <?php if($field=='emp_settlement.relieving_date' || $field=='emp_settlement.pay_date'){ $text=$this->mastermodel->convdatformat($text); } ?> <label> Search For <input type="text" value="<?=$text?>" name="search" id="search" style="background-image: none;"> in <select id ="selectsearch" name="selectsearch"> <option value="staffpersonaldetails.id" >Select</option> <option value="staffpersonaldetails.name" <?php if($field=='staffpersonaldetails.name') echo "selected"; ?> >Employee Name</option> <option value="staffpersonaldetails.employeeid" <?php if($field=='staffpersonaldetails.employeeid') echo "selected"; ?> >Employee ID</option> <option value="emp_settlement.relieving_date" <?php if($field=='emp_settlement.relieving_date') echo "selected"; ?> >Relieving Date</option> <option value="emp_settlement.pay_date" <?php if($field=='emp_settlement.pay_date') echo "selected"; ?> >Pay Date</option> </select> </label> <label for="submit"> <button type="submit" class="clickimage" id="submit" onclick="staffsettlement('<?=$unpost?>','<?=$currpage?>',document.getElementById('selectsearch').value,document.getElementById('search').value);">Search</button></label> </div> <table class="sort"> <tr> <th><input type="radio" id="settlemnt_posted" name="settlement" <?php if ($unpost == "0") echo 'checked'; ?> value="0" onclick="staffsettlement('0','<?=$currpage?>','emp_settlement.id','')"/>Posted</th> <th><input type="radio" id="settlemnt_unposted" name="settlement" <?php if ($unpost == "1") echo 'checked'; ?> value="1" onclick="staffsettlement('1','<?=$currpage?>','emp_settlement.id','')"/>Un-Posted</th> </tr> </table> <fieldset> <table class="sort"> <caption> Settlement Details</caption> <tr> <th width="5%">Sl No.</th> <th width="10%">Employee No</th> <th width="10%">Name</th> <th width="10%">Paid On</th> <th width="10%">Relieving On</th> <th width="10%">Action</th> </tr> <?php $i = (($currpage - 1) * 10); foreach ($viewinfo as $row) { $i = $i + 1; $relieving_date = $this->mastermodel->convdatformat($row['relieving_date']); $pay_date = $this->mastermodel->convdatformat($row['pay_date']); ?> <tr> <td><?= $i ?></td> <td><a href="#" onclick="single_settlement(0,<?= $row['id'] ?>,<?php echo $currpage ?>,'<?= $field ?>','<?= $text ?>');"><?= $row['employeeid'] ?><a/></td> <td><?= $row['name'] ?></td> <td><?= $pay_date ?></td> <td><?= $relieving_date ?></td> <td> <?php if($row['unpost']==1){ ?> <div class="fronticons"> <img src="<?= base_url() ?>/assets/images/cash_sal.png" id="editclass" title="Post" width="20" height="20" alt="Edit" align = "center" onclick="post_settlement(<?= $row['id'] ?>,<?= $unpost ?>,<?php echo $currpage ?>,'<?= $field ?>','<?= $text ?>');" class="clickimage" /> </div> <div class="fronticons"> <img src="<?= base_url() ?>/assets/images/edit-icon.gif" id="editclass" title="Edit" width="20" height="20" alt="Edit" align = "center" onclick="edit_settlement(2,<?= $row['id'] ?>,<?php echo $currpage ?>,'<?= $field ?>','<?= $text ?>');" class="clickimage" /> </div> <div class="fronticons"> <?= anchor('hr/delete/emp_settlement/' . $row['id'] . '/117', '<img src="' . base_url() . '/assets/images/delete-icon.png" title="Delete" width="20" height="20" align = "center" >', array('class' => 'delete', 'onclick' => "return confirm('Are you sure want to delete this record?')")) ?> </div> <?php }else{ ?> <div class="fronticons"> <img src="<?= base_url() ?>/assets/images/saldet.png" id="editclass" title="View" width="20" height="20" alt="View" align = "center" onclick="viewsingle_sal_settlement(<?= $row['id'] ?>,<?php echo $currpage ?>,'<?= $field ?>','<?= $text ?>');" class="clickimage slslip" /> </div> <?php } ?> </td> </tr> <?php } ?> </table> <div style="display:none"> <div id="staffsaldetdiv"> </div> </div> </fieldset> <div style="width:75%; height:30px; float:right;"> <ul> <li class="pagsel" onclick="staffsettlement('<?=$unpost?>','1','<?= $field ?>','<?= $text ?>')"> <img src="<?php echo base_url() ?>/assets/images/first.gif"/> </li> <li class="pagsel" <?php if ($currpage > 1) { ?> onclick="staffsettlement('<?=$unpost?>','<?php echo $currpage - 1 ?>','<?= $field ?>','<?= $text ?>')" <?php } ?> > <img src="<?php echo base_url() ?>/assets/images/prev.gif"/> </li> <?php $totpage = ceil($totrecord / 10); $arr = $this->settingsmodel->getmaxminlist($currpage, $totpage, 4); $myarray = $arr['listnos']; for ($i = $myarray[0]; $i <= $myarray[1]; $i++) { if ($currpage == $i) { ?> <li class="pagsel"> <?php echo $i ?></li> <?php } else { ?> <li class="pag" onclick="staffsettlement('<?=$unpost?>','<?php echo $i ?>','<?= $field ?>','<?= $text ?>')"> <?php echo $i ?></li> <?php } } ?> <li class="pagsel" <?php if ($currpage < $totpage) { ?> onclick="staffsettlement('<?=$unpost?>','<?php echo $currpage + 1 ?>','<?= $field ?>','<?= $text ?>')"<?php } ?>> <img style="vertical-align:top" src="<?php echo base_url() ?>/assets/images/next.gif"/> </li> <li class="pagsel" onclick="staffsettlement('<?=$unpost?>','<?php echo $totpage ?>','<?= $field ?>','<?= $text ?>')"><img src="<?php echo base_url() ?>/assets/images/last.gif"/> </li> </ul> </div>