Files
EasySoft-ZenTaoPMS/module/system/ui/dblist.html.php
2025-02-14 17:17:02 +08:00

25 lines
930 B
PHP

<?php
declare(strict_types=1);
/**
* The dblist view file of system 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 Zeng Gang<zenggang@easycorp.ltd>
* @package system
* @link https://www.zentao.net
*/
namespace zin;
include 'sidebar.html.php';
$config->system->dtable->dbList->fieldList['actions']['list']['dblist']['url'] = 'javascript:manageDb("{name}", "{db_type}", "{namespace}")';
$dbList = initTableData($dbList, $config->system->dtable->dbList->fieldList);
foreach($dbList as $db) $db->status = empty($db->ready) ? 'error' : 'normal';
dtable
(
set::cols($config->system->dtable->dbList->fieldList),
set::data($dbList),
set::onRenderCell(jsRaw('window.renderDbList'))
);