tree->manage, '', "class='btn btn-info btn-wide'");?>
product->getById($productID);
$removeLink = $browseType == 'byproduct' ? inlink('task', "executionID=$executionID&browseType=$status¶m=0&orderBy=$orderBy&recTotal=0&recPerPage={$pager->recPerPage}") : 'javascript:removeCookieByKey("productBrowseParam")';
echo $product->name;
echo html::a($removeLink, "", '', "class='text-muted'");
}
elseif(!empty($moduleID))
{
$module = $this->tree->getById($moduleID);
$removeLink = $browseType == 'bymodule' ? inlink('task', "executionID=$executionID&browseType=$status¶m=0&orderBy=$orderBy&recTotal=0&recPerPage={$pager->recPerPage}") : 'javascript:removeCookieByKey("moduleBrowseParam")';
echo $module->name;
echo html::a($removeLink, "", '', "class='text-muted'");
}
else
{
$this->app->loadLang('tree');
echo $this->lang->tree->all;
}
?>
type == 'ops' && $menuItem->name == 'needconfirm') continue;
if(isset($menuItem->hidden)) continue;
$menuType = $menuItem->name;
if($menuType == 'QUERY')
{
$searchBrowseLink = $this->createLink('execution', 'task', "execution=$executionID&type=bySearch¶m=%s");
$isBySearch = $this->session->taskBrowseType == 'bysearch';
include '../../common/view/querymenu.html.php';
}
elseif($menuType != 'status' and $menuType != 'QUERY')
{
$label = "{$menuItem->text}";
$label .= $menuType == $this->session->taskBrowseType ? " {$pager->recTotal}" : '';
$active = $menuType == $this->session->taskBrowseType ? 'btn-active-text' : '';
$title = $menuType == 'needconfirm' ? "title='{$lang->task->storyChange}'" : '';
echo html::a(inlink('task', "execution=$executionID&type=$menuType"), $label, '', "id='{$menuType}' class='btn btn-link $active' $title");
}
elseif($menuType == 'status')
{
echo "
";
$taskBrowseType = isset($status) ? $this->session->taskBrowseType : '';
$current = $menuItem->text;
$active = '';
if(isset($lang->execution->statusSelects[$taskBrowseType]))
{
$current = "{$lang->execution->statusSelects[$taskBrowseType]} {$pager->recTotal}";
$active = 'btn-active-text';
}
echo html::a('javascript:;', $current . " ", '', "data-toggle='dropdown' class='btn btn-link $active'");
echo "
';
}
}
?>
product->searchStory;?>
- ";
foreach($lang->execution->statusSelects as $key => $value)
{
if($key == '') continue;
echo '
- '; echo html::a($this->createLink('execution', 'task', "execution=$executionID&type=$key"), $value); } echo '
-
createLink('task', 'export', "execution=$executionID&orderBy=$orderBy&type=$browseType") : '#';
echo "
- " . html::a($link, $lang->task->export, '', $misc) . " "; ?>
-
createLink('execution', 'importTask', "execution=$execution->id") : '#';
echo "
- " . html::a($link, $lang->execution->importTask, '', $misc) . " "; $class = common::hasPriv('execution', 'importBug') ? '' : "class=disabled"; $misc = common::hasPriv('execution', 'importBug') ? "class='import'" : "class=disabled"; $link = common::hasPriv('execution', 'importBug') ? $this->createLink('execution', 'importBug', "execution=$execution->id") : '#'; echo "
- " . html::a($link, $lang->execution->importBug, '', $misc) . " "; ?>
createLink('task', 'create', "executionID=$executionID");
echo html::a($actionLink, " {$lang->task->create}", '', "class='btn btn-primary'");
?>
";
$link = $this->createLink('task', 'create', "execution=$executionID" . (isset($moduleID) ? "&storyID=0&moduleID=$moduleID" : ""));
if($canBeChanged and common::hasPriv('task', 'create', $checkObject)) echo html::a($link, " {$lang->task->create} ", '', "class='btn btn-primary'");
?>
- task->create);?>
- createLink('task', 'batchCreate', "executionID=$executionID"), $lang->task->batchCreate);?>
- > createLink('task', 'batchCreate', "execution=$executionID" . (isset($moduleID) ? "&storyID=&moduleID=$moduleID" : '')); echo "
- " . html::a($batchLink, " " . $lang->task->batchCreate) . " "; ?>