+ add methods of testcase to pri list.

This commit is contained in:
wangchunsheng
2009-11-13 08:20:42 +00:00
parent 07288dd7cf
commit f35df8ef4a
7 changed files with 174 additions and 167 deletions

View File

@@ -109,6 +109,12 @@ $lang->resource->bug->activate= 'activate';
$lang->resource->bug->close = 'close';
$lang->resource->bug->ajaxGetUserBugs = 'ajaxGetUserBugs';
$lang->resource->testcase->index = 'index';
$lang->resource->testcase->browse = 'browse';
$lang->resource->testcase->create = 'create';
$lang->resource->testcase->view = 'view';
$lang->resource->testcase->edit = 'edit';
$lang->resource->admin->index = 'index';
$lang->resource->admin->browseCompany = 'browseCompany';
$lang->resource->admin->browseUser = 'browseUser';

View File

@@ -53,12 +53,12 @@ class testcase extends control
$currentModuleID = ($type == 'byModule') ? (int)$param : 0;
if($currentModuleID == 0)
{
$currentModuleName = $this->lang->case->allCases;
$currentModuleName = $this->lang->testcase->allCases;
}
else
{
$currentModule = $this->tree->getById($currentModuleID);
$currentModuleName = sprintf($this->lang->case->moduleCases, $currentModule->name);
$currentModuleName = sprintf($this->lang->testcase->moduleCases, $currentModule->name);
}
if($type == "byModule")
@@ -69,9 +69,9 @@ class testcase extends control
$cases = $this->testcase->getModuleCases($productID, $childModuleIds, $orderBy, $pager);
}
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->case->common;
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->common;
$position[] = html::a($this->createLink('testcase', 'browse', "productID=$productID"), $this->products[$productID]);
$position[] = $this->lang->case->common;
$position[] = $this->lang->testcase->common;
$this->assign('header', $header);
$this->assign('position', $position);
@@ -105,9 +105,9 @@ class testcase extends control
$productID = common::saveProductState($productID, key($this->products));
$currentModuleID = (int)$moduleID;
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->case->create;
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->create;
$position[] = html::a($this->createLink('testcase', 'browse', "productID=$productID"), $this->products[$productID]);
$position[] = $this->lang->case->create;
$position[] = $this->lang->testcase->create;
$users = $this->user->getPairs($this->app->company->id);
$this->assign('header', $header);
@@ -128,9 +128,9 @@ class testcase extends control
$this->loadModel('action');
$case = $this->testcase->getById($caseID);
$productID = $case->product;
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->case->view;
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->view;
$position[] = html::a($this->createLink('testcase', 'browse', "productID=$productID"), $this->products[$productID]);
$position[] = $this->lang->case->view;
$position[] = $this->lang->testcase->view;
$users = $this->user->getPairs($this->app->company->id, 'noletter');
$actions = $this->action->getList('case', $caseID);
@@ -169,9 +169,9 @@ class testcase extends control
$case = $this->testcase->getById($caseID);
$productID = $case->product;
$currentModuleID = $case->module;
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->case->edit;
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->testcase->edit;
$position[] = html::a($this->createLink('testcase', 'browse', "productID=$productID"), $this->products[$productID]);
$position[] = $this->lang->case->edit;
$position[] = $this->lang->testcase->edit;
$users = $this->user->getPairs($this->app->company->id);
$this->assign('header', $header);

View File

