sidebar.html.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * The sidebar view file of system module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Yanyi Cao <caoyanyi@chandao.com>
  7. * @package system
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $menuItems = array();
  12. foreach($lang->system->platform->navs as $method => $menu)
  13. {
  14. $active = $app->rawMethod == strtolower($method) ? 'active' : '';
  15. if(!common::hasPriv('system', $method)) continue;
  16. $menuItems[] = li
  17. (
  18. setClass('menu-item'),
  19. a
  20. (
  21. setClass($active),
  22. set::href(createLink('system', $method)),
  23. setData(array('load' => '', 'no-morph' => 'false')),
  24. $menu
  25. )
  26. );
  27. }
  28. $menuItems ? sidebar
  29. (
  30. set::showToggle(false),
  31. div
  32. (
  33. setClass('cell p-2.5 bg-white'),
  34. menu($menuItems)
  35. )
  36. ) : null;