struct.html.php 1009 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * The struct view file of api 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 Sun Guangming <sunguangming@easycorp.ltd>
  7. * @package my
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. $structs = initTableData($structs, $config->api->dtable->struct->fieldList, $this->api);
  12. $cols = array_values($config->api->dtable->struct->fieldList);
  13. $data = array_values($structs);
  14. div(dtable
  15. (
  16. set::_className(''),
  17. set::cols($cols),
  18. set::data($data),
  19. set::userMap($users),
  20. set::footPager(usePager()),
  21. set::loadPartial(),
  22. set::loadOptions(array('zui-command' => 'updateLazyContent', 'data-lazy-target' => '#table-api-struct')),
  23. set::sortLink(createLink('api', 'struct', "libID={$libID}&releaseID={$releaseID}&orderBy={name}_{sortType}"))
  24. ));