@@ -1,6 +1,6 @@
<?php
/**
* The testcase module zh-cn file of ZenTaoMS.
* The testtestcase module zh-cn file of ZenTaoMS.
*
* ZenTaoMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -17,106 +17,107 @@
*
* @copyright Copyright: 2009 Chunsheng Wang
* @author Chunsheng Wang <wwccss@263.net>
* @package testcase
* @package testtestcase
* @version $Id$
* @link http://www.zentao.cn
*/
$lang->case->common = '用例管理';
$lang->case->index = "用例管理首页";
$lang->case->create = "创建用例";
$lang->case->delete = "删除用例";
$lang->case->view = "用例详情";
$lang->case->edit = "编辑用例";
$lang->testcase->common = '用例管理';
$lang->testcase->index = "用例管理首页";
$lang->testcase->create = "创建用例";
$lang->testcase->delete = "删除用例";
$lang->testcase->view = "用例详情";
$lang->testcase->edit = "编辑用例";
$lang->testcase->browse = "用例列表";
$lang->case->selectProduct = '请选择产品';
$lang->case->byModule = '按模块';
$lang->case->assignToMe = '指派给我';
$lang->case->openedByMe = '由我创建';
$lang->case->allCases = '所有Case';
$lang->case->moduleCases = '%s';
$lang->testcase->selectProduct = '请选择产品';
$lang->testcase->byModule = '按模块';
$lang->testcase->assignToMe = '指派给我';
$lang->testcase->openedByMe = '由我创建';
$lang->testcase->allCases = '所有Case';
$lang->testcase->moduleCases = '%s';
$lang->case->labProductAndModule = '产品模块';
$lang->case->labTypeAndPri = '类型&优先级';
$lang->case->labSystemBrowserAndHardware = '系统::浏览器';
$lang->case->labAssignAndMail = '指派给::抄送给';
$lang->case->labStory = '相关需求';
$lang->testcase->labProductAndModule = '产品模块';
$lang->testcase->labTypeAndPri = '类型&优先级';
$lang->testcase->labSystemBrowserAndHardware = '系统::浏览器';
$lang->testcase->labAssignAndMail = '指派给::抄送给';
$lang->testcase->labStory = '相关需求';
$lang->case->legendRelated = '相关信息';
$lang->case->legendBasicInfo = '基本信息';
$lang->case->legendMailto = '抄送给';
$lang->case->legendAttatch = '附件';
$lang->case->legendLinkBugs = '相关Bug';
$lang->case->legendOpenInfo = '创建信息';
$lang->case->legendLastInfo = '最后编辑';
$lang->case->legendStoryAndTask= '需求::任务';
$lang->case->legendCases = '相关用例';
$lang->case->legendSteps = '用例步骤';
$lang->case->legendAction = '操作';
$lang->case->legendHistory = '历史记录';
$lang->case->legendComment = '备注';
$lang->testcase->legendRelated = '相关信息';
$lang->testcase->legendBasicInfo = '基本信息';
$lang->testcase->legendMailto = '抄送给';
$lang->testcase->legendAttatch = '附件';
$lang->testcase->legendLinkBugs = '相关Bug';
$lang->testcase->legendOpenInfo = '创建信息';
$lang->testcase->legendLastInfo = '最后编辑';
$lang->testcase->legendStoryAndTask= '需求::任务';
$lang->testcase->legendCases = '相关用例';
$lang->testcase->legendSteps = '用例步骤';
$lang->testcase->legendAction = '操作';
$lang->testcase->legendHistory = '历史记录';
$lang->testcase->legendComment = '备注';
$lang->case->buttonEdit = '编辑';
$lang->case->buttonActivate = '激活';
$lang->case->buttonResolve = '解决';
$lang->case->buttonClose = '关闭';
$lang->case->buttonToList = '返回列表';
$lang->testcase->buttonEdit = '编辑';
$lang->testcase->buttonActivate = '激活';
$lang->testcase->buttonResolve = '解决';
$lang->testcase->buttonClose = '关闭';
$lang->testcase->buttonToList = '返回列表';
$lang->case->priList[3] = 3;
$lang->case->priList[1] = 1;
$lang->case->priList[2] = 2;
$lang->case->priList[4] = 4;
$lang->testcase->priList[3] = 3;
$lang->testcase->priList[1] = 1;
$lang->testcase->priList[2] = 2;
$lang->testcase->priList[4] = 4;
/* Define the OS list. */
$lang->case->osList->all = '全部';
$lang->case->osList->winxp = 'Windows XP';
$lang->case->osList->win2000 = 'Windows 2000';
$lang->case->osList->winnt = 'Windows NT';
$lang->case->osList->win98 = 'Windows 98';
$lang->case->osList->linux = 'Linux';
$lang->case->osList->unix = 'Unix';
$lang->case->osList->others = '其他';
$lang->testcase->osList->all = '全部';
$lang->testcase->osList->winxp = 'Windows XP';
$lang->testcase->osList->win2000 = 'Windows 2000';
$lang->testcase->osList->winnt = 'Windows NT';
$lang->testcase->osList->win98 = 'Windows 98';
$lang->testcase->osList->linux = 'Linux';
$lang->testcase->osList->unix = 'Unix';
$lang->testcase->osList->others = '其他';
/* Define the OS list. */
$lang->case->browserList->all = '全部';
$lang->case->browserList->ie6 = 'IE6';
$lang->case->browserList->ie7 = 'IE7';
$lang->case->browserList->ie8 = 'IE8';
$lang->case->browserList->firefox2 = 'firefox2';
$lang->case->browserList->firefx3 = 'firefox3';
$lang->case->browserList->opera9 = 'opera9';
$lang->case->browserList->oprea10 = '其他';
$lang->testcase->browserList->all = '全部';
$lang->testcase->browserList->ie6 = 'IE6';
$lang->testcase->browserList->ie7 = 'IE7';
$lang->testcase->browserList->ie8 = 'IE8';
$lang->testcase->browserList->firefox2 = 'firefox2';
$lang->testcase->browserList->firefx3 = 'firefox3';
$lang->testcase->browserList->opera9 = 'opera9';
$lang->testcase->browserList->oprea10 = '其他';
/* Define the types. */
$lang->case->typeList['feature'] = '功能测试';
$lang->case->typeList['performance'] = '性能测试';
$lang->testcase->typeList['feature'] = '功能测试';
$lang->testcase->typeList['performance'] = '性能测试';
$lang->case->statusList['normal'] = '正常';
$lang->case->statusList['blocked'] = 'Blocked';
$lang->testcase->statusList['normal'] = '正常';
$lang->testcase->statusList['blocked'] = 'Blocked';
$lang->case->resolutionList->bydesign = 'By Design';
$lang->case->resolutionList->duplicate = 'Duplicate';
$lang->case->resolutionList->external = 'External';
$lang->case->resolutionList->fixed = 'Fixed';
$lang->case->resolutionList->notrepro = 'Not Repro';
$lang->case->resolutionList->postponed = 'Postponed';
$lang->case->resolutionList->willnotfix = "Won not Fix";
$lang->testcase->resolutionList->bydesign = 'By Design';
$lang->testcase->resolutionList->duplicate = 'Duplicate';
$lang->testcase->resolutionList->external = 'External';
$lang->testcase->resolutionList->fixed = 'Fixed';
$lang->testcase->resolutionList->notrepro = 'Not Repro';
$lang->testcase->resolutionList->postponed = 'Postponed';
$lang->testcase->resolutionList->willnotfix = "Won not Fix";
$lang->case->id = '用例编号';
$lang->case->product = '所属产品';
$lang->case->module = '所属模块';
$lang->case->story = '相关需求';
$lang->case->title = '用例标题';
$lang->case->pri = '优 先 级';
$lang->case->type = '用例类型';
$lang->case->status = '用例状态';
$lang->case->steps = '用例步骤';
$lang->case->frequency = '执行频率';
$lang->case->order = '排序';
$lang->case->openedBy = '由谁创建 ';
$lang->case->openedDate = '创建日期';
$lang->case->lastEditedBy = '最后修改者';
$lang->case->lastEditedDate = '最后修改日期';
$lang->case->field1 = '字段一';
$lang->case->field2 = '字段二';
$lang->case->feidl3 = '字段三';
$lang->case->version = '用例版本';
$lang->testcase->id = '用例编号';
$lang->testcase->product = '所属产品';
$lang->testcase->module = '所属模块';
$lang->testcase->story = '相关需求';
$lang->testcase->title = '用例标题';
$lang->testcase->pri = '优 先 级';
$lang->testcase->type = '用例类型';
$lang->testcase->status = '用例状态';
$lang->testcase->steps = '用例步骤';
$lang->testcase->frequency = '执行频率';
$lang->testcase->order = '排序';
$lang->testcase->openedBy = '由谁创建 ';
$lang->testcase->openedDate = '创建日期';
$lang->testcase->lastEditedBy = '最后修改者';
$lang->testcase->lastEditedDate = '最后修改日期';
$lang->testcase->field1 = '字段一';
$lang->testcase->field2 = '字段二';
$lang->testcase->feidl3 = '字段三';
$lang->testcase->version = '用例版本';

