taskblock.html.php 1001 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The task 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 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->task->dtable->fieldList['deadline']);
  14. unset($config->block->task->dtable->fieldList['estimate']);
  15. unset($config->block->task->dtable->fieldList['left']);
  16. unset($config->block->task->dtable->fieldList['progress']);
  17. }
  18. blockPanel
  19. (
  20. setClass('list-block'),
  21. dtable
  22. (
  23. set::height(318),
  24. set::bordered(false),
  25. set::horzScrollbarPos('inside'),
  26. set::cols(array_values($config->block->task->dtable->fieldList)),
  27. set::data(array_values($tasks))
  28. )
  29. );
  30. render();