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)) continue;
$menuType = $menuItem->name;
if(!$config->testcase->needReview and empty($config->testcase->forceReview) and $menuType == 'wait') continue;
if($config->global->flow == 'onlyTest' and (strpos(',needconfirm,group,zerocase,', ',' . $menuType . ',') !== false)) continue;
if($hasBrowsePriv and $menuType == 'QUERY')
{
$searchBrowseLink = inlink('browse', "productID=$productID&branch=$branch&browseType=bySearch¶m=%s");
$isBySearch = $browseType == 'bysearch';
include '../../common/view/querymenu.html.php';
}
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 "
";
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' : '';
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($this->createLink('testcase', 'groupCase', "productID=$productID&branch=$branch&groupBy=story"), "{$lang->testcase->groupByStories}", '', "class='btn btn-link $active'");
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}";
?>
-
createLink('testcase', 'export', "productID=$productID&orderBy=$orderBy&taskID=0&browseType=$browseType") : '#';
echo "
- " . html::a($link, $lang->testcase->export, '', $misc) . " "; $class = common::hasPriv('testcase', 'exportTemplet') ? '' : "class=disabled"; $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) . " "; $class = common::hasPriv('testcase', 'importFromLib') ? '' : "class=disabled"; $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) . " "; ?>