View File

@@ -35,14 +35,14 @@ function selectProduct(productID)
<div class="yui-b">
<table class='table-1'>
<caption>
<?php echo $lang->case->selectProduct;?>
<?php echo $lang->testcase->selectProduct;?>
<?php echo html::select('productID', $products, $productID, 'onchange="selectProduct(this.value);" style="width:200px"');?>
</caption>
<tr>
<td>
<div id='main'><?php echo $moduleTree;?></div>
<div class='a-right'>
<?php echo html::a($this->createLink('testcase', 'browse', "productId=$productID"), $lang->case->allCases);?>
<?php echo html::a($this->createLink('testcase', 'browse', "productId=$productID"), $lang->testcase->allCases);?>
<?php echo html::a($this->createLink('tree', 'browse', "productID=$productID&view=case"), $lang->tree->manageCase);?>
</div>
</td>
@@ -56,12 +56,12 @@ function selectProduct(productID)
<?php
echo "<li><nobr>$productName</nobr></li>";
echo "<li id='byModuleTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=byModule&param=$currentModuleID"), $currentModuleName) . "</nobr></li>";
//echo "<li id='assignToMeTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=assignToMe"), $lang->case->assignToMe) . "</nobr></li>";
//echo "<li id='openedByMeTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=openedByMe"), $lang->case->openedByMe) . "</nobr></li>";
//echo "<li id='resolvedByMeTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=resolvedByMe"), $lang->case->resolvedByMe) . "</nobr></li>";
//echo "<li id='assignToNullTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=assignToNull"), $lang->case->assignToNull) . "</nobr></li>";
//echo "<li id='longLifeBugsTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=longLifeBugs"), $lang->case->longLifeBugs) . "</nobr></li>";
//echo "<li id='postponedBugsTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=postponedBugs"), $lang->case->postponedBugs) . "</nobr></li>";
//echo "<li id='assignToMeTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=assignToMe"), $lang->testcase->assignToMe) . "</nobr></li>";
//echo "<li id='openedByMeTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=openedByMe"), $lang->testcase->openedByMe) . "</nobr></li>";
//echo "<li id='resolvedByMeTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=resolvedByMe"), $lang->testcase->resolvedByMe) . "</nobr></li>";
//echo "<li id='assignToNullTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=assignToNull"), $lang->testcase->assignToNull) . "</nobr></li>";
//echo "<li id='longLifeBugsTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=longLifeBugs"), $lang->testcase->longLifeBugs) . "</nobr></li>";
//echo "<li id='postponedBugsTab'><nobr>" . html::a($this->createLink('testcase', 'browse', "productid=$productID&type=postponedBugs"), $lang->testcase->postponedBugs) . "</nobr></li>";
echo <<<EOT
<script language="Javascript">
$("#{$type}Tab").addClass('active');
@@ -70,27 +70,27 @@ EOT;
?>
</ul>
<div>
<?php if(common::hasPriv('testcase', 'create')) echo html::a($this->createLink('testcase', 'create', "productID=$productID&moduleID=$currentModuleID"), $lang->case->create);?>
<?php if(common::hasPriv('testcase', 'create')) echo html::a($this->createLink('testcase', 'create', "productID=$productID&moduleID=$currentModuleID"), $lang->testcase->create);?>
</div>
</div>
<table class='table-1'>
<tr class='colhead'>
<th><?php echo $lang->case->id;?></th>
<th><?php echo $lang->case->pri;?></th>
<th><?php echo $lang->case->title;?></th>
<th><?php echo $lang->case->type;?></th>
<th><?php echo $lang->case->openedBy;?></th>
<th><?php echo $lang->case->status;?></th>
<th><?php echo $lang->testcase->id;?></th>
<th><?php echo $lang->testcase->pri;?></th>
<th><?php echo $lang->testcase->title;?></th>
<th><?php echo $lang->testcase->type;?></th>
<th><?php echo $lang->testcase->openedBy;?></th>
<th><?php echo $lang->testcase->status;?></th>
</tr>
<?php foreach($cases as $case):?>
<tr class='a-center'>
<td><?php echo html::a($this->createLink('testcase', 'view', "testcaseID=$case->id"), sprintf('%03d', $case->id));?></td>
<td><?php echo $case->pri?></td>
<td width='50%' class='a-left'><?php echo $case->title;?></td>
<td><?php echo $lang->case->typeList[$case->type];?></td>
<td><?php echo $lang->testcase->typeList[$case->type];?></td>
<td><?php echo $users[$case->openedBy];?></td>
<td><?php echo $lang->case->statusList[$case->status];?></td>
<td><?php echo $lang->testcase->statusList[$case->status];?></td>
</tr>
<?php endforeach;?>
</table>

