?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/application/views/Administration/ |
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/sgms/application/views/Administration/employee_info_salary.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $salary_details = $this->administrationmodel->get_employee_salary_info($viewinfo->emp_non_id); $allowance_list = $this->mastermodel->getdatas('allowance','allowance_name'); $deduction_list = $this->mastermodel->getdatas('deduction','deduction_name'); if($viewinfo->emp_non_no[0]==',') { $viewinfo->emp_non_no=substr($viewinfo->emp_non_no, 1); } $emp_non_no = str_replace(',',', ', $viewinfo->emp_non_no); ?> <input type="hidden" name="employee_id" id="employee_id" value="<?=$viewinfo->emp_non_id;?>"/> <li> <label for="data">Employee No</label> <div class="record_entry"> <?php echo $emp_non_no; ?> </div> </li> <li> <label for="data">Joining Date</label> <div class="record_entry"> <?php echo $this->mastermodel->convertdatenormalformat($viewinfo->emp_non_date_joining); ?> </div> </li> <li> <label for="data">Trade</label> <div class="record_entry"> <?php echo $viewinfo->trade_name; ?> </div> <li> <table class="sort"> <caption>Employee Previous Salary Details</caption> <tr> <th align="center">WEF Date</th> <th align="center">Basic Salary</th> <th align="center" colspan="2">Allowances</th> <th align="center" colspan="2">Deductions</th> </tr> <?php foreach($salary_details as $salary) { ?> <tr> <td><?=$salary['salary_increment_date'];?></td> <td><?=$salary['salary_increment'];?></td> <?php $allowance = explode('~', $salary['allowance']); $allowance_name= ''; $allowance_amount= ''; for($i=0;$i<sizeof($allowance);$i++) { ?> <?php if($i%2==0) $allowance_name .= $allowance[$i]."<br/>";?> <?php if($i%2==1) $allowance_amount .= $allowance[$i]."<br/>";?> <?php } ?> <td><?=$allowance_name;?></td><td><?=$allowance_amount;?></td> <?php $deduction= explode('~', $salary['deduction']); $deduction_name= ''; $deduction_amount= ''; ?> <?php for($i=0;$i<sizeof($deduction);$i++) { ?> <?php if($i%2==0) $deduction_name .= $deduction[$i]."<br/>";?> <?php if($i%2==1) $deduction_amount .= $deduction[$i]."<br/>";?> <?php } ?> <td><?=$deduction_name;?></td><td><?=$deduction_amount;?></td> </tr> <?php } ?> </table> </li> <li> <table class="sort"> <caption>Revised Salary</caption> <tr> <td> Baisc Salary </td> <td> <input type="text" name="salary_increment" id="salary_increment" class="required" /> </td> </tr> </table> </li> <li> <table class="sort"> <caption>Allowance</caption> <tr> <th align="center">Select</th> <th align="center">Allowance Type</th> <th align="center">Amount</th> </tr> <?php $i=1; foreach($allowance_list as $allowance) { ?> <tr> <td><input style="width:15px;" type="checkbox" name="select_allowance_<?=$i;?>" /></td> <td> <input type="hidden" name="allowance_id_<?=$i;?>" value="<?=$allowance['allowance_id'];?>"/> <?=$allowance['allowance_name'];?> </td> <td> <input type="text" name="allowance_amount_<?=$i;?>" id="allowance_amount_<?=$i;?>" /> </td> </tr> <?php $i++; } ?> </table> </li> <li> <table class="sort"> <caption>Deduction</caption> <tr> <th align="center">Select</th> <th align="center">Deduction Type</th> <th align="center">Amount</th> </tr> <?php $i=1; foreach($deduction_list as $deduction) { ?> <tr> <td><input style="width:15px;" type="checkbox" name="select_deduction_<?=$i;?>" /></td> <td> <input type="hidden" name="deduction_id_<?=$i;?>" value="<?=$deduction['deduction_id'];?>"/> <?=$deduction['deduction_name'];?> </td> <td> <input type="text" name="deduction_amount_<?=$i;?>" id="deduction_amount_<?=$i;?>" /> </td> </tr> <?php $i++; } ?> </table> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks' ); echo form_textarea($data).form_error($data); ?> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li>