?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/sec/application/views/hr/edit_leave_allocation.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $leave_type = $this->mastermodel->get_data_joined('leave_allocation_detail', 'leave_type', 'leave_type_id', 'leave_type_id', $viewinfo->leave_allocation_id, 'leave_allocation_id'); ?> <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>Updating 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/update_leave_allocation/view_leave_allocation/1', $attributes); $emp = $this->mastermodel->get_data_srow('employee', $viewinfo->employee_id, 'employee_id'); ?> <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"> <span class="text bold"><?= $emp->employee_name; ?></span> </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"> <?php for ($i = date("Y"); $i <= date("Y") + 3 || $i <= date("Y"); $i++) { ?> <option value="<?= $i; ?>"<?php if ($i == $viewinfo->leave_allocation_year) { echo 'selected'; } ?>><?= $i; ?></option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Emp No:</label> <div class="controls"> <span class="text bold"> <?= $emp->employee_no ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label"> Designation :</label> <div class="controls"> <span class="text bold"> <?= $this->mastermodel->get_single_field_value('designation', 'designation_name', 'designation_id', $emp->employee_designation_id); ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Department : </label> <div class="controls"> <span class="text bold"> <?= $this->mastermodel->get_single_field_value('department', 'department_name', 'department_id', $emp->employee_department_id); ?></span> </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 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" value="<?= $leave['leave_allocation_days']; ?>"/> </td> </tr> </tbody> <?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"/> <input type="hidden" name="leave_allocation_id" id="leave_allocation_id" value="<?= $viewinfo->leave_allocation_id; ?>" /> <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>