releases.html.php 1.1 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * The releases 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. set::title($lang->api->releases);
  12. $releases = initTableData($releases, $config->api->dtable->release->fieldList, $this->api);
  13. $footerInfo = empty($releases) ? $lang->pager->noRecord : str_replace('{recTotal}', '' . count($releases), $lang->pager->totalCountAB);
  14. div(dtable
  15. (
  16. set::_className(''),
  17. set::cols(array_values($config->api->dtable->release->fieldList)),
  18. set::data(array_values($releases)),
  19. set::userMap($users),
  20. set::orderBy($orderBy),
  21. set::footer($footerInfo),
  22. set::loadPartial(),
  23. set::sortLink(inlink('releases', "libID={$libID}&orderBy={name}_{sortType}")),
  24. set::loadOptions(array('zui-command' => 'updateLazyContent'))
  25. ));