?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/eldertree/application/views/hr/single_leave_page.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <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>Employee Leave Details</div> <?php $employee_sal_id = $this->hrmodel->get_employee_salary_id($viewinfo->employee_id, date('d-m-Y')) ?> <div class="tools" style="float:right;"> <a class="btn green" href="#" onclick="displayformdata('hr','single_page','<?= $viewinfo->employee_id; ?>','employee','employee_id','single_employee')">Personal</a> <?php if ($employee_sal_id == "") { ?> <a class="btn yellow" href="#" onclick="alert('Salary not Set')">Salary</a> <?php } else { ?> <a class="btn red" href="#" onclick="gotopage('hr','single_salary_setting','<?= $employee_sal_id; ?>','employee_salary','employee_salary_id','single_salary_setting','single_employee')">Salary</a> <?php } ?> <a href="#" class="btn purple" onclick="displayformdata('hr','single_leave_page','<?= $viewinfo->employee_id; ?>','employee','employee_id','single_leave_page')">Leave</a> <a href="#" onclick="viewdata('hr','viewinhrsearch','search_employee','view_employee','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <div class="form-horizontal form-view form-bordered"> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('', $attributes); ?> <h4 class="formsection">Leave Allocated For <?= date('Y') ?></h4> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>Leave Type</th> <th>Allocated</th> <th>Taken</th> <th>Balance</th> </tr> <?php foreach ($leave_alloc as $value) { $leave_blz = $this->hrmodel->get_leave_balance($viewinfo->employee_id, $value['leave_type_id'], date('Y')); $noofdays = $value['leave_allocation_days']; ?> <tr> <td><?= $value['leave_type_name'] ?></td> <td><?= $value['leave_allocation_days'] ?></td> <td><?= isset($leave_blz->days) ? $leave_blz->days : 0 ?></td> <td><?= $noofdays - (isset($leave_blz->days) ? $leave_blz->days : 0); ?></td> </tr> <?php } ?> </table> <h4 class="formsection">Leave Applied For <?= date('Y') ?></h4> <table class="table table-striped table-hover table-bordered" > <tr> <th>Leave Type</th> <th>From Date</th> <th>To Date</th> <th>Status</th> <th>Remarks</th> </tr> <?php foreach ($leave_appln as $value) { ?> <tr> <td><?= $value['leave_type_name'] ?></td> <td><?= $this->mastermodel->convertdatenormalformat($value['from_date']) ?></td> <td><?= $this->mastermodel->convertdatenormalformat($value['to_date']) ?></td> <td><?= $value['leave_status'] ?></td> <td><?= $value['remarks'] ?></td> </tr> <?php } ?> </table> <?php echo form_close(); ?> </div> </div> </div> </div> </div> <?php $data['master_id'] = $viewinfo->employee_id; $data['controller'] = 'hr'; $data['controller_function'] = 'viewinhrsearch'; $data['page'] = 'view_employee'; $data['model_function'] = 'search_employee'; $this->load->view('master/uploaded_files', $data); echo form_close(); ?> <script type="text/javascript"> function gotopage(controller,controllerfunction,id,table,field,page,returnpage) { $("#inner_content").empty().html('<CENTER><img src="<?= base_url() ?>assets/img/loading.gif" class="loading"/></CENTER>'); $("#inner_content").load("<?= site_url() ?>/"+controller+'/'+controllerfunction+'/'+id+'/'+table+'/'+field+'/'+page+'/'+returnpage); } </script>