* @package my * @link https://www.zentao.net */ namespace zin; jsVar('unexecuted', $lang->testcase->unexecuted); featureBar ( set::current($type), set::linkParams("mode=testcase&type={key}¶m={$param}"), li(searchToggle(set::module('testcase'))) ); $canBatchEdit = common::hasPriv('testcase', 'batchEdit'); $footToolbar = array('items' => array ( $canBatchEdit ? array('text' => $lang->edit, 'className' => 'batch-btn', 'data-url' => helper::createLink('testcase', 'batchEdit', 'productID=0&branch=all&type=case&tab=my')) : null ), 'btnProps' => array('size' => 'sm', 'btnType' => 'secondary')); if($type == 'openedbyme') { unset($config->my->testcase->dtable->fieldList['testtask']); unset($config->my->testcase->dtable->fieldList['openedBy']); } if($type == 'assigntome') $config->my->testcase->dtable->fieldList['title']['link']['params'] .= "&from=testtask&taskID={task}"; $cases = initTableData($cases, $config->my->testcase->dtable->fieldList, $this->testcase); $data = array_values($cases); $defaultSummary = sprintf($lang->testcase->failSummary, count($cases), $failCount); dtable ( set::data($data), set::cols($config->my->testcase->dtable->fieldList), set::userMap($users), set::fixedLeftWidth('50%'), set::checkable(true), set::defaultSummary(array('html' => $defaultSummary)), set::checkedSummary($lang->testcase->failCheckedSummary), set::checkInfo(jsRaw('function(checkedIDList){return window.setStatistics(this, checkedIDList);}')), set::footToolbar($footToolbar), set::footPager(usePager()), ); render();