browseimage.html.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * The browseimage view file of zahost 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 Zeng Gang<zenggang@easycorp.ltd>
  7. * @package zahost
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. jsVar('hostID', $hostID);
  12. foreach($imageList as $image) $image->hostID = $hostID;
  13. $imageList = initTableData($imageList, $config->zahost->imageDtable->fieldList, $this->zahost);
  14. foreach($imageList as &$image)
  15. {
  16. foreach($image->actions as &$action) $action['disabled'] = false;
  17. }
  18. modalHeader(set::title($lang->zahost->image->browseImage));
  19. dtable
  20. (
  21. set::cols($config->zahost->imageDtable->fieldList),
  22. set::data($imageList),
  23. set::sortLink(createLink('zahost', 'browseImage', "hostID={$hostID}&browseType={$browseType}&param={$param}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")),
  24. set::footPager(usePager()),
  25. set::orderBy($orderBy)
  26. );