?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/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_old/application/views/hr/single_leave_page.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_employee','view_employee','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons" style=" margin: 6px 0 0 14px;"> <img src="<?= base_url() ?>assets/images/edit-icon.gif" title="Edit" width="25" height="25" alt="Edit" align = "center" class="clickimage" onclick="editformdata('hr','edit_page','<?= $viewinfo->employee_id; ?>','employee','employee_id','edit_employee')" alt="" /> </div> <div class="icons" style="float: right;'"> <?php $employee_sal_id = $this->hrmodel->get_employee_salary_id($viewinfo->employee_id, date('d-m-Y')) ?> <style> #tabs li{ display: block;float: left; border-bottom: 1px solid black; } #tabs li a{ width: 80px; background: #2B5177; color: white; padding: 5px; height: auto; margin: 0 1px 0 0; text-align: center } </style> <ul style="list-style: none;padding: 0px" id="tabs"> <li> <a href="#" onclick="displayformdata('hr','single_page','<?= $viewinfo->employee_id; ?>','employee','employee_id','single_employee')">Personal</a> </li> <li> <?php if ($employee_sal_id == "") { ?> <a href="#" onclick="alert('Salary not Set')">Salary</a> <?php } else { ?> <a href="#" onclick="gotopage('hr','single_salary_setting','<?= $employee_sal_id; ?>','employee_salary','employee_salary_id','single_salary_setting','single_employee')">Salary</a> <?php } ?> </li> <li> <a href="#" onclick="displayformdata('hr','single_leave_page','<?= $viewinfo->employee_id; ?>','employee','employee_id','single_leave_page')">Leave</a> </li> </ul> </div> <div class="icons_caption"> <h4>Employee Leave Details</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('', $attributes); ?> <div class="grid_12"> <div class="box"> <div class="header main"> Leave Allocated For <?= date('Y') ?></div> <div class="content no-padding"> <table class="table"> <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><?= $leave_blz; ?></td><td><?= $noofdays - $leave_blz; ?> </tr> <?php } ?> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="header main"> Leave Applied For <?= date('Y') ?></div> <div class="content no-padding"> <table class="table"> <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> </div> </div> </div> <?php echo form_close(); ?> <?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(); ?>