browse.html.php 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The browse view file of researchplan 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 Yidong Wang<yidong@chandao.net>
  7. * @package researchplan
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. featureBar
  12. (
  13. set::linkParams("projectID=$projectID"),
  14. li(searchToggle(set::module('researchplan'), set::open(strtolower($browseType) == 'bysearch')))
  15. );
  16. if(hasPriv('researchplan', 'create')) $createItem = array('icon' => 'plus', 'class' => 'primary', 'text' => $lang->researchplan->create, 'url' => $this->createLink('researchplan', 'create', "projectID={$projectID}"));
  17. toolbar
  18. (
  19. !empty($createItem) ? item(set($createItem)) : null
  20. );
  21. $tableData = initTableData($planList, $config->researchplan->dtable->fieldList, $this->researchplan);
  22. dtable
  23. (
  24. set::cols($config->researchplan->dtable->fieldList),
  25. set::data($tableData),
  26. set::orderBy($orderBy),
  27. set::sortLink(createLink('researchplan', 'browse', "projectID={$projectID}&browseType={$browseType}&param=0&orderBy={name}_{sortType}"))
  28. );