testtaskblock.html.php 975 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The testtask block 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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package block
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. if(!$longBlock)
  12. {
  13. unset($config->block->testtask->dtable->fieldList['id']);
  14. unset($config->block->testtask->dtable->fieldList['product']);
  15. unset($config->block->testtask->dtable->fieldList['build']);
  16. }
  17. blockPanel
  18. (
  19. setClass('list-block'),
  20. dtable
  21. (
  22. set::height(318),
  23. set::horzScrollbarPos('inside'),
  24. set::fixedLeftWidth($longBlock ? '0.33' : '0.5'),
  25. set::cols(array_values($config->block->testtask->dtable->fieldList)),
  26. set::data(array_values($testtasks))
  27. )
  28. );
  29. render();