* @package testcase * @link https://www.zentao.net */ namespace zin; jsVar('allTestcases', $lang->testcase->allTestcases); include 'header.html.php'; $cols = $config->testcase->group->dtable->fieldList; if(!empty($cols['actions']['list'])) { $executionID = ($app->tab == 'project' || $app->tab == 'execution') ? $this->session->{$app->tab} : '0'; foreach($cols['actions']['list'] as $method => $methodParams) { if(!isset($methodParams['url'])) continue; $cols['actions']['list'][$method]['url'] = str_replace('%executionID%', (string)$executionID, $methodParams['url']); } } foreach($cols as $colName => $col) $cols[$colName]['sortType'] = false; $cases = initTableData(array_values($cases), $cols); dtable ( setID('groupCaseTable'), set::cols($cols), set::data($cases), set::userMap($users), set::plugins(array('cellspan')), set::onRenderCell(jsRaw('window.onRenderCell')), set::getCellSpan(jsRaw('window.getCellSpan')) ); render();