managescope.html.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * The managescope view file of doc 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 Xie Qiyu<xieqiyu@chandao.com>
  7. * @package doc
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. modalHeader(set::title($lang->doc->manageScope), set::titleClass('text-lg font-bold'));
  12. $scopeItems = array();
  13. $scopeItems[] = array('name' => 'scopes');
  14. $scopeItems[] = array('name' => 'id', 'class' => 'hidden');
  15. $dataItems = array();
  16. foreach($scopeList as $scopeID => $scope)
  17. {
  18. $item = new stdClass();
  19. $item->id = $scopeID;
  20. $item->scopes = $scope->name;
  21. $item->main = $scope->main;
  22. $dataItems[] = $item;
  23. }
  24. $batchFormOptions = array();
  25. $batchFormOptions['onClickAction'] = jsRaw('window.handleClickBatchFormAction'); // 定义操作列按钮点击事件处理函数。
  26. $batchFormOptions['onRenderRow'] = jsRaw('window.handleRenderRow'); // 定义行渲染事件处理函数。
  27. formBatchPanel
  28. (
  29. set::items($scopeItems),
  30. set::data($dataItems),
  31. set::minRows(6),
  32. set::actionsText(''),
  33. set::batchFormOptions($batchFormOptions)
  34. );