cases.html.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * The cases view file of deploy 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 Yang Li <liyang@easycorp.ltd>
  7. * @package deploy
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. include 'nav.html.php';
  12. $footToolbar = hasPriv('deploy', 'batchUnlinkCases') ? array('items' => array(array('text' => $lang->deploy->unlinkCase, 'className' => 'batch-btn ajax-btn', 'data-url' => createLink('deploy', 'batchUnlinkCases', "deployID={$deploy->id}")))) : null;
  13. $config->deploy->dtable->cases->fieldList['actions']['list']['unlinkCase']['url'] = array('module' => 'deploy', 'method' => 'unlinkCase', 'params' => "deploy={$deploy->id}&id={id}");
  14. $tableData = initTableData($cases, $config->deploy->dtable->cases->fieldList);
  15. panel
  16. (
  17. div
  18. (
  19. set::id('deployMenu'),
  20. setClass('mb-2'),
  21. $headers,
  22. hasPriv('deploy', 'linkCases') ? btn(set(array
  23. (
  24. 'type' => 'primary pull-right z-10 deploy manage-btn',
  25. 'text' => $lang->deploy->linkCases,
  26. 'url' => createLink('deploy', 'linkCases', "deployID={$deploy->id}")
  27. ))) : null
  28. ),
  29. dtable
  30. (
  31. set::cols($config->deploy->dtable->cases->fieldList),
  32. set::data($tableData),
  33. set::checkable('true'),
  34. set::footToolbar($footToolbar)
  35. )
  36. );