🧲 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
72 lines
1.9 KiB
PHP
72 lines
1.9 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)
|
|
*/
|
|
|
|
use Classes\PermissionManager;
|
|
use Company\Common\Model\CompanyStructure;
|
|
|
|
$moduleName = 'company_structure';
|
|
$moduleGroup = 'admin';
|
|
define('MODULE_PATH',dirname(__FILE__));
|
|
include APP_BASE_PATH.'header.php';
|
|
include APP_BASE_PATH.'modulejslibs.inc.php';
|
|
?>
|
|
<script type="text/javascript" src="<?=BASE_URL.'js/d3js/d3.js?v='.$jsVersion?>"></script>
|
|
<script type="text/javascript" src="<?=BASE_URL.'js/d3js/d3.layout.js?v='.$jsVersion?>"></script>
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
.node circle {
|
|
cursor: pointer;
|
|
fill: #fff;
|
|
stroke: steelblue;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
.node text {
|
|
font-size: 11px;
|
|
}
|
|
|
|
path.link {
|
|
fill: none;
|
|
stroke: #ccc;
|
|
stroke-width: 1.5px;
|
|
}
|
|
|
|
</style>
|
|
|
|
<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="tabCompanyStructure" href="#tabPageCompanyStructure"><?=t('Company Structure')?></a></li>
|
|
<li><a id="tabCompanyGraph" href="#tabPageCompanyGraph"><?=t('Company Graph')?></a></li>
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
<div class="tab-pane active" id="tabPageCompanyStructure">
|
|
<div id="CompanyStructureTable" class="reviewBlock" data-content="List" style="padding-left:5px;"></div>
|
|
<div id="CompanyStructureForm"></div>
|
|
<div id="CompanyStructureFilterForm"></div>
|
|
</div>
|
|
<div class="tab-pane reviewBlock" id="tabPageCompanyGraph" style="overflow-x: scroll;">
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<?php
|
|
$moduleData = [
|
|
'user_level' => $user->user_level,
|
|
'permissions' => [
|
|
'CompanyStructure' => PermissionManager::checkGeneralAccess(new CompanyStructure()),
|
|
]
|
|
];
|
|
?>
|
|
<script>
|
|
initAdminCompanyStructure(<?=json_encode($moduleData)?>);
|
|
</script>
|
|
<?php include APP_BASE_PATH.'footer.php';?>
|