methodName == 'browse') echo " {$lang->testcase->bySearch}";?>
createLink('testcase', 'create', "productID=$productID&branch=$branch&moduleID=$initModule") : '#';
echo html::a($link, "" . $lang->testcase->create, '', $misc);
$misc = common::hasPriv('testcase', 'batchCreate') ? '' : "disabled";
$link = common::hasPriv('testcase', 'batchCreate') ? $this->createLink('testcase', 'batchCreate', "productID=$productID&branch=$branch&moduleID=$initModule") : '#';
?>
import ?>
-
" . html::a($link, $lang->testcase->batchCreate, '', "class='$misc'") . "";?>
-
createLink('testcase', 'import', "productID=$productID&branch=$branch") : '#';
echo "
- " . html::a($link, $lang->testcase->importFile, '', $misc) . " "; $misc = common::hasPriv('testcase', 'importFromLib') ? '' : "class=disabled"; $link = common::hasPriv('testcase', 'importFromLib') ? $this->createLink('testcase', 'importFromLib', "productID=$productID&branch=$branch") : '#'; echo "
- " . html::a($link, $lang->testcase->importFromLib, '', $misc) . " "; ?>
-
createLink('testcase', 'export', "productID=$productID&orderBy=$orderBy") : '#';
echo "
- " . html::a($link, $lang->testcase->export, '', $misc) . " "; $misc = common::hasPriv('testcase', 'exportTemplet') ? "class='export'" : "class=disabled"; $link = common::hasPriv('testcase', 'exportTemplet') ? $this->createLink('testcase', 'exportTemplet', "productID=$productID") : '#'; echo "
- " . html::a($link, $lang->testcase->exportTemplet, '', $misc) . " "; ?>
'>
lang->tree->all;
if(!empty($moduleID))
{
$removeLink = $browseType == 'bymodule' ? inlink('browse', "productID=$productID&branch=$branch&browseType=$browseType¶m=0&orderBy=$orderBy&recTotal=0&recPerPage={$pager->recPerPage}") : 'javascript:removeCookieByKey("caseModule")';
echo html::a($removeLink, "", '', "class='text-muted'");
}
?>
hidden) and $menuItem->name != 'QUERY') continue;
$menuType = $menuItem->name;
if(!$config->testcase->needReview and empty($config->testcase->forceReview) and $menuType == 'wait') continue;
if($this->config->global->flow == 'onlyTest' and (strpos(',needconfirm,group,zerocase,', ',' . $menuType . ',') !== false)) continue;
if($hasBrowsePriv and $menuType == 'QUERY')
{
if(isset($lang->custom->queryList))
{
echo '
';
$active = '';
$current = $menuItem->text;
$dropdownHtml = "
';
}
}
elseif($hasBrowsePriv and ($menuType == 'all' or $menuType == 'needconfirm' or $menuType == 'wait'))
{
echo html::a($this->createLink('testcase', 'browse', "productid=$productID&branch=$branch&browseType=$menuType"), "{$menuItem->text}", '', "class='btn btn-link' id='{$menuType}Tab'");
}
elseif($hasBrowsePriv and $menuType == 'suite')
{
$currentSuiteID = isset($suiteID) ? (int)$suiteID : 0;
$currentSuite = zget($suiteList, $currentSuiteID, '');
$currentLable = empty($currentSuite) ? $lang->testsuite->common : $currentSuite->name;
echo "- ";
foreach($lang->custom->queryList as $queryID => $queryTitle)
{
if($browseType == 'bysearch' and $queryID == $param)
{
$active = 'btn-active-text';
$current = "{$queryTitle} {$pager->recTotal}";
}
$dropdownHtml .= '
- '; $dropdownHtml .= html::a($this->inlink('browse', "productID=$productID&branch=$branch&browseType=bySearch¶m=$queryID"), $queryTitle); } $dropdownHtml .= '
";
echo html::a('javascript:;', $currentLable . " ", '', "class='btn btn-link' data-toggle='dropdown'");
echo "
';
}
elseif($hasGroupPriv and $menuType == 'group')
{
$groupBy = isset($groupBy) ? $groupBy : '';
$active = !empty($groupBy) ? 'btn-active-text' : '';
$current = zget($lang->testcase->groups, isset($groupBy) ? $groupBy : '', '');
if(empty($current)) $current = $lang->testcase->groups[''];
echo "- ";
if(empty($suiteList))
{
echo '
- '; echo html::a($this->createLink('testsuite', 'create', "productID=$productID"), "" . $lang->testsuite->create); echo ' '; } foreach($suiteList as $suiteID => $suite) { $suiteName = $suite->name; if($suite->type == 'public') $suiteName .= " {$lang->testsuite->authorList[$suite->type]}"; if($suite->type == 'private') $suiteName .= " {$lang->testsuite->authorList[$suite->type]}"; echo '
- '; echo html::a($this->createLink('testcase', 'browse', "productID=$productID&branch=$branch&browseType=bySuite¶m=$suiteID"), $suiteName); echo " "; } echo '
";
echo html::a('javascript:;', "{$current}" . " ", '', "class='btn btn-link {$active}' data-toggle='dropdown'");
echo "
';
}
elseif($hasZeroPriv and $menuType == 'zerocase')
{
echo html::a($this->createLink('story', 'zeroCase', "productID=$productID"), "{$lang->story->zeroCase}", '', "class='btn btn-link' id='zerocaseTab'");
}
?>
methodName == 'browse') echo " {$lang->testcase->bySearch}";
?>
- ";
foreach($lang->testcase->groups as $key => $value)
{
if($key == '') continue;
echo '
- '; echo html::a($this->createLink('testcase', 'groupCase', "productID=$productID&branch=$branch&groupBy=$key"), $value); echo " "; } echo '
-
createLink('testcase', 'export', "productID=$productID&orderBy=$orderBy") : '#';
echo "
- " . html::a($link, $lang->testcase->export, '', $misc) . " "; $misc = common::hasPriv('testcase', 'exportTemplet') ? "class='export'" : "class=disabled"; $link = common::hasPriv('testcase', 'exportTemplet') ? $this->createLink('testcase', 'exportTemplet', "productID=$productID") : '#'; echo "
- " . html::a($link, $lang->testcase->exportTemplet, '', $misc) . " "; ?>
-
createLink('testcase', 'import', "productID=$productID&branch=$branch") : '#';
echo "
- " . html::a($link, $lang->testcase->importFile, '', $misc) . " "; $misc = common::hasPriv('testcase', 'importFromLib') ? '' : "class=disabled"; $link = common::hasPriv('testcase', 'importFromLib') ? $this->createLink('testcase', 'importFromLib', "productID=$productID&branch=$branch") : '#'; echo "
- " . html::a($link, $lang->testcase->importFromLib, '', $misc) . " "; ?>