View File

@@ -50,31 +50,31 @@ function loadStory(productID)
<div class='yui-doc3'>
<form method='post' target='hiddenwin'>
<table align='center' class='table-1'>
<caption><?php echo $lang->case->create;?></caption>
<caption><?php echo $lang->testcase->create;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->case->labProductAndModule;?></th>
<th class='rowhead'><?php echo $lang->testcase->labProductAndModule;?></th>
<td class='a-left'>
<?php echo html::select('product', $products, $productID, "onchange=loadAll(this.value); class='select-2'");?>
<span id='moduleIdBox'><?php echo html::select('module', $moduleOptionMenu, $currentModuleID);?></span>
</td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->case->labStory;?></th>
<th class='rowhead'><?php echo $lang->testcase->labStory;?></th>
<td class='a-left'><span id='storyIdBox'><?php echo html::select('story', $stories, '', 'class=select-3');?></span></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->case->title;?></th>
<th class='rowhead'><?php echo $lang->testcase->title;?></th>
<td class='a-left'><input type='text' name='title' class='text-1' /></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->case->steps;?></th>
<th class='rowhead'><?php echo $lang->testcase->steps;?></th>
<td class='a-left'><textarea name='steps' class='area-1' rows='8'></textarea></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->case->labTypeAndPri;?></th>
<th class='rowhead'><?php echo $lang->testcase->labTypeAndPri;?></th>
<td class='a-left'>
<?php echo html::select('type', (array)$lang->case->typeList, '', 'class=select-2');?>
<?php echo html::select('pri', (array)$lang->case->priList, '', 'class=select-2');?>
<?php echo html::select('type', (array)$lang->testcase->typeList, '', 'class=select-2');?>
<?php echo html::select('pri', (array)$lang->testcase->priList, '', 'class=select-2');?>
</td>
</tr>
<tr>

