?
Current Path : /home1/savoy/www/savoyglobal.net/horeitia/application/views/Employee/ |
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/horeitia/application/views/Employee/add_leave_office.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { suggestValues(); }); function suggestValues() { $("#office_employee_name").autocomplete("<?= site_url()?>/employee/all_employees_office", { width: 250, selectFirst: false }); } function disable_ending(status) { if(status.value=='3') { $("#office_leave_ending_date").attr("disabled", "disabled"); } else { $("#office_leave_ending_date").attr("disabled", ""); } } </script> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('employee','viewinemployeesearch','search_leave_office','view_leave_office','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Creating new Employee Leave</span> </div> <link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('employee/addinemployee/insert_leave_office/view_leave_office/1',$attributes); $leave_list=$this->mastermodel->getdatas('leave_type','leave_type_name'); ?> <ul> <li> <label for="data">Employee Name</label> <?php $data = array( 'name' => 'office_employee_name', 'id' => 'office_employee_name', 'class' => 'required' ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Leave Type</label> <select name="office_leave_type_id" id="office_leave_type_id" class="required" onchange="disable_ending(this)"> <option value="">Select</option> <?php foreach($leave_list as $leave) { echo "<option value='". $leave['leave_type_id'] . "'>" . $leave['leave_type_name'] . "</option>"; } ?> </select> </li> <li> <label for="data">Reason of leave</label> <select name="office_leave_reason" id="office_leave_reason" class="required"> <option value="">Select</option> <option value="Relative sick">Relative sick</option> <option value="Personal problems">Personal problems</option> <option value="Completion of contract">Completion of contract</option> <option value="Disciplinary Ground">Disciplinary Ground</option> <option value="Any other reason">Any other reason</option> </select> </li> <li> <table class="sort"> <caption>Leave Dates</caption> <tr> <th align="center">Start Date</th> <th align="center">End Date</th> </tr> <tr> <td> <div id="multi"> <input type="text" name="office_leave_starting_date" id="office_leave_starting_date" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> <td> <div id="multi"> <input type="text" name="office_leave_ending_date" id="office_leave_ending_date" /> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </td> </tr> </table> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'office_leave_remarks', 'id' => 'office_leave_remarks' ); echo form_textarea($data).form_error($data); ?> </li> <li> <label for="data">Leave Status</label> <select name="office_leave_status" id="office_leave_status" class="required"> <option value="">Select</option> <option value="Not Approved">Not Approved</option> <option value="Approved">Approved</option> </select> </li> <li> <input type="hidden" name="tab_name" value="office_leave"/> <input type="hidden" name="resfunction" value="search_leave_office"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>