releaseblock.html.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * The release 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. jsVar('markerTitle', $lang->release->marker);
  12. if(!$longBlock)
  13. {
  14. unset($config->block->release->dtable->fieldList['id']);
  15. unset($config->block->release->dtable->fieldList['productName']);
  16. unset($config->block->release->dtable->fieldList['build']);
  17. }
  18. else
  19. {
  20. $this->config->block->release->dtable->fieldList['build']['map'] = $builds;
  21. }
  22. blockPanel
  23. (
  24. setClass('list-block'),
  25. dtable
  26. (
  27. set::height(318),
  28. set::fixedLeftWidth($longBlock ? '0.33' : '0.5'),
  29. set::onRenderCell(jsRaw('window.onRenderReleaseNameCell')),
  30. set::cols(array_values($config->block->release->dtable->fieldList)),
  31. set::data(array_values($releases))
  32. )
  33. );
  34. render();