Merge branch '15.0.beta3' of http://gitlab.zcorp.cc/easycorp/zentaopms into 15.0.beta3
This commit is contained in:
@@ -124,8 +124,8 @@ class bug extends control
|
||||
$moduleID = ($browseType == 'bymodule') ? (int)$param : (($browseType == 'bysearch' or $browseType == 'bybranch') ? 0 : ($this->cookie->bugModule ? $this->cookie->bugModule : 0));
|
||||
$queryID = ($browseType == 'bysearch') ? (int)$param : 0;
|
||||
|
||||
/* Set menu and save session. */
|
||||
$this->session->set('bugList', $this->app->getURI(true));
|
||||
/* Set session. */
|
||||
$this->session->set('bugList', $this->app->getURI(true), 'qa');
|
||||
|
||||
/* Set moduleTree. */
|
||||
if($browseType == '')
|
||||
|
||||
@@ -195,7 +195,8 @@ class caselib extends control
|
||||
if(empty($libraries)) $this->locate(inlink('create'));
|
||||
|
||||
/* Save session. */
|
||||
$this->session->set('caseList', $this->app->getURI(true));
|
||||
$this->session->set('caseList', $this->app->getURI(true), 'qa');
|
||||
$this->session->set('caselibList', $this->app->getURI(true), 'qa');
|
||||
|
||||
/* Set menu. */
|
||||
$libID = $this->caselib->saveLibState($libID, $libraries);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div id='mainMenu' class='clearfix'>
|
||||
<div class='btn-toolbar pull-left'>
|
||||
<?php $browseLink = $this->session->caseList ? $this->session->caseList : $this->createLink('caselib', 'browse', "libID=$lib->id");?>
|
||||
<?php $browseLink = $this->session->caselibList ? $this->session->caselibList : $this->createLink('caselib', 'browse', "libID=$lib->id");?>
|
||||
<?php common::printBack($browseLink, 'btn btn-secondary');?>
|
||||
<div class='divider'></div>
|
||||
<div class='page-title'>
|
||||
|
||||
@@ -301,9 +301,9 @@ $lang->execution->dividerMenu = ',story,build,settings,';
|
||||
$lang->qa->menu = new stdclass();
|
||||
$lang->qa->menu->index = array('link' => "$lang->dashboard|qa|index");
|
||||
$lang->qa->menu->bug = array('link' => "{$lang->bug->common}|bug|browse|productID=%s", 'alias' => 'view,create,batchcreate,edit,resolve,close,activate,report,batchedit,batchactivate,confirmbug,assignto');
|
||||
$lang->qa->menu->testcase = array('link' => "{$lang->testcase->shortCommon}|testcase|browse|productID=%s", 'subModule' => 'testtask,testsuite,caselib', 'class' => 'dropdown dropdown-hover', 'exclude' => 'testtask-browse');
|
||||
$lang->qa->menu->testtask = array('link' => "{$lang->testtask->common}|testtask|browse|productID=%s", 'subModule' => 'testreport', 'alias' => 'view,create,edit,linkcase,cases,start,close,batchrun,groupcase,report,importunitresult', 'class' => 'dropdown dropdown-hover', 'exclude' => 'testtask-browseunits');
|
||||
$lang->qa->menu->automation = array('link' => "{$lang->automation->common}|automation|browse|productID=%s", 'alias' => '', 'class' => 'dropdown dropdown-hover');
|
||||
$lang->qa->menu->testcase = array('link' => "{$lang->testcase->shortCommon}|testcase|browse|productID=%s", 'subModule' => 'testsuite,caselib');
|
||||
$lang->qa->menu->testtask = array('link' => "{$lang->testtask->common}|testtask|browse|productID=%s", 'subModule' => 'testreport', 'alias' => 'view,edit,linkcase,cases,start,close,batchrun,groupcase,report,importunitresult');
|
||||
$lang->qa->menu->automation = array('link' => "{$lang->automation->common}|automation|browse|productID=%s", 'alias' => '');
|
||||
|
||||
/* QA menu order. */
|
||||
$lang->qa->menuOrder[5] = 'product';
|
||||
@@ -316,13 +316,13 @@ $lang->qa->menuOrder[35] = 'testsuite';
|
||||
$lang->qa->menuOrder[40] = 'caselib';
|
||||
|
||||
$lang->qa->menu->testcase['subMenu'] = new stdclass();
|
||||
$lang->qa->menu->testcase['subMenu']->case = array('link' => "{$lang->testcase->case}|testcase|browse|productID=%s", 'subModule' => 'testcase,tree,story');
|
||||
$lang->qa->menu->testcase['subMenu']->case = array('link' => "{$lang->testcase->case}|testcase|browse|productID=%s", 'subModule' => 'testcase,story');
|
||||
$lang->qa->menu->testcase['subMenu']->caselib = array('link' => "{$lang->testcase->caselib}|caselib|browse|libID=0", 'subModule' => 'caselib');
|
||||
$lang->qa->menu->testcase['subMenu']->testsuite = array('link' => "{$lang->testcase->testsuite}|testsuite|browse|productID=%s", 'subModule' => 'testsuite');
|
||||
$lang->qa->menu->testcase['subMenu']->caselib = array('link' => "{$lang->testcase->caselib}|caselib|browse|libID=0");
|
||||
|
||||
$lang->qa->menu->testtask['subMenu'] = new stdclass();
|
||||
$lang->qa->menu->testtask['subMenu']->testtask = array('link' => "{$lang->testtask->common}|testtask|browse|productID=%s", 'alias' => 'view,create,edit,linkcase,cases,start,close,batchrun,groupcase,report,importunitresult');
|
||||
$lang->qa->menu->testtask['subMenu']->report = array('link' => "{$lang->testreport->common}|testreport|browse|productID=%s", 'alias' => 'view,create,edit');
|
||||
$lang->qa->menu->testtask['subMenu']->testtask = array('link' => "{$lang->testtask->common}|testtask|browse|productID=%s", 'subModule' => 'testtask', 'alias' => 'linkcase,cases,start,close,batchrun,groupcase,report,importunitresult');
|
||||
$lang->qa->menu->testtask['subMenu']->report = array('link' => "{$lang->testreport->common}|testreport|browse|productID=%s", 'subModule' => 'testreport');
|
||||
|
||||
$lang->qa->menu->automation['subMenu'] = new stdclass();
|
||||
$lang->qa->menu->automation['subMenu']->browse = array('link' => "{$lang->intro}|automation|browse|productID=%s", 'alias' => '');
|
||||
|
||||
@@ -158,8 +158,8 @@ class product extends control
|
||||
if($this->app->rawModule == 'product')
|
||||
{
|
||||
/* Save session. */
|
||||
$this->session->set('storyList', $this->app->getURI(true));
|
||||
$this->session->set('productList', $this->app->getURI(true));
|
||||
$this->session->set('storyList', $this->app->getURI(true), 'product');
|
||||
$this->session->set('productList', $this->app->getURI(true), 'product');
|
||||
|
||||
$this->lang->product->switcherMenu = $this->product->getSwitcher($productID, "storyType=$storyType", $branch);
|
||||
}
|
||||
@@ -656,7 +656,7 @@ class product extends control
|
||||
{
|
||||
$this->product->delete(TABLE_PRODUCT, $productID);
|
||||
$this->dao->update(TABLE_DOCLIB)->set('deleted')->eq(1)->where('product')->eq($productID)->exec();
|
||||
$this->session->set('product', ''); // 清除session。
|
||||
$this->session->set('product', '');
|
||||
$this->executeHooks($productID);
|
||||
die(js::locate($this->createLink('product', 'browse'), 'parent'));
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ class productModel extends model
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getProductPairsByProject($projectID, $status = 'all')
|
||||
public function getProductPairsByProject($projectID = 0, $status = 'all')
|
||||
{
|
||||
$products = empty($projectID) ? $this->getList() : $this->getProducts($projectID, $status);
|
||||
$pairs = array();
|
||||
|
||||
@@ -519,7 +519,7 @@ class story extends control
|
||||
|
||||
/* Set menu. */
|
||||
$this->lang->product->switcherMenu = $this->product->getSwitcher($product->id);
|
||||
$this->product->setMenu($products, $product->id, $story->branch);
|
||||
$this->product->setMenu($product->id, $story->branch);
|
||||
|
||||
$this->story->replaceURLang($story->type);
|
||||
|
||||
@@ -628,7 +628,7 @@ class story extends control
|
||||
/* The stories of a product. */
|
||||
if($productID)
|
||||
{
|
||||
$this->product->setMenu($this->product->getPairs('nodeleted'), $productID, $branch);
|
||||
$this->product->setMenu($productID, $branch);
|
||||
$product = $this->product->getByID($productID);
|
||||
$branchProduct = $product->type == 'normal' ? false : true;
|
||||
|
||||
@@ -960,7 +960,7 @@ class story extends control
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->product->setMenu($this->product->getPairs(), $product->id, $story->branch);
|
||||
$this->product->setMenu($product->id, $story->branch);
|
||||
}
|
||||
|
||||
/* Set the review result options. */
|
||||
@@ -1046,7 +1046,7 @@ class story extends control
|
||||
$this->story->replaceURLang($story->type);
|
||||
|
||||
/* Set menu. */
|
||||
$this->product->setMenu($this->product->getPairs(), $product->id, $story->branch);
|
||||
$this->product->setMenu($product->id, $story->branch);
|
||||
|
||||
/* Set the closed reason options and remove subdivided options. */
|
||||
if($story->status == 'draft') unset($this->lang->story->reasonList['cancel']);
|
||||
@@ -1454,16 +1454,13 @@ class story extends control
|
||||
*/
|
||||
public function zeroCase($productID, $orderBy = 'id_desc', $from = 'project')
|
||||
{
|
||||
$this->session->set('productList', $this->app->getURI(true));
|
||||
$this->session->set('storyList', $this->app->getURI(true), 'product');
|
||||
$products = $this->product->getPairs();
|
||||
|
||||
if($from == 'qa')
|
||||
{
|
||||
$this->loadModel('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
}
|
||||
|
||||
$this->loadModel('testcase')->setMenu($products, $productID);
|
||||
$this->loadModel('testcase');
|
||||
$this->app->rawModule = 'testcase';
|
||||
$this->loadModel('qa')->setMenu($products, $productID);
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
|
||||
/* Append id for secend sort. */
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<?php
|
||||
echo html::hidden('lastEditedDate', $story->lastEditedDate);
|
||||
echo html::submitButton();
|
||||
echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"), 'self', '', 'btn btn-wide');
|
||||
echo html::a($app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"), $lang->goback, '', 'class="btn btn-wide"');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<tr>
|
||||
<td colspan='3' class='text-center form-actions'>
|
||||
<?php echo html::submitButton();?>
|
||||
<?php echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"), 'self', '', 'btn btn-wide');?>
|
||||
<?php echo html::a($app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"), $lang->goback, '', 'class="btn btn-wide"');?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<?php
|
||||
echo html::hidden('lastEditedDate', $story->lastEditedDate);
|
||||
echo html::submitButton($lang->save);
|
||||
echo html::backButton();
|
||||
echo html::a($app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"), $lang->goback, '', 'class="btn btn-wide"');
|
||||
?>
|
||||
</div>
|
||||
<hr class='small' />
|
||||
|
||||
@@ -68,10 +68,12 @@
|
||||
<td class='c-actions'>
|
||||
<?php
|
||||
$vars = "storyID={$story->id}";
|
||||
common::printIcon('story', 'change', $vars, $story, 'list', 'fork');
|
||||
common::printIcon('story', 'review', $vars, $story, 'list', 'glasses');
|
||||
common::printIcon('story', 'close', $vars, $story, 'list', 'off');
|
||||
common::printIcon('story', 'edit', $vars, $story, 'list', 'pencil');
|
||||
$this->app->openApp = 'product';
|
||||
common::printIcon('story', 'change', $vars, $story, 'list', 'fork');
|
||||
common::printIcon('story', 'review', $vars, $story, 'list', 'glasses');
|
||||
common::printIcon('story', 'close', $vars, $story, 'list', 'off');
|
||||
common::printIcon('story', 'edit', $vars, $story, 'list', 'pencil');
|
||||
$this->app->openApp = 'qa';
|
||||
common::printIcon('story', 'createCase', "productID=$story->product&branch=0&module=0&from=¶m=0&$vars", $story, 'list', 'sitemap');
|
||||
?>
|
||||
</td>
|
||||
|
||||
@@ -569,7 +569,6 @@ class testcase extends control
|
||||
{
|
||||
$libraries = $this->loadModel('caselib')->getLibraries();
|
||||
$this->caselib->setLibMenu($libraries, $case->lib);
|
||||
$this->lang->testcase->menu = $this->lang->caselib->menu;
|
||||
|
||||
$this->view->title = "CASE #$case->id $case->title - " . $libraries[$case->lib];
|
||||
$this->view->position[] = html::a($this->createLink('caselib', 'browse', "libID=$case->lib"), $libraries[$case->lib]);
|
||||
@@ -676,7 +675,6 @@ class testcase extends control
|
||||
{
|
||||
$libraries = $this->loadModel('caselib')->getLibraries();
|
||||
$this->caselib->setLibMenu($libraries, $case->lib);
|
||||
$this->lang->testcase->menu = $this->lang->caselib->menu;
|
||||
|
||||
$title = "CASE #$case->id $case->title - " . $libraries[$case->lib];
|
||||
$position[] = html::a($this->createLink('caselib', 'browse', "libID=$case->lib"), $libraries[$case->lib]);
|
||||
|
||||
@@ -128,7 +128,7 @@ js::set('suiteID', $suiteID);
|
||||
if(common::hasPriv('testcase', 'batchReview') and ($config->testcase->needReview or !empty($config->testcase->forceReview)))
|
||||
{
|
||||
echo "<li class='dropdown-submenu'>";
|
||||
echo html::a('javascript:;', "<span class='text'>{$lang->testcase->review}</span>", '', "id='reviewItem'");
|
||||
echo html::a('javascript:;', $lang->testcase->review, '', "id='reviewItem'");
|
||||
echo "<ul class='dropdown-menu'>";
|
||||
unset($lang->testcase->reviewResultList['']);
|
||||
foreach($lang->testcase->reviewResultList as $key => $result)
|
||||
|
||||
@@ -66,7 +66,7 @@ class testreport extends control
|
||||
public function browse($objectID = 0, $objectType = 'product', $extra = '', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
if($objectType != 'product' and $objectType != 'execution') die('Type Error!');
|
||||
$this->session->set('reportList', $this->app->getURI(true));
|
||||
$this->session->set('reportList', $this->app->getURI(true), 'qa');
|
||||
|
||||
$objectID = $this->commonAction($objectID, $objectType);
|
||||
$object = $this->$objectType->getById($objectID);
|
||||
|
||||
@@ -31,13 +31,8 @@ class testsuite extends control
|
||||
{
|
||||
parent::__construct($moduleName, $methodName);
|
||||
|
||||
/* Set testtask menu group. */
|
||||
$this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0;
|
||||
if(!$this->projectID)
|
||||
{
|
||||
$this->app->loadConfig('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
}
|
||||
$this->app->loadConfig('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,9 +63,9 @@ class testsuite extends control
|
||||
$this->session->set('testsuiteList', $this->app->getURI(true));
|
||||
|
||||
/* Set menu. */
|
||||
$projectID = $this->lang->navGroup->testreport == 'qa' ? 0 : $this->session->project;
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getProductPairsByProject($projectID);
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getPairs();
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', 'fromModule=testsuite&moduleGroup=' . $this->lang->navGroup->bug . '&activeMenu=testsuite')));
|
||||
|
||||
$productID = $this->product->saveState($productID, $this->products);
|
||||
$this->loadModel('qa')->setMenu($this->products, $productID);
|
||||
|
||||
@@ -135,7 +130,7 @@ class testsuite extends control
|
||||
}
|
||||
|
||||
/* Set menu. */
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getProductPairsByProject($this->session->project);
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getPairs();
|
||||
$productID = $this->product->saveState($productID, $this->products);
|
||||
$this->loadModel('qa')->setMenu($this->products, $productID);
|
||||
|
||||
@@ -162,13 +157,15 @@ class testsuite extends control
|
||||
public function view($suiteID, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
$this->app->loadLang('testtask');
|
||||
|
||||
/* Get test suite, and set menu. */
|
||||
$suite = $this->testsuite->getById($suiteID, true);
|
||||
if(!$suite) die(js::error($this->lang->notFound) . js::locate('back'));
|
||||
if($suite->type == 'private' and $suite->addedBy != $this->app->user->account and !$this->app->user->admin) die(js::error($this->lang->error->accessDenied) . js::locate('back'));
|
||||
$productID = $suite->product;
|
||||
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getProductPairsByProject($this->session->project);
|
||||
/* Set product session. */
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getPairs();
|
||||
$productID = $this->product->saveState($suite->product, $this->products);
|
||||
$this->loadModel('qa')->setMenu($this->products, $productID);
|
||||
|
||||
/* Save session. */
|
||||
@@ -183,8 +180,8 @@ class testsuite extends control
|
||||
|
||||
$this->executeHooks($suiteID);
|
||||
|
||||
$this->view->title = "SUITE #$suite->id $suite->name/" . $this->products[$productID];
|
||||
$this->view->position[] = html::a($this->createLink('testsuite', 'browse', "productID=$productID"), $this->products[$productID]);
|
||||
$this->view->title = "SUITE #$suite->id $suite->name";
|
||||
$this->view->position[] = html::a($this->createLink('testsuite', 'browse', "productID=$productID"));
|
||||
$this->view->position[] = $this->lang->testsuite->common;
|
||||
$this->view->position[] = $this->lang->testsuite->view;
|
||||
|
||||
@@ -237,15 +234,12 @@ class testsuite extends control
|
||||
|
||||
if($suite->type == 'private' and $suite->addedBy != $this->app->user->account and !$this->app->user->admin) die(js::error($this->lang->error->accessDenied) . js::locate('back'));
|
||||
|
||||
/* Get suite info. */
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getProductPairsByProject($this->session->project);
|
||||
/* Set product session. */
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getPairs();
|
||||
$productID = $this->product->saveState($suite->product, $this->products);
|
||||
|
||||
/* Set menu. */
|
||||
$this->testsuite->setMenu($this->products, $productID);
|
||||
|
||||
$this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->testsuite->edit;
|
||||
$this->view->position[] = html::a($this->createLink('testsuite', 'browse', "productID=$productID"), $this->products[$productID]);
|
||||
$this->view->position[] = html::a($this->createLink('testsuite', 'browse', "productID=$productID"));
|
||||
$this->view->position[] = $this->lang->testsuite->common;
|
||||
$this->view->position[] = $this->lang->testsuite->edit;
|
||||
|
||||
@@ -308,23 +302,21 @@ class testsuite extends control
|
||||
*/
|
||||
public function linkCase($suiteID, $param = 0, $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
/* Save session. */
|
||||
$this->session->set('caseList', $this->app->getURI(true));
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$this->testsuite->linkCase($suiteID);
|
||||
$this->locate(inlink('view', "suiteID=$suiteID"));
|
||||
}
|
||||
|
||||
/* Save session. */
|
||||
$this->session->set('caseList', $this->app->getURI(true));
|
||||
$suite = $this->testsuite->getById($suiteID);
|
||||
|
||||
/* Get suite and product id. */
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getProductPairsByProject($this->session->project);
|
||||
$suite = $this->testsuite->getById($suiteID);
|
||||
/* Set product session. */
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getPairs();
|
||||
$productID = $this->product->saveState($suite->product, $this->products);
|
||||
|
||||
/* Save session. */
|
||||
$this->testsuite->setMenu($this->products, $productID);
|
||||
|
||||
/* Load pager. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
$pager = pager::init($recTotal, $recPerPage, $pageID);
|
||||
@@ -343,7 +335,7 @@ class testsuite extends control
|
||||
$this->loadModel('search')->setSearchParams($this->config->testcase->search);
|
||||
|
||||
$this->view->title = $suite->name . $this->lang->colon . $this->lang->testsuite->linkCase;
|
||||
$this->view->position[] = html::a($this->createLink('testsuite', 'browse', "productID=$productID"), $this->products[$productID]);
|
||||
$this->view->position[] = html::a($this->createLink('testsuite', 'browse', "productID=$productID"));
|
||||
$this->view->position[] = $this->lang->testsuite->common;
|
||||
$this->view->position[] = $this->lang->testsuite->linkCase;
|
||||
|
||||
|
||||
@@ -76,8 +76,8 @@ class testtask extends control
|
||||
public function browse($productID = 0, $branch = '', $type = 'local,totalStatus', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1, $beginTime = 0, $endTime = 0)
|
||||
{
|
||||
/* Save session. */
|
||||
$this->session->set('testtaskList', $this->app->getURI(true));
|
||||
$this->session->set('buildList', $this->app->getURI(true));
|
||||
$this->session->set('testtaskList', $this->app->getURI(true), 'qa');
|
||||
$this->session->set('buildList', $this->app->getURI(true), 'execution');
|
||||
|
||||
$scopeAndStatus = explode(',', $type);
|
||||
$this->session->set('testTaskVersionScope', $scopeAndStatus[0]);
|
||||
@@ -1211,7 +1211,9 @@ class testtask extends control
|
||||
die(js::locate($this->createLink('testtask', 'unitCases', "taskID=$taskID"), 'parent'));
|
||||
}
|
||||
|
||||
/* Set menu. */
|
||||
$this->loadModel('qa')->setMenu($this->products, $productID);
|
||||
$this->app->rawModule = 'testcase';
|
||||
|
||||
$this->app->loadLang('job');
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ $status = $this->session->testTaskVersionStatus;
|
||||
<td class='c-name' title="<?php echo $task->name?>"><?php echo html::a(inlink('cases', "taskID=$task->id"), $task->name);?></td>
|
||||
<td class='c-name' title="<?php echo $task->productName?>"><?php echo $task->productName?></td>
|
||||
<td class='c-name' title="<?php echo $task->executionName?>"><?php echo $task->executionName?></td>
|
||||
<td class='c-name'><?php echo ($task->build == 'trunk' || empty($task->buildName)) ? $lang->trunk : html::a($this->createLink('build', 'view', "buildID=$task->build"), $task->buildName, '', "data-group={$lang->navGroup->testtask}");?></td>
|
||||
<td class='c-name'><?php echo ($task->build == 'trunk' || empty($task->buildName)) ? $lang->trunk : html::a($this->createLink('build', 'view', "buildID=$task->build"), $task->buildName, '', "data-group=execution");?></td>
|
||||
<td title="<?php echo zget($users, $task->owner);?>"><?php echo zget($users, $task->owner);?></td>
|
||||
<td><?php echo $task->begin?></td>
|
||||
<td><?php echo $task->end?></td>
|
||||
|
||||
@@ -99,4 +99,10 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
$('#subNavbar li[data-id="case"]').addClass('active');
|
||||
})
|
||||
</script>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
+9
-49
@@ -95,23 +95,9 @@ class tree extends control
|
||||
}
|
||||
elseif($viewType == 'bug')
|
||||
{
|
||||
$this->lang->navGroup->tree = 'qa';
|
||||
$productPairs = array();
|
||||
if($from == 'project')
|
||||
{
|
||||
$this->lang->navGroup->tree = 'project';
|
||||
$productPairs = $this->product->getProductPairsByProject($this->session->project);
|
||||
}
|
||||
elseif($from == 'qa')
|
||||
{
|
||||
$this->app->loadConfig('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
$productPairs = $this->product->getPairs();
|
||||
}
|
||||
|
||||
$this->loadModel('bug')->setMenu($productPairs, $rootID);
|
||||
$this->lang->tree->menu = $this->lang->bug->menu;
|
||||
$this->lang->tree->menuOrder = $this->lang->bug->menuOrder;
|
||||
$this->app->loadConfig('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
$this->app->rawModule = 'bug';
|
||||
|
||||
$title = $this->lang->tree->manageBug;
|
||||
$position[] = html::a($this->createLink('bug', 'browse', "product=$rootID"), $product->name);
|
||||
@@ -130,25 +116,9 @@ class tree extends control
|
||||
}
|
||||
elseif($viewType == 'case')
|
||||
{
|
||||
$this->lang->navGroup->tree = 'qa';
|
||||
|
||||
$productPairs = array();
|
||||
if($from == 'project')
|
||||
{
|
||||
$this->lang->navGroup->tree = 'project';
|
||||
$productPairs = $this->product->getProductPairsByProject($this->session->project);
|
||||
}
|
||||
elseif($from == 'qa')
|
||||
{
|
||||
$this->lang->navGroup->tree = 'qa';
|
||||
$this->app->loadConfig('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
$productPairs = $this->product->getPairs();
|
||||
}
|
||||
|
||||
$this->loadModel('testcase')->setMenu($productPairs, $rootID);
|
||||
$this->lang->tree->menu = $this->lang->testcase->menu;
|
||||
$this->lang->tree->menuOrder = $this->lang->testcase->menuOrder;
|
||||
$this->app->loadConfig('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
$this->app->rawModule = 'testcase';
|
||||
|
||||
$title = $this->lang->tree->manageCase;
|
||||
$position[] = html::a($this->createLink('testcase', 'browse', "product=$rootID"), $product->name);
|
||||
@@ -156,21 +126,11 @@ class tree extends control
|
||||
}
|
||||
elseif($viewType == 'caselib')
|
||||
{
|
||||
$this->lang->navGroup->tree = 'qa';
|
||||
if($from == 'project')
|
||||
{
|
||||
$this->lang->navGroup->tree = 'project';
|
||||
}
|
||||
elseif($from == 'qa')
|
||||
{
|
||||
$this->lang->navGroup->tree = 'qa';
|
||||
$this->app->loadConfig('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
}
|
||||
$this->app->loadConfig('qa');
|
||||
foreach($this->config->qa->menuList as $module) $this->lang->navGroup->$module = 'qa';
|
||||
|
||||
$this->caselib->setLibMenu($this->caselib->getLibraries(), $rootID);
|
||||
$this->lang->tree->menu = $this->lang->caselib->menu;
|
||||
$this->lang->tree->menuOrder = $this->lang->caselib->menuOrder;
|
||||
$this->app->rawModule = 'caselib';
|
||||
|
||||
$title = $this->lang->tree->manageCaseLib;
|
||||
$position[] = html::a($this->createLink('caselib', 'browse', "libID=$rootID"), $lib->name);
|
||||
|
||||
Reference in New Issue
Block a user