?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/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/sgms/application/views/HR/add_employee_salary.php |
<script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestemployee('employee'); }); </script> <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('commonfunctions'); $this->load->view('hrfunctions'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_employee_salary','view_employee_salary','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Add Salary Settings</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/insert_employee_salary/view_employee_salary/1',$attributes); $allowdeduc = $this->mastermodel->getdatas('allowdeduc','allowdeduc_id'); $employee_salary_allowdeduc = $this->mastermodel->getdatas('employee_salary_allowdeduc','employee_salary_id'); $curency = $this->mastermodel->getdatas('currency','currency_id'); ?> <ul> <li> <label for="data">Employee Name</label> <input type="text" name="employee" id="employee" class="required" /> <input type="hidden" name="employee_id" id="employee_id" class="required" /> </li> <li> <label for="data">W.F.E Date</label> <?php $data = array( 'name' => 'wef_date', 'id' => 'wef_date', 'class' => 'calfocus required' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Basic Salary</label> <input type="text" name="basic_salary" id="basic_salary" class="required auto" onblur="changebasicsalary(this.value)"/> </li> <br/><br/> <caption>Allowance/Deduction Details</caption><br/><br/> <table class="sort"> <tr> <th align="center">Title</th> <th align="center">Mode</th> <th align="center">Amount/Percentage</th> <th align="center">Sub Total</th> <th align="center">Type</th> </tr> <?php $i=1; $dept=$this->mastermodel->get_data('allowdeduc','1','allowdeduc_type'); foreach($dept as $dep) { if($dep['allowdeduc_mode']==1) $mode="Direct Amount"; else $mode="Percentage"; ?> <tr> <td><?=$dep['allowdeduc_name'];?><input type="hidden" value ="<?=$dep['allowdeduc_id'];?>" name="allowdeduc_id_<?=$i;?>"/> </td> <td><?=$mode?></td> <td><input style="width:75px;" class="auto" type="text" name="amount_<?=$i;?>" id="amount_<?=$i;?>" onblur="calculteallowancetotal(this.value,<?=$dep['allowdeduc_mode']?>,<?=$i?>)"/> <?php if($dep['allowdeduc_mode']==0) { ?> <div style="margin:10px auto;">%</div> <?php } ?> </td> <td><input type="text" class="auto" name="alltotal_<?=$i?>" id="alltotal_<?=$i?>" value="" readonly /></td> <td>Allowance</td> </tr> <?php $i++; } ?> <input type="hidden" name="allowcount" id="allowcount" value="<?=$i?>" /> <?php $dept=$this->mastermodel->get_data('allowdeduc','0','allowdeduc_type'); foreach($dept as $dep) { if($dep['allowdeduc_mode']==1) $mode="Direct Amount"; else $mode="Percentage"; ?> <tr> <td><?=$dep['allowdeduc_name'];?><input type="hidden" value ="<?= $dep['allowdeduc_id'];?>" name="allowdeduc_id_<?=$i;?>"/></td> <td><?=$mode?></td> <td><input type="text" class="auto" onblur="calcultedeductiontotal(this.value,<?=$dep['allowdeduc_mode']?>,<?=$i?>)" name="amount_<?=$i?>" id="amount_<?=$i?>" style="width:75px;"/> <?php if($dep['allowdeduc_mode']==0) { ?> <div style="margin:10px auto;">%</div> <?php } ?> </td> <td><input type="text" class="auto" name="dedtotal_<?=$i?>" id="dedtotal_<?=$i?>" value="" readonly /></td> <td>Deduction</td> </tr> <?php $i++; } ?> <input type="hidden" name="dedcount" id="dedcount" value="<?=$i?>" /> </table> <br/><br/> <caption>Salary Details</caption><br/><br/> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th>Allowance</th> <th>Deduction</th> </tr> <tr> <td><input type="text" class="auto" readonly style="width:80%" name="allowance" id="allowance" value="0"></td> <td><input type="text" class="auto" style="width:80%" readonly name="deduction" id="deduction" value="0"></td> </tr> <tr> <th>Gross Salary</th> <th>Net Salary</th> </tr> <tr> <td><input type="text" class="auto" readonly style="width:80%" name="grosssalary" id="grosssalary" value="0"></td> <td><input type="text" class="auto" style="width:80%" readonly name="netsalary" id="netsalary" value="0"></td> </tr> </table> <br/><br/> <li> <label for="data">Payment Method</label> <select name="payment_method" id="payment_method" class="required"> <option value="Cheque">Cheque</option> <option value="Bank Transfer">Bank Transfer</option> </select> </li> <br/><br/> <caption>Insurance Details</caption><br/><br/> <table class="sort" cellpadding="0" cellspacing="0" width="200px;"> <tr> <th width="20%">Type of Insurance</th> <th width="20%">Insurance Company</th> <th width="20%">Policy No</th> <th width="20%">Plan Name</th> <th width="20%">Sum Insured</th> <th width="20%"> <input type="button" style="width:150px;" id="button2" value="Add More" class="addRow" title="Add Row"/> </th> </tr> <tr> <td><input type="text" style="width:70px;" name="type"></td> <td><input type="text" style="width:70px;" name="company"></td> <td><input type="text" style="width:70px;" name="policy"></td> <td><input type="text" style="width:70px;" name="plan"></td> <td><input type="text" style="width:70px;" class="number" name="sum"></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> <br/><br/> <caption>Annual Ticket Settings</caption> <li> <label>From:</label><input type="text" name="from_ticket" id="from_ticket"><label> To:</label><input type="text" name="to_ticket" id="to_ticket"><label> Return Ticket</label><?php echo form_checkbox('return_ticket', '1', TRUE);?> </li> <li> <label for="data">No.of Tickets</label> <input type="text" style="width:70px;" name="no_tickets" id="no_tickets"> </li> <li> <input type="hidden" name="employee_salary_id" id="employee_salary_id" /> <input type="hidden" name="tab_name" value="employee_salary"/> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="checkdatavalidity($('input#employee_id').val(),'employee','No existing employee selected');addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>