browse.html.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * The browse view file of workflowdatasource 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 workflowdatasource
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. featurebar();
  12. hasPriv('workflowdatasource', 'create') ? toolbar
  13. (
  14. item(set(array('icon' => 'plus', 'class' => 'primary', 'data-toggle' => 'modal', 'text' => $lang->workflowdatasource->create, 'url' => inlink('create'))))
  15. ) : null;
  16. $cols = $config->workflowdatasource->dtable->fieldList;
  17. $datasources = initTableData($datasources, $cols, $this->workflowdatasource);
  18. dtable
  19. (
  20. set::cols($cols),
  21. set::data($datasources),
  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::onRenderCell(jsRaw('onRenderCell')),
  26. set::footPager(usePager()),
  27. set::fixedLeftWidth('0.3')
  28. );
  29. render();