checkweak.html.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * The checkWeak view file of admin module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 Mengyi Liu <liumengyi@easycorp.ltd>
  7. * @package admin
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $menuItems = array();
  12. if(common::hasPriv('admin', 'safe'))
  13. {
  14. $menuItems[] = li
  15. (
  16. setClass('menu-item'),
  17. a
  18. (
  19. set::href(createLink('admin', 'safe')),
  20. $lang->admin->safe->set
  21. )
  22. );
  23. }
  24. if(common::hasPriv('admin', 'checkWeak'))
  25. {
  26. $menuItems[] = li
  27. (
  28. setClass('menu-item'),
  29. a
  30. (
  31. setClass('active'),
  32. set::href(createLink('admin', 'checkWeak')),
  33. $lang->admin->safe->checkWeak
  34. )
  35. );
  36. }
  37. if(common::hasPriv('admin', 'resetPWDSetting'))
  38. {
  39. $menuItems[] = li
  40. (
  41. setClass('menu-item'),
  42. a
  43. (
  44. set::href(createLink('admin', 'resetPWDSetting')),
  45. $lang->admin->resetPWDSetting
  46. )
  47. );
  48. }
  49. $tableData = initTableData($weakUsers, $config->admin->checkWeak->dtable->fieldList, $this->admin);
  50. $isEn = $app->getClientLang() == 'en';
  51. $enSidebarWidth = $isEn ? set::minWidth('180') : null;
  52. div
  53. (
  54. setID('mainContent'),
  55. setClass('row has-sidebar-left'),
  56. $menuItems ? sidebar
  57. (
  58. set::showToggle(false),
  59. $enSidebarWidth,
  60. div
  61. (
  62. setClass('cell p-2.5 bg-white'),
  63. menu($menuItems)
  64. )
  65. ) : null,
  66. dtable
  67. (
  68. set::cols($config->admin->checkWeak->dtable->fieldList),
  69. set::data($weakUsers)
  70. )
  71. );
  72. render();