browse.html.php 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * The browse view file of workflowrule 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 workflowrule
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. featurebar();
  12. hasPriv('workflowrule', 'create') ? toolbar
  13. (
  14. item(set(array('icon' => 'plus', 'class' => 'primary', 'data-toggle' => 'modal', 'text' => $lang->workflowrule->create, 'url' => inlink('create'))))
  15. ) : null;
  16. $cols = $config->workflowrule->dtable->fieldList;
  17. $rules = initTableData($rules, $cols, $this->workflowrule);
  18. dtable
  19. (
  20. set::cols($cols),
  21. set::data($rules),
  22. set::userMap($users),
  23. set::orderBy($orderBy),
  24. set::sortLink(inlink('browse', "orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")),
  25. set::footPager(usePager()),
  26. set::fixedLeftWidth('0.3')
  27. );
  28. render();