?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/draft/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/draft/application/views/HR/add_leave_allocation.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'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_leave_allocation','view_leave_allocation','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Creating new Leave Allocation</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/insert_leave_allocation/view_leave_allocation/1',$attributes); $leave_type=$this->mastermodel->getdatas('leave_type','leave_type_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">Year</label> <select name="leave_allocation_year" id="leave_allocation_year" class="required"> <?php for($i=date("Y");$i<=date("Y")+3 || $i<=date("Y");$i++) { ?> <option value="<?=$i;?>"><?=$i;?></option> <?php } ?> </select> </li> <li> <table class="sort"> <tr> <th align="center">Leave Type</th> <th align="center">No.of Days</th> </tr> <?php $i=1; foreach($leave_type as $leave) { ?> <tr> <td> <input type="hidden" name="leave_type_id_<?=$i;?>" value="<?=$leave['leave_type_id'];?>"/> <?=$leave['leave_type_name'];?> </td> <td><input style="width:75px;" type="text" name="leave_allocation_days_<?=$i;?>" class="required number" /></td> </tr> <?php $i++; } ?> </table> </li> <li> <input type="hidden" name="tab_name" value="leave_allocation"/> <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>