🧲 New features Custom user role permissions Employee edit form updated Employee daily task list Attendance and employee distribution charts on dashboard Improvements to company structure and company assets module Improved tables for displaying data in several modules Faster data loading (specially for employee module) Initials based profile pictures Re-designed login page Re-designed user profile page Improvements to filtering New REST endpoints for employee qualifications 🐛 Bug fixes Fixed, issue with managers being able to create performance reviews for employees who are not their direct reports Fixed, issues related to using full profile image instead of using smaller version of profile image Changing third gender to other Improvements and fixes for internal frontend data caching
106 lines
4.5 KiB
PHP
106 lines
4.5 KiB
PHP
<?php
|
|
/*
|
|
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
|
|
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
|
|
*/
|
|
|
|
$moduleName = 'attendance';
|
|
$moduleGroup = 'admin';
|
|
define('MODULE_PATH',dirname(__FILE__));
|
|
include APP_BASE_PATH.'header.php';
|
|
include APP_BASE_PATH.'modulejslibs.inc.php';
|
|
$photoAttendance = \Classes\SettingsManager::getInstance()->getSetting('Attendance: Photo Attendance');
|
|
$mapAttendance = \Classes\SettingsManager::getInstance()->getSetting('Attendance: Request Attendance Location on Mobile');
|
|
?><div class="span9">
|
|
|
|
<ul class="nav nav-tabs" id="modTab" style="margin-bottom:0px;margin-left:5px;border-bottom: none;">
|
|
<li class="active"><a id="tabAttendance" href="#tabPageAttendance"><?=t('Monitor Attendance')?></a></li>
|
|
<li class=""><a id="tabAttendanceStatus" href="#tabPageAttendanceStatus"><?=t('Current Clocked In Status')?></a></li>
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
<div class="tab-pane active" id="tabPageAttendance">
|
|
<div id="Attendance" class="reviewBlock" data-content="List" style="padding-left:5px;">
|
|
|
|
</div>
|
|
<div id="AttendanceForm" class="reviewBlock" data-content="Form" style="padding-left:5px;display:none;">
|
|
|
|
</div>
|
|
</div>
|
|
<div class="tab-pane" id="tabPageAttendanceStatus">
|
|
<div id="AttendanceStatus" class="reviewBlock" data-content="List" style="padding-left:5px;">
|
|
|
|
</div>
|
|
<div id="AttendanceStatusForm" class="reviewBlock" data-content="Form" style="padding-left:5px;display:none;">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal" id="attendancePhotoModel" tabindex="-1" role="dialog" aria-labelledby="messageModelLabel" aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><li class="fa fa-times"/></button>
|
|
<h3 style="font-size: 17px;">Attendance Details</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row" style="background: #f3f4f5; padding: 10px;text-align: center;">
|
|
<h4 id="attendnaceCanvasEmp"></h4>
|
|
</div>
|
|
<div class="row" style="background: #f3f4f5; padding: 10px;">
|
|
<div id="attendnaceCanvasPunchInTimeWraper" class="col-sm-6" style="text-align: center;">
|
|
<b>In: </b><span id="attendnaceCanvasPunchInTime"></span>
|
|
<br/>
|
|
IP Address: <span id="punchInIp"></span>
|
|
</div>
|
|
<div id="attendnaceCanvasPunchOutTimeWrapper" class="col-sm-6" style="text-align: center;">
|
|
<b>Out: </b><span id="attendnaceCanvasPunchOutTime"></span>
|
|
<br/>
|
|
IP Address: <span id="punchOutIp"></span>
|
|
</div>
|
|
</div>
|
|
<div id="attendancePhoto" class="row" style="background: #f3f4f5; padding: 10px;display:none;">
|
|
<div id="attendnaceCanvasInWrapper" class="col-sm-6" style="text-align: center;">
|
|
|
|
</div>
|
|
<div id="attendnaceCanvasOutWrapper" class="col-sm-6" style="text-align: center;">
|
|
|
|
</div>
|
|
</div>
|
|
<div id="attendanceMap" class="row" style="background: #f3f4f5; padding: 10px;display:none;">
|
|
<div id="attendnaceMapCanvasInWrapper" class="col-sm-6" style="text-align: center;">
|
|
|
|
</div>
|
|
<div id="attendnaceMapCanvasOutWrapper" class="col-sm-6" style="text-align: center;">
|
|
|
|
</div>
|
|
<div class="col-sm-6" style="text-align: center;">
|
|
<span>Location: <span id="punchInLocation"></span></span>
|
|
|
|
</div>
|
|
<div class="col-sm-6" style="text-align: center;">
|
|
<span>Location: <span id="punchOutLocation"></span></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
var modJsList = new Array();
|
|
modJsList['tabAttendance'] = new AttendanceAdapter('Attendance','Attendance','','in_time desc');
|
|
modJsList['tabAttendance'].setRemoteTable(true);
|
|
modJsList['tabAttendance'].setPhotoAttendance(<?=$photoAttendance == '1' || $mapAttendance == '1'?>);
|
|
modJsList['tabAttendanceStatus'] = new AttendanceStatusAdapter('AttendanceStatus','AttendanceStatus','','');
|
|
modJsList['tabAttendanceStatus'].setShowAddNew(false);
|
|
var modJs = modJsList['tabAttendance'];
|
|
|
|
</script>
|
|
<?php include APP_BASE_PATH.'footer.php';?>
|