?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/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/eduplus2/application/views/hr/add_leave_application.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('commonfunctions'); $leave_type = $this->hrmodel->search_leave_type(); $employee =$this->hrmodel->search_employee(); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Creating Leave Application</div> <div class="tools"> <a href="#" onclick="viewdata('hr','viewinhrsearch','search_leave_application','view_leave_application','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('hr/addinhr/insert_leave_application/view_leave_application/1', $attributes); ?> <h3 class="form-section">Leave Application </h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee Name</label> <div class="controls"> <select name="employee_id" id="employee_id" class="required span12" > <option value="">Select</option> <?php foreach ($employee['results']->result_array() as $emp) { echo "<option value='" . $emp['employee_id'] . "' >" . $emp['employee_name'] . "</option>"; } ?> </select> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Leave Type</label> <div class="controls"> <select name="leave_type_id" class="required chosen span12"> <option value="">Select</option> <?php foreach ($leave_type['results']->result_array() as $list) { ?> <option value="<?= $list['leave_type_id']; ?>"><?= $list['leave_type_name']; ?></option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">From Date </label> <div class="controls"> <input id="from_date" type="text" class="required calfocus span12" name="from_date"> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">To Date </label> <div class="controls"> <input id="to_date" type="text" class="required calfocus span12" name="to_date"> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Remarks </label> <div class="controls"> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', 'class' => 'span12' ); echo form_textarea($data) . form_error($data); ?> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="leave_application_id" id="leave_application_id" /> <input type="hidden" name="tab_name" value="leave_application"/> <input type="hidden" name="resfunction" value="search_leave_application"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('hr','viewinhrsearch','search_leave_application','view_leave_application','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>