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)