accessible.html.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * The accessible view file of personnel 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 Mengyi Liu <liumengyi@easycorp.ltd>
  7. * @package personnel
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $config->personnel->accessible->dtable->fieldList['dept']['map'] = $deptList;
  12. $cols = array_values($config->personnel->accessible->dtable->fieldList);
  13. $data = array_values($personnelList);
  14. dropmenu();
  15. featureBar
  16. (
  17. li(searchToggle(set::module('accessible'), set::open($browseType == 'bysearch')))
  18. );
  19. $closeLink = $this->createLink('personnel', 'accessible', "programID=$programID&deptID=0");
  20. sidebar
  21. (
  22. moduleMenu
  23. (
  24. set::modules($deptTree),
  25. set::activeKey($deptID),
  26. set::closeLink($closeLink),
  27. set::showDisplay(false)
  28. )
  29. );
  30. dtable
  31. (
  32. set::cols($cols),
  33. set::data($data),
  34. set::fixedLeftWidth('0.33'),
  35. set::onRenderCell(jsRaw('window.renderCell')),
  36. set::footPager(usePager())
  37. );
  38. render();