bugassign.html.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * The bug assign view file of pivot 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 Gang Liu <liugang@easycorp.ltd>
  7. * @package pivot
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $cols = $config->pivot->dtable->bugAssign->fieldList;
  12. $cols['assignedTo']['map'] = $users;
  13. $data = new stdclass();
  14. $data->cols = $this->pivot->processDTableCols($cols);
  15. $data->array = $this->pivot->processDTableData(array_keys($cols), $bugs);
  16. $generateData = function() use ($lang, $title, $cols, $data, $bugs)
  17. {
  18. return panel
  19. (
  20. setID('pivotPanel'),
  21. set::title($title),
  22. set::shadow(false),
  23. set::headingClass('h-14'),
  24. set::bodyClass('pt-0'),
  25. dtable
  26. (
  27. set::striped(true),
  28. set::bordered(true),
  29. set::cols($cols),
  30. set::data($bugs),
  31. set::emptyTip($lang->error->noData),
  32. set::height(jsRaw('getHeight')),
  33. set::plugins(array('cellspan')),
  34. set::getCellSpan(jsRaw('getCellSpan')),
  35. set::cellSpanOptions(array('assignedTo' => array(), 'total' => array()))
  36. ),
  37. div(setID('exportData'), setClass('hidden'), rawContent(), html($this->pivot->buildPivotTable($data, array())))
  38. );
  39. };