View File

@@ -65,29 +65,29 @@ function loadStory(productID)
<div class='yui-u first'>
<fieldset>
<legend><?php echo $lang->case->legendBasicInfo;?></legend>
<legend><?php echo $lang->testcase->legendBasicInfo;?></legend>
<table class='table-1 a-left' cellpadding='0' cellspacing='0'>
<tr>
<td class='rowhead'><?php echo $lang->case->labProductAndModule;?></td>
<td class='rowhead'><?php echo $lang->testcase->labProductAndModule;?></td>
<td>
<?php echo html::select('product', $products, $productID, "onchange=loadAll(this.value); class='select-2'");?>
<span id='moduleIdBox'><?php echo html::select('module', $moduleOptionMenu, $currentModuleID);?></span>
</td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->type;?></td>
<td><?php echo html::select('type', (array)$lang->case->typeList, $case->type, 'class=select-2');?>
<td class='rowhead'><?php echo $lang->testcase->type;?></td>
<td><?php echo html::select('type', (array)$lang->testcase->typeList, $case->type, 'class=select-2');?>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->pri;?></td>
<td><?php echo html::select('pri', (array)$lang->case->priList, $case->pri, 'class=select-2');?>
<td class='rowhead'><?php echo $lang->testcase->pri;?></td>
<td><?php echo html::select('pri', (array)$lang->testcase->priList, $case->pri, 'class=select-2');?>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->status;?></td>
<td><?php echo html::select('status', (array)$lang->case->statusList, $case->status, 'class=select-2');?></td>
<td class='rowhead'><?php echo $lang->testcase->status;?></td>
<td><?php echo html::select('status', (array)$lang->testcase->statusList, $case->status, 'class=select-2');?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->story;?></td>
<td class='rowhead'><?php echo $lang->testcase->story;?></td>
<td class='a-left'><span id='storyIdBox'><?php echo html::select('story', $stories, $case->story, 'class=select-3');?></span></td>
</tr>
</table>
@@ -95,12 +95,12 @@ function loadStory(productID)
<!--
<fieldset>
<legend><?php echo $lang->case->legendMailto;?></legend>
<legend><?php echo $lang->testcase->legendMailto;?></legend>
<div>mailto</div>
</fieldset>
<fieldset>
<legend><?php echo $lang->case->legendAttatch;?></legend>
<legend><?php echo $lang->testcase->legendAttatch;?></legend>
<div>attatch</div>
</fieldset>
-->
@@ -109,35 +109,35 @@ function loadStory(productID)
<div class='yui-u'>
<fieldset>
<legend><?php echo $lang->case->legendOpenInfo;?></legend>
<legend><?php echo $lang->testcase->legendOpenInfo;?></legend>
<table class='table-1 a-left'>
<tr>
<td width='40%' class='rowhead'><?php echo $lang->case->openedBy;?></td>
<td width='40%' class='rowhead'><?php echo $lang->testcase->openedBy;?></td>
<td><?php echo $case->openedBy;?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->openedDate;?></td>
<td class='rowhead'><?php echo $lang->testcase->openedDate;?></td>
<td><?php echo $case->openedDate;?></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo $lang->case->legendLastInfo;?></legend>
<legend><?php echo $lang->testcase->legendLastInfo;?></legend>
<table class='table-1 a-left'>
<tr>
<td class='rowhead'><?php echo $lang->case->lastEditedBy;?></td>
<td class='rowhead'><?php echo $lang->testcase->lastEditedBy;?></td>
<td><?php echo $case->lastEditedBy;?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->lastEditedDate;?></td>
<td class='rowhead'><?php echo $lang->testcase->lastEditedDate;?></td>
<td><?php echo $case->lastEditedDate;?></td>
</tr>
</table>
</fieldset>
<!--
<fieldset>
<legend><?php echo $lang->case->legendLinkBugs;?></legend>
<legend><?php echo $lang->testcase->legendLinkBugs;?></legend>
<div> linkcase </div>
</fieldset>
-->
@@ -148,22 +148,22 @@ function loadStory(productID)
<div class='yui-d0'>
<fieldset>
<legend><?php echo $lang->case->legendSteps;?></legend>
<legend><?php echo $lang->testcase->legendSteps;?></legend>
<div class='a-center'>
<textarea name='steps' rows='5' class='area-1'><?php echo $case->steps;?></textarea>
</div>
</fieldset>
<fieldset>
<legend><?php echo $lang->case->legendComment;?></legend>
<legend><?php echo $lang->testcase->legendComment;?></legend>
<div class='a-center'>
<textarea name='comment' rows='4' class='area-1'></textarea></td>
</div>
</fieldset>
<fieldset>
<legend><?php echo $lang->case->legendAction;?></legend>
<legend><?php echo $lang->testcase->legendAction;?></legend>
<div class='a-center'>
<?php echo html::submitButton();?>
<input type='button' value='<?php echo $lang->case->buttonToList;?>' class='button-s'
<input type='button' value='<?php echo $lang->testcase->buttonToList;?>' class='button-s'
onclick='location.href="<?php echo $this->createLink('testcase', 'browse', "productID=$productID");?>"' />
</div>
</fieldset>

