nodelist.html.php 1004 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * The nodelist view file of zanode 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 zanode
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $fieldList = $config->zanode->dtable->fieldList;
  12. unset($fieldList['actions']);
  13. unset($fieldList['id']);
  14. unset($fieldList['type']);
  15. unset($fieldList['extranet']);
  16. unset($fieldList['hostName']);
  17. $fieldList['name']['sort'] = true;
  18. $fieldList['cpuCores']['sort'] = true;
  19. $fieldList['memory']['sort'] = true;
  20. $fieldList['diskSize']['sort'] = true;
  21. $fieldList['osName']['sort'] = true;
  22. $fieldList['status']['sort'] = true;
  23. $nodeList = initTableData($nodeList, $fieldList);
  24. to::header('');
  25. dtable
  26. (
  27. set::cols($fieldList),
  28. set::data($nodeList)
  29. );
  30. render();