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(); ?>
| = $this->getHtml('ID', '0', '0'); ?> | = $this->getHtml('Name'); ?> | = $this->getHtml('Unit'); ?> @@ -36,8 +40,13 @@ echo $this->getData('nav')->render(); ?> | = $this->getHtml('Status'); ?> | |
| = $value->getId(); ?> | = $this->printHtml( \sprintf('%3$s %2$s %1$s', $value->profile->account->name1, $value->profile->account->name2, $value->profile->account->name3) |