Latest updates from IceHrmPro
This commit is contained in:
19
core/admin/documents/dashboard.html
Normal file
19
core/admin/documents/dashboard.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<div class="col-lg-3 col-xs-12">
|
||||
|
||||
<div class="small-box bg-green">
|
||||
<div class="inner">
|
||||
<h3>
|
||||
<t>Document</t>
|
||||
</h3>
|
||||
<p id="numberOfDocuments">
|
||||
<t>Management</t>
|
||||
</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-document"></i>
|
||||
</div>
|
||||
<a href="#_moduleLink_#" class="small-box-footer" id="documentLink">
|
||||
<t>Manage</t> <t>Documents</t> <i class="fa fa-arrow-circle-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
Dear #_employee_#,<br/><br/>
|
||||
Following documents listed under your profile will be soon be expired<br/>
|
||||
Please login and take necessary actions.
|
||||
<br/>
|
||||
<hr/>
|
||||
#_documents_#
|
||||
IceHrm Url: <a href="#_url_#">#_url_#</a>
|
||||
<br/>
|
||||
66
core/admin/documents/index.php
Normal file
66
core/admin/documents/index.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<?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 = 'documents';
|
||||
$moduleGroup = 'admin';
|
||||
define('MODULE_PATH',dirname(__FILE__));
|
||||
include APP_BASE_PATH.'header.php';
|
||||
include APP_BASE_PATH.'modulejslibs.inc.php';
|
||||
$activeStr = '';
|
||||
if($user->user_level == "Manager"){
|
||||
$activeStr = 'active';
|
||||
}
|
||||
|
||||
$moduleBuilder = new \Classes\ModuleBuilder\ModuleBuilder();
|
||||
if($user->user_level == "Admin") {
|
||||
$moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab(
|
||||
'CompanyDocument',
|
||||
'CompanyDocument',
|
||||
'Company Documents',
|
||||
'CompanyDocumentAdapter',
|
||||
'',
|
||||
'',
|
||||
true
|
||||
));
|
||||
$moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab(
|
||||
'Document',
|
||||
'Document',
|
||||
'Document Types',
|
||||
'DocumentAdapter',
|
||||
'',
|
||||
'',
|
||||
false
|
||||
));
|
||||
$options1 = array();
|
||||
$options1['setRemoteTable'] = 'true';
|
||||
$moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab(
|
||||
'EmployeeDocument',
|
||||
'EmployeeDocument',
|
||||
'Employee Documents',
|
||||
'EmployeeDocumentAdapter',
|
||||
'',
|
||||
'',
|
||||
false,
|
||||
$options1
|
||||
));
|
||||
}else{
|
||||
$options1 = array();
|
||||
$options1['setRemoteTable'] = 'true';
|
||||
$moduleBuilder->addModuleOrGroup(new \Classes\ModuleBuilder\ModuleTab(
|
||||
'EmployeeDocument',
|
||||
'EmployeeDocument',
|
||||
'Employee Documents',
|
||||
'EmployeeDocumentAdapter',
|
||||
'',
|
||||
'',
|
||||
($user->user_level != "Admin"),
|
||||
$options1
|
||||
));
|
||||
}
|
||||
|
||||
echo \Classes\UIManager::getInstance()->renderModule($moduleBuilder);
|
||||
|
||||
include APP_BASE_PATH.'footer.php';
|
||||
14
core/admin/documents/meta.json
Normal file
14
core/admin/documents/meta.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"label": "Document Management",
|
||||
"menu": "Employees",
|
||||
"order": "2",
|
||||
"icon": "fa-file-alt",
|
||||
"user_levels": [
|
||||
"Admin",
|
||||
"Manager"
|
||||
],
|
||||
"dashboardPosition": 13,
|
||||
"permissions": [],
|
||||
"model_namespace": "\\Documents\\Common\\Model",
|
||||
"manager": "\\Documents\\Admin\\Api\\DocumentsAdminManager"
|
||||
}
|
||||
Reference in New Issue
Block a user