?
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/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/koaladraft/application/views/hr/view_leave_application.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/add.png" title="Add New" class="clickimage" onclick="addformdisplay('add_leave_application','hr')" alt="Add New" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Leave Application</h4> </div> </div> <div class="clean"></div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content"> <table id="table-example" class="table"> <thead> <tr> <th>Sl No</th> <th>Employee Name</th> <th>From Date</th> <th>To Date</th> <th>Leave Type</th> <th>Remarks</th> <th>Status</th> <th width="10%">Action</th> </tr> </thead> <tbody> <?php $table=""; $field=""; $i=0; foreach($viewinfo->result() as $row) { $i++; ?> <tr> <td id="sl"> <?=$i?> </td> <td><?=$row->employee_name?></td> <td><?=$this->mastermodel->convertdatenormalformat($row->from_date);?></td> <td><?=$this->mastermodel->convertdatenormalformat($row->to_date);?></td> <td><?=$this->mastermodel->get_single_field_value('leave_type','leave_type_name','leave_type_id',$row->leave_type_id);?> <td><?=$row->remarks;?></td> <td><?=$row->leave_status;?></td> <td id="actions_3"> <?php // $staff_list = $_SESSION['employee_id'] . ','; // $employees = $this->mastermodel->traceemployee($_SESSION['employee_id'], $staff_list); // $users = explode(',', $employees); // if (in_array($_SESSION['employee_id'], $users) && $row->leave_status == "Pending" && ($_SESSION['employee_id'] != $row->employee_id || $_SESSION['user_id'] == 1)) { if($row->employee_reporting_to ==$_SESSION['employee_id']) { ?> <div class="elements"><img src="<?=base_url()?>/assets/images/documentinfo.png" title="Status" width="20" class="statusicon" height="20" alt="Status" align = "center" onclick="leave_approval(<?=$row->leave_application_id;?>)"/></div> <?php } ?> <div class="elements"> <img src="<?=base_url()?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('hr','edit_page','<?=$row->leave_application_id;?>','leave_application','leave_application_id','edit_leave_application')" alt="" /> </div> <div class="elements"><img src="<?=base_url()?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('leave_application',<?=$row->leave_application_id;?>,'leave_application_id','hr','viewinhrsearch','search_leave_application','view_leave_application','<?=$table?>','<?=$field?>')" alt="Delete" align = "center"/></div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div>