From 8d7104b535433ebae694aaa668da18f91f635428 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 23 Dec 2020 20:11:37 +0100 Subject: [PATCH] start hr list update --- Controller/BackendController.php | 2 +- Theme/Backend/staff-list.tpl.php | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 2f3f630..a2f5d5e 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -49,7 +49,7 @@ final class BackendController extends Controller $view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/staff-list'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1002402001, $request, $response)); - $view->setData('employees', EmployeeMapper::getAll()); + $view->setData('employees', EmployeeMapper::getAll(depth: 6)); return $view; } diff --git a/Theme/Backend/staff-list.tpl.php b/Theme/Backend/staff-list.tpl.php index f841043..c699963 100755 --- a/Theme/Backend/staff-list.tpl.php +++ b/Theme/Backend/staff-list.tpl.php @@ -1,6 +1,4 @@ -getData('nav')->render(); ?> + $value) : ++$c; - $url = \phpOMS\Uri\UriFactory::build('{/prefix}humanresource/staff/profile?{?}&id=' . $value->getId()); ?> + $url = UriFactory::build('{/prefix}humanresource/staff/profile?{?}&id=' . $value->getId()); ?> +
getHtml('ID', '0', '0'); ?> getHtml('Name'); ?> getHtml('Unit'); ?> @@ -36,8 +40,13 @@ echo $this->getData('nav')->render(); ?> getHtml('Status'); ?>
getId(); ?> printHtml( \sprintf('%3$s %2$s %1$s', $value->profile->account->name1, $value->profile->account->name2, $value->profile->account->name3)