bugblock.html.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * The bugblock view file of block 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 Tingting Dai <daitingting@easycorp.ltd>
  7. * @package block
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. if(!$longBlock)
  12. {
  13. unset($config->block->bug->dtable->fieldList['id']);
  14. unset($config->block->bug->dtable->fieldList['confirmed']);
  15. unset($config->block->bug->dtable->fieldList['deadline']);
  16. }
  17. blockPanel
  18. (
  19. setClass('bug-block list-block'),
  20. dtable
  21. (
  22. setID('bug-list'),
  23. set::height(318),
  24. set::bordered(false),
  25. set::horzScrollbarPos('inside'),
  26. set::fixedLeftWidth('50%'),
  27. set::priList($lang->bug->priList),
  28. set::severityList($lang->bug->severityList),
  29. set::cols(array_values($config->block->bug->dtable->fieldList)),
  30. set::data(array_values($bugs))
  31. )
  32. );
  33. render();