| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- /**
- * The checkWeak view file of admin module of ZenTaoPMS.
- * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
- * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
- * @author Mengyi Liu <liumengyi@easycorp.ltd>
- * @package admin
- * @link https://www.zentao.net
- */
- namespace zin;
- $menuItems = array();
- if(common::hasPriv('admin', 'safe'))
- {
- $menuItems[] = li
- (
- setClass('menu-item'),
- a
- (
- set::href(createLink('admin', 'safe')),
- $lang->admin->safe->set
- )
- );
- }
- if(common::hasPriv('admin', 'checkWeak'))
- {
- $menuItems[] = li
- (
- setClass('menu-item'),
- a
- (
- setClass('active'),
- set::href(createLink('admin', 'checkWeak')),
- $lang->admin->safe->checkWeak
- )
- );
- }
- if(common::hasPriv('admin', 'resetPWDSetting'))
- {
- $menuItems[] = li
- (
- setClass('menu-item'),
- a
- (
- set::href(createLink('admin', 'resetPWDSetting')),
- $lang->admin->resetPWDSetting
- )
- );
- }
- $tableData = initTableData($weakUsers, $config->admin->checkWeak->dtable->fieldList, $this->admin);
- $isEn = $app->getClientLang() == 'en';
- $enSidebarWidth = $isEn ? set::minWidth('180') : null;
- div
- (
- setID('mainContent'),
- setClass('row has-sidebar-left'),
- $menuItems ? sidebar
- (
- set::showToggle(false),
- $enSidebarWidth,
- div
- (
- setClass('cell p-2.5 bg-white'),
- menu($menuItems)
- )
- ) : null,
- dtable
- (
- set::cols($config->admin->checkWeak->dtable->fieldList),
- set::data($weakUsers)
- )
- );
- render();
|