View File

@@ -29,8 +29,8 @@
CASE #<?php echo $case->id . $lang->colon . $case->title;?>
<div class='f-right'>
<?php
if(common::hasPriv('testcase', 'edit')) echo html::a($this->createLink('testcase', 'edit', "caseID=$case->id"), $lang->case->buttonEdit);
if(common::hasPriv('testcase', 'browse')) echo html::a($this->createLink('testcase', 'browse', "productID=$case->product"), $lang->case->buttonToList);
if(common::hasPriv('testcase', 'edit')) echo html::a($this->createLink('testcase', 'edit', "caseID=$case->id"), $lang->testcase->buttonEdit);
if(common::hasPriv('testcase', 'browse')) echo html::a($this->createLink('testcase', 'browse', "productID=$case->product"), $lang->testcase->buttonToList);
?>
</div>
</div>
@@ -41,10 +41,10 @@
<div class='yui-u first'>
<fieldset>
<legend><?php echo $lang->case->legendBasicInfo;?></legend>
<legend><?php echo $lang->testcase->legendBasicInfo;?></legend>
<table class='table-1 a-left' cellpadding='0' cellspacing='0'>
<tr>
<td class='rowhead'><?php echo $lang->case->labProductAndModule;?></td>
<td class='rowhead'><?php echo $lang->testcase->labProductAndModule;?></td>
<td>
<?php
echo $productName;
@@ -58,19 +58,19 @@
</td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->type;?></td>
<td><?php echo $lang->case->typeList[$case->type];?></td>
<td class='rowhead'><?php echo $lang->testcase->type;?></td>
<td><?php echo $lang->testcase->typeList[$case->type];?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->pri;?></td>
<td class='rowhead'><?php echo $lang->testcase->pri;?></td>
<td><?php echo $case->pri;?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->status;?></td>
<td><?php echo $lang->case->statusList[$case->status];?></td>
<td class='rowhead'><?php echo $lang->testcase->status;?></td>
<td><?php echo $lang->testcase->statusList[$case->status];?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->story;?></td>
<td class='rowhead'><?php echo $lang->testcase->story;?></td>
<td><?php echo $case->story;?></td>
</tr>
@@ -79,12 +79,12 @@
<!--
<fieldset>
<legend><?php echo $lang->case->legendMailto;?></legend>
<legend><?php echo $lang->testcase->legendMailto;?></legend>
<div>mailto</div>
</fieldset>
<fieldset>
<legend><?php echo $lang->case->legendAttatch;?></legend>
<legend><?php echo $lang->testcase->legendAttatch;?></legend>
<div>attatch</div>
</fieldset>
-->
@@ -93,28 +93,28 @@
<div class='yui-u'>
<fieldset>
<legend><?php echo $lang->case->legendOpenInfo;?></legend>
<legend><?php echo $lang->testcase->legendOpenInfo;?></legend>
<table class='table-1 a-left'>
<tr>
<td width='40%' class='rowhead'><?php echo $lang->case->openedBy;?></td>
<td width='40%' class='rowhead'><?php echo $lang->testcase->openedBy;?></td>
<td><?php echo $case->openedBy;?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->openedDate;?></td>
<td class='rowhead'><?php echo $lang->testcase->openedDate;?></td>
<td><?php echo $case->openedDate;?></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php echo $lang->case->legendLastInfo;?></legend>
<legend><?php echo $lang->testcase->legendLastInfo;?></legend>
<table class='table-1 a-left'>
<tr>
<td class='rowhead'><?php echo $lang->case->lastEditedBy;?></td>
<td class='rowhead'><?php echo $lang->testcase->lastEditedBy;?></td>
<td><?php echo $case->lastEditedBy;?></td>
</tr>
<tr>
<td class='rowhead'><?php echo $lang->case->lastEditedDate;?></td>
<td class='rowhead'><?php echo $lang->testcase->lastEditedDate;?></td>
<td><?php echo $case->lastEditedDate;?></td>
</tr>
</table>
@@ -122,7 +122,7 @@
<!--
<fieldset>
<legend><?php echo $lang->case->legendLinkBugs;?></legend>
<legend><?php echo $lang->testcase->legendLinkBugs;?></legend>
<div> linkcase </div>
</fieldset>
-->
@@ -133,17 +133,17 @@
<div class='yui-d0'>
<fieldset>
<legend><?php echo $lang->case->legendAction;?></legend>
<legend><?php echo $lang->testcase->legendAction;?></legend>
<div class='a-center' style='font-size:16px; font-weight:bold'>
<?php
if(common::hasPriv('testcase', 'edit')) echo html::a($this->createLink('testcase', 'edit', "caseID=$case->id"), $lang->case->buttonEdit);
if(common::hasPriv('testcase', 'browse')) echo html::a($this->createLink('testcase', 'browse', "productID=$case->product"), $lang->case->buttonToList);
if(common::hasPriv('testcase', 'edit')) echo html::a($this->createLink('testcase', 'edit', "caseID=$case->id"), $lang->testcase->buttonEdit);
if(common::hasPriv('testcase', 'browse')) echo html::a($this->createLink('testcase', 'browse', "productID=$case->product"), $lang->testcase->buttonToList);
?>
</div>
</fieldset>
<fieldset>
<legend><?php echo $lang->case->legendSteps;?></legend>
<legend><?php echo $lang->testcase->legendSteps;?></legend>
<div class='content'>
<?php echo nl2br($case->steps);?>
</div>