* @package my * @link https://www.zentao.net */ namespace zin; include 'header.html.php'; featureBar ( set::current($type), set::linkParams("mode=testtask&type={key}¶m=&orderBy={$orderBy}") ); foreach($config->my->testtask->dtable->fieldList['actions']['list'] as $actionKey => $action) { if(!isset($action['data-toggle']) && !isset($action['data-confirm'])) $config->my->testtask->dtable->fieldList['actions']['list'][$actionKey]['data-app'] = 'qa'; } $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::orderBy($orderBy), set::sortLink(createLink('my', $app->rawMethod, "mode={$mode}&type={$type}¶m={$param}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")), set::footer(array(array('html' => $footerHTML), 'flex', 'pager')), set::footPager(usePager()), set::emptyTip($lang->testtask->noTesttask) ); render();