* @package project * @link https://www.zentao.net */ namespace zin; featureBar ( set::current('all'), set::linkParams("projectID={$projectID}") ); toolbar ( common::canModify('project', $project) && common::hasPriv('testtask', 'create') ? btn ( setClass('btn primary'), set::icon('plus'), set::url(helper::createLink('testtask', 'create', "product=0&executionID=0&build=0&projectID={$projectID}")), $lang->testtask->create ) : null ); unset($config->testtask->dtable->fieldList['product']); unset($config->testtask->dtable->fieldList['execution']); $tasks = initTableData($tasks, $config->testtask->dtable->fieldList, $this->testtask); $cols = array_values($config->testtask->dtable->fieldList); $data = array_values($tasks); $footerHTML = sprintf($lang->testtask->allSummary, count($tasks), $waitCount, $testingCount, $blockedCount, $doneCount); dtable ( set::cols($cols), set::data($data), set::userMap($users), set::fixedLeftWidth('20%'), set::footer(array(array('html' => $footerHTML), 'flex', 'pager')), set::footPager(usePager()), ); render();