?
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_application.php |
<script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestemployeehierarchy('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_application','view_leave_application','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Creating new Leave Application</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/insert_leave_application/view_leave_application/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">Leave Type</label> <select name="leave_type_id" id="leave_type_id" class="required"> <option value="">Select</option> <?php foreach($leave_type as $list) { ?> <option value="<?=$list['leave_type_id'];?>"><?=$list['leave_type_name'];?></option> <?php } ?> </select> </li> <li> <label for="data">From Date</label> <?php $data = array( 'name' => 'from_date', 'id' => 'from_date', 'class' => 'calfocus' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">To Date</label> <?php $data = array( 'name' => 'to_date', 'id' => 'to_date', 'class' => 'calfocus' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', ); echo form_textarea($data).form_error($data); ?> </li> <li> <input type="hidden" name="leave_application_id" id="leave_application_id" /> <input type="hidden" name="tab_name" value="leave_application"/> <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>