bugs.html.php 888 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * The bugs view file of testcase 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 Yuting Wang <wangyuting@easycorp.ltd>
  7. * @package testcase
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. set::title($lang->testcase->bugs);
  12. $linkParams = '';
  13. foreach($app->rawParams as $key => $value) $linkParams = $key != 'orderBy' ? "{$linkParams}&{$key}={$value}" : "{$linkParams}&orderBy={name}_{sortType}";
  14. dtable
  15. (
  16. set::cols($config->testcase->bug->dtable->fieldList),
  17. set::data(array_values($bugs)),
  18. set::userMap($users),
  19. set::orderBy($orderBy),
  20. set::sortLink(createLink($app->rawModule, $app->rawMethod, $linkParams))
  21. );
  22. render();