?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/www/savoyglobal.net/eldertree/application/views/hr/add_leave_allocation.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $leave_type = $this->hrmodel->search_leave_type(); $this->load->view('documentreadyfunctions'); $this->load->view('hr/hrfunctions'); $employee = $this->hrmodel->search_employee(); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Creating Leave Allocation</div> <div class="tools"> <a href="#" onclick="viewdata('hr','viewinhrsearch','search_leave_allocation','view_leave_allocation','<?= $_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_allocation/view_leave_allocation/1', $attributes); ?> <h3 class="form-section">Leave Allocation</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" onchange="load_employee_details(this.value)"> <option>Select Employee</option> <?php foreach ($employee['results']->result_array() as $list) { ?> <option value="<?= $list['employee_id'] ?>"><?= $list['employee_name'] ?></option> <?php } ?> </select> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Year </label> <div class="controls"> <select name="leave_allocation_year" id="leave_allocation_year" class="required chosen span12"> <option value="">--Select--</option> <?php for ($i = date("Y"); $i <= date("Y") + 3 || $i <= date("Y"); $i++) { ?> <option value="<?= $i; ?>"><?= $i; ?></option> <?php } ?> </select> </div> </div> </div> </div> <div id="employee"> </div> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Leave Type</th> <th>No.of Days</th> </tr> <?php $i = 1; foreach ($leave_type['results']->result_array() 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> <div class="form-actions"> <input type="hidden" name="tab_name" value="leave_allocation"/> <input type="hidden" name="resfunction" value="search_leave_allocation"/> <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_allocation','view_leave_allocation','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>