dblist.html.php 905 B

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