-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
112 changed files
with
371,021 additions
and
933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,53 @@ | ||
<?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 Overtime\Common\Model\EmployeeOvertime; | ||
use Overtime\Common\Model\OvertimeCategory; | ||
use Classes\PermissionManager; | ||
|
||
$moduleName = 'overtime'; | ||
$moduleGroup = 'admin'; | ||
define('MODULE_PATH',dirname(__FILE__)); | ||
include APP_BASE_PATH.'header.php'; | ||
include APP_BASE_PATH.'modulejslibs.inc.php'; | ||
/** | ||
* This is needed for multi level approvals | ||
*/ | ||
$itemName = 'OvertimeRequest'; | ||
$moduleName = 'Time Management'; | ||
$itemNameLower = strtolower($itemName); | ||
?><div class="span9"> | ||
|
||
$options = array(); | ||
$options['setRemoteTable'] = 'true'; | ||
<ul class="nav nav-tabs" id="modTab" style="margin-bottom:0px;margin-left:5px;border-bottom: none;"> | ||
<li class="active"><a id="tabOvertimeCategory" href="#tabPageOvertimeCategory"><?=t('Overtime Categories')?></a></li> | ||
<li><a id="tabEmployeeOvertime" href="#tabPageEmployeeOvertime"><?=t('Overtime Requests')?></a></li> | ||
</ul> | ||
|
||
$moduleBuilder = new \Classes\ModuleBuilder\ModuleBuilder(); | ||
$moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab( | ||
'OvertimeCategory','OvertimeCategory','Overtime Categories','OvertimeCategoryAdapter','','',true,$options | ||
)); | ||
$moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab( | ||
'EmployeeOvertime','EmployeeOvertime','Overtime Requests','EmployeeOvertimeAdminAdapter','','',false,$options | ||
)); | ||
echo \Classes\UIManager::getInstance()->renderModule($moduleBuilder); | ||
<div class="tab-content"> | ||
<div class="tab-pane active" id="tabPageOvertimeCategory"> | ||
<div id="OvertimeCategoryTable" class="reviewBlock" data-content="List"></div> | ||
<div id="OvertimeCategoryForm"></div> | ||
<div id="OvertimeCategoryFilterForm"></div> | ||
</div> | ||
<div class="tab-pane" id="tabPageEmployeeOvertime"> | ||
<div id="EmployeeOvertimeTable" class="reviewBlock" data-content="List"></div> | ||
<div id="EmployeeOvertimeForm"></div> | ||
<div id="EmployeeOvertimeFilterForm"></div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div id="dataGroup"></div> | ||
<?php | ||
$moduleData = [ | ||
'user_level' => $user->user_level, | ||
'permissions' => [ | ||
'OvertimeCategory' => PermissionManager::checkGeneralAccess(new OvertimeCategory()), | ||
'EmployeeOvertime' => PermissionManager::checkGeneralAccess(new EmployeeOvertime()), | ||
] | ||
]; | ||
?> | ||
<script> | ||
initAdminOvertime(<?=json_encode($moduleData)?>); | ||
</script> | ||
<?php include APP_BASE_PATH.'footer.php';?> | ||
|
||
$itemName = 'OvertimeRequest'; | ||
$moduleName = 'Time Management'; | ||
$itemNameLower = strtolower($itemName); | ||
|
||
include APP_BASE_PATH.'footer.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ | |
|
||
}else{ | ||
echo "REST Api is not enabled. Please set 'Api: REST Api Enabled' setting to true"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,10 @@ | |
} | ||
|
||
//Version | ||
define('VERSION', '30.0.0.OS'); | ||
define('CACHE_VALUE', '30.0.0.OS.2021-06261009'); | ||
define('VERSION_NUMBER', '300000'); | ||
define('VERSION_DATE', '26/06/2021'); | ||
define('VERSION', '31.0.0.OS'); | ||
define('CACHE_VALUE', '31.0.0.OS.2022-01141009'); | ||
define('VERSION_NUMBER', '310000'); | ||
define('VERSION_DATE', '14/01/2022'); | ||
|
||
if(!defined('CONTACT_EMAIL')){define('CONTACT_EMAIL','[email protected]');} | ||
if(!defined('KEY_PREFIX')){define('KEY_PREFIX','IceHrm');} | ||
|
Oops, something went wrong.