Files
EasySoft-ZenTaoPMS/module/my/ui/testtask.html.php
T

33 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
/**
* The testtask view file of my module of ZenTaoPMS.
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Yuting Wang <wangyuting@easycorp.ltd>
* @package my
* @link https://www.zentao.net
*/
namespace zin;
featureBar
(
set::current($type),
set::linkParams("mode=testtask&type={key}&param={$param}")
);
$tasks = initTableData($tasks, $config->my->testtask->dtable->fieldList, $this->testtask);
$cols = array_values($config->my->testtask->dtable->fieldList);
$data = array_values($tasks);
$footerHTML = $app->rawMethod == 'work' ? sprintf($lang->testtask->mySummary, count($tasks), $waitCount, $testingCount, $blockedCount) : sprintf($lang->testtask->pageSummary, count($tasks));
dtable
(
set::cols($cols),
set::data($data),
set::fixedLeftWidth('20%'),
set::footer(array(array('html' => $footerHTML), 'flex', 'pager')),
set::footPager(usePager()),
);
render();