235 lines
7.9 KiB
PHP
235 lines
7.9 KiB
PHP
<?php
|
|
/*
|
|
This file is part of iCE Hrm.
|
|
|
|
iCE Hrm is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
iCE Hrm is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with iCE Hrm. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
------------------------------------------------------------------
|
|
|
|
Original work Copyright (c) 2012 [Gamonoid Media Pvt. Ltd]
|
|
Developer: Thilina Hasantha (thilina.hasantha[at]gmail.com / facebook.com/thilinah)
|
|
*/
|
|
|
|
$moduleName = 'dashboard';
|
|
define('MODULE_PATH',dirname(__FILE__));
|
|
include APP_BASE_PATH.'header.php';
|
|
include APP_BASE_PATH.'modulejslibs.inc.php';
|
|
?><div class="span9">
|
|
|
|
<div class="row">
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-aqua">
|
|
<div class="inner">
|
|
<h3 id="lastPunchTime">
|
|
..
|
|
</h3>
|
|
<p id="punchTimeText">
|
|
Waiting for Response..
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-ios7-alarm-outline"></i>
|
|
</div>
|
|
<a href="#" class="small-box-footer" id="atteandanceLink">
|
|
Record Attendance <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div><!-- ./col -->
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-yellow">
|
|
<div class="inner">
|
|
<h3 id="timeSheetHoursWorked">..</h3>
|
|
<p>
|
|
Hours worked Last Week
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-clock"></i>
|
|
</div>
|
|
<a href="#" class="small-box-footer" id="timesheetLink">
|
|
Update Time Sheet <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div><!-- ./col -->
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-red">
|
|
<div class="inner">
|
|
<h3 id="numberOfProjects">..</h3>
|
|
<p>
|
|
Active Projects
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-pie-graph"></i>
|
|
</div>
|
|
<a href="#" class="small-box-footer" id="projectsLink">
|
|
More info <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div><!-- ./col -->
|
|
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-teal">
|
|
<div class="inner">
|
|
<h3>
|
|
My Travel
|
|
</h3>
|
|
<p>
|
|
Requests
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-plane"></i>
|
|
</div>
|
|
<a href="#" class="small-box-footer" id="travelLink">
|
|
Travel Requests <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-yellow">
|
|
<div class="inner">
|
|
<h3>
|
|
Help
|
|
</h3>
|
|
<p>
|
|
User Guide
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-help"></i>
|
|
</div>
|
|
<a href="http://blog.icehrm.com/docs/home/" target="_blank" class="small-box-footer" id="icehrmHelpLink">
|
|
Documentation <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<?php if($user->user_level == "Manager" || $user->user_level == "Admin"){?>
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-aqua">
|
|
<div class="inner">
|
|
<h3>
|
|
Employees
|
|
</h3>
|
|
<p id="numberOfEmployees">
|
|
Subordinates
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-person-stalker"></i>
|
|
</div>
|
|
<a href="#" class="small-box-footer" id="employeeLink">
|
|
Manage Subordinates <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div><!-- ./col -->
|
|
|
|
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-yellow">
|
|
<div class="inner">
|
|
<h3>
|
|
Travel
|
|
</h3>
|
|
<p id="numberOfTravel">
|
|
Management
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-plane"></i>
|
|
</div>
|
|
<a href="#" class="small-box-footer" id="traveAdminlLink">
|
|
Manage Travel <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-red">
|
|
<div class="inner">
|
|
<h3>
|
|
Attendance
|
|
</h3>
|
|
<p id="numberOfDocuments">
|
|
Monitor
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-ios7-timer"></i>
|
|
</div>
|
|
<a href="#" class="small-box-footer" id="attendanceAdminLink">
|
|
View Attendance <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div><!-- ./col -->
|
|
|
|
<div class="col-lg-3 col-xs-12">
|
|
<!-- small box -->
|
|
<div class="small-box bg-teal">
|
|
<div class="inner">
|
|
<h3>Reports</h3>
|
|
<p>
|
|
View / Download Reports
|
|
</p>
|
|
</div>
|
|
<div class="icon">
|
|
<i class="ion ion-document-text"></i>
|
|
</div>
|
|
<a href="#" class="small-box-footer" id="reportsLink">
|
|
Create a Report <i class="fa fa-arrow-circle-right"></i>
|
|
</a>
|
|
</div>
|
|
</div><!-- ./col -->
|
|
|
|
|
|
<?php }?>
|
|
</div>
|
|
|
|
</div>
|
|
<script>
|
|
var modJsList = new Array();
|
|
|
|
modJsList['tabDashboard'] = new DashboardAdapter('Dashboard','Dashboard');
|
|
|
|
var modJs = modJsList['tabDashboard'];
|
|
|
|
$("#atteandanceLink").attr("href",modJs.getCustomUrl('?g=modules&n=attendance&m=module_Time_Management'));
|
|
$("#attendanceAdminLink").attr("href",modJs.getCustomUrl('?g=admin&n=attendance&m=admin_Admin'));
|
|
$("#leavesLink").attr("href",modJs.getCustomUrl('?g=modules&n=leaves&m=module_Leaves'));
|
|
$("#timesheetLink").attr("href",modJs.getCustomUrl('?g=modules&n=time_sheets&m=module_Time_Management'));
|
|
$("#projectsLink").attr("href",modJs.getCustomUrl('?g=modules&n=projects&m=module_Time_Management'));
|
|
$("#traveAdminlLink").attr("href",modJs.getCustomUrl('?g=admin&n=travel&m=admin_Employees'));
|
|
$("#travelLink").attr("href",modJs.getCustomUrl('?g=modules&n=travel&m=module_Travel_Management'));
|
|
$("#reportsLink").attr("href",modJs.getCustomUrl('?g=admin&n=reports&m=admin_Reports'));
|
|
|
|
|
|
|
|
modJs.getPunch();
|
|
modJs.getPendingLeaves();
|
|
modJs.getLastTimeSheetHours();
|
|
modJs.getEmployeeActiveProjects();
|
|
|
|
</script>
|
|
<?php include APP_BASE_PATH.'footer.php';?>
|