?
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/single_employee_attendance.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <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 Attendance Details</div> <div class="tools"> <a href="#" onclick="viewdata('hr','viewinhrsearch','search_employee_attendence','view_employee_attendence','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <div class="form-horizontal form-view form-bordered"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('', $attributes); ?> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Attendance Date</label> <div class="controls"> <span class="text bold"><?= $this->mastermodel->convertdatenormalformat($viewinfo->employee_attendance_date) ?></span> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Remarks </label> <div class="controls"> <span class="text bold"><?= $viewinfo->employee_attendance_remarks ?></span> </div> </div> </div> </div> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i>Employee Attendance Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="stud_sub" style="background-color: white;"> <thead id="stud_sub_head"> <tr> <td style="text-align: center;" >Employee Name</td> <td style="text-align: center;" >Attendance Status</td> <td style="text-align: center;">Time In</td> <td style="text-align: center;">Time Out</td> <td style="text-align: center;">Remarks</td> </tr> </thead> <tbody> <?php $employee_attendence_details = $this->hrmodel->employee_attendence_details($viewinfo->employee_attendance_id); $i = 1; foreach ($employee_attendence_details as $row) { ?> <tr> <td> <?= $row['employee_name']; ?> </td> <td> <select disabled name="employee_attendance_status<?= $i ?>" class="required chosen" > <option value="">--Select--</option> <option value="P" <?php if ($row['employee_attendance_status'] == "P") { echo "selected"; } ?>>Present</option> <option value="L" <?php if ($row['employee_attendance_status'] == "L") { echo "selected"; } ?>>Leave</option> <option value="A" <?php if ($row['employee_attendance_status'] == "A") { echo "selected"; } ?>>Absent</option> </select> </td> <td> <?php if(substr($row['employee_attendance_in_time'], 0, 2) == "00" && substr($row['employee_attendance_in_time'], 3, 2) == "00") echo ""; else echo substr($row['employee_attendance_in_time'], 0, 2) .":". substr($row['employee_attendance_in_time'], 3, 2); ?> </td> <td> <?php if(substr($row['employee_attendance_out_time'], 0, 2) == "00" && substr($row['employee_attendance_out_time'], 3, 2) == "00") echo ""; else echo substr($row['employee_attendance_out_time'], 0, 2) .":". substr($row['employee_attendance_out_time'], 3, 2); ?> </td> <td> <?= $row['employee_attendance_details_remarks']; ?> </td> </tr> <?php $i++; } ?> </tbody> </table> </div> </div> </div> </div> <?php echo form_close(); ?> </div> <!-- END FORM--> </div> </div> </div> </div>