batchoperate.html.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * The batch operate view file of flow module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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 flow
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. include 'header.html.php';
  12. if($action->batchMode == 'different')
  13. {
  14. $items = $this->flowZen->buildBatchFormItems($fields, 'off');
  15. formBatchPanel
  16. (
  17. set::mode('edit'),
  18. set::title($title),
  19. set::url($actionURL),
  20. set::items($items),
  21. set::data(array_values($dataList))
  22. );
  23. }
  24. else
  25. {
  26. $fieldList = defineFieldList("{$flow->module}.batchOperate");
  27. $fieldList = $this->flow->buildFormFields($fieldList, $fields);
  28. $fieldList->field('dataIDList')->value(implode(',', $dataList))->hidden();
  29. formGridPanel
  30. (
  31. set::title($title),
  32. set::url($actionURL),
  33. set::defaultMode('full'),
  34. set::modeSwitcher(false),
  35. set::fields($fieldList)
  36. );
  37. }
  38. html($formulaScript);