diff --git a/Models/Employee.php b/Models/Employee.php index b4ca280..e869e0b 100755 --- a/Models/Employee.php +++ b/Models/Employee.php @@ -28,7 +28,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -class Employee implements ArrayableInterface, \JsonSerializable +class Employee implements \JsonSerializable, ArrayableInterface { /** * Employee ID. diff --git a/Models/EmployeeActivityStatus.php b/Models/EmployeeActivityStatus.php index ae01fab..d9dc39c 100755 --- a/Models/EmployeeActivityStatus.php +++ b/Models/EmployeeActivityStatus.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class EmployeeActivityStatus extends Enum { public const ACTIVE = 1; + public const INACTIVE = 2; } diff --git a/Models/EmployeeEducationHistory.php b/Models/EmployeeEducationHistory.php index 052ce37..c9af187 100755 --- a/Models/EmployeeEducationHistory.php +++ b/Models/EmployeeEducationHistory.php @@ -24,7 +24,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -class EmployeeEducationHistory implements ArrayableInterface, \JsonSerializable +class EmployeeEducationHistory implements \JsonSerializable, ArrayableInterface { /** * ID. diff --git a/Models/EmployeeHistory.php b/Models/EmployeeHistory.php index ee94b2f..4190a7c 100755 --- a/Models/EmployeeHistory.php +++ b/Models/EmployeeHistory.php @@ -31,7 +31,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -class EmployeeHistory implements ArrayableInterface, \JsonSerializable +class EmployeeHistory implements \JsonSerializable, ArrayableInterface { /** * ID. diff --git a/Models/EmployeeWorkHistory.php b/Models/EmployeeWorkHistory.php index b6be8cc..f5c1f26 100755 --- a/Models/EmployeeWorkHistory.php +++ b/Models/EmployeeWorkHistory.php @@ -24,7 +24,7 @@ use phpOMS\Contract\ArrayableInterface; * @link https://orange-management.org * @since 1.0.0 */ -class EmployeeWorkHistory implements ArrayableInterface, \JsonSerializable +class EmployeeWorkHistory implements \JsonSerializable, ArrayableInterface { /** * ID. diff --git a/Models/PermissionState.php b/Models/PermissionState.php index a814db3..d7579e8 100755 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -27,5 +27,6 @@ use phpOMS\Stdlib\Base\Enum; abstract class PermissionState extends Enum { public const HR = 1; + public const DEPARTMENT = 2; } diff --git a/Theme/Backend/department-list.tpl.php b/Theme/Backend/department-list.tpl.php index ea2ade4..4a50f3d 100755 --- a/Theme/Backend/department-list.tpl.php +++ b/Theme/Backend/department-list.tpl.php @@ -30,22 +30,22 @@ echo $this->getData('nav')->render(); ?>
| = $this->getHtml('ID', '0', '0'); ?> - | = $this->getHtml('Name') ?> - | = $this->getHtml('Employees') ?> - | = $this->getHtml('Parent') ?> + | = $this->getHtml('Name'); ?> + | = $this->getHtml('Employees'); ?> + | = $this->getHtml('Parent'); ?> | |||||||||||||||||||||||||||||||||||||||||||||||
| = $this->printHtml($value->getId()); ?> - | = $this->printHtml($value->getName()); ?> - | - | = $this->printHtml($value->getParent()->getName()); ?> + | = $this->printHtml($value->getId()); ?> + | = $this->printHtml($value->getName()); ?> + | + | = $this->printHtml($value->getParent()->getName()); ?> | ||||||||||||||||||||||||||||||||||||||||||||||
| = $this->getHtml('Empty', '0', '0'); ?> diff --git a/Theme/Backend/staff-create.tpl.php b/Theme/Backend/staff-create.tpl.php index af49ce3..c5462ba 100755 --- a/Theme/Backend/staff-create.tpl.php +++ b/Theme/Backend/staff-create.tpl.php @@ -41,13 +41,13 @@ echo $this->getData('nav')->render(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| - | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| + | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| - | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| + | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| - | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| + | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| - | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| + | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
diff --git a/Theme/Backend/staff-list.tpl.php b/Theme/Backend/staff-list.tpl.php
index 13c5d18..d16f1f2 100755
--- a/Theme/Backend/staff-list.tpl.php
+++ b/Theme/Backend/staff-list.tpl.php
@@ -24,22 +24,22 @@ echo $this->getData('nav')->render(); ?>
- = $this->getHtml('Staff') ?>
+ = $this->getHtml('Staff'); ?>
| |||||||||||||||||||||||||||||||||||||||||||||||||||||