21 lines
902 B
PHP
21 lines
902 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
/**
|
|
* The ajaxGetRecommendTree view file of group 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 Shujie Tian<tianshujie@easycorp.ltd>
|
|
* @package group
|
|
* @link https://www.zentao.net
|
|
*/
|
|
namespace zin;
|
|
|
|
foreach($data as $dependPrivs)
|
|
{
|
|
checkboxGroup
|
|
(
|
|
set::title(array('text' => $dependPrivs['title'], 'id' => "dependPrivs[{$dependPrivs['id']}]", 'name' => 'dependPrivs[]', 'data-id' => $dependPrivs['id'], 'data-has-children' => !empty($dependPrivs['children']), 'disabled' => true, 'checked' => true)),
|
|
!empty($dependPrivs['children']) ? set::items($dependPrivs['children']) : null,
|
|
);
|
|
}
|