* finish task#1089.

This commit is contained in:
chencongzhi520@gmail.com
2013-02-20 02:42:10 +00:00
parent 8d5db001b3
commit a99bc96a49
16 changed files with 27 additions and 41 deletions
+2 -2
View File
@@ -19,7 +19,7 @@
<th class='w-80px'><?php echo $lang->bug->type;?></th>
<th class='w-50px'><?php echo $lang->bug->severityAB;?></th>
<th class='w-50px'><?php echo $lang->bug->pri;?></th>
<th> <?php echo $lang->bug->title;?></th>
<th class='red'> <?php echo $lang->bug->title;?></th>
<th class='w-100px'><?php echo $lang->bug->assignedTo;?></th>
<th class='w-70px'><?php echo $lang->bug->status;?></th>
<th class='w-100px'><?php echo $lang->bug->resolvedByAB;?></th>
@@ -40,7 +40,7 @@
<td><?php echo html::select("types[$bug->id]", $lang->bug->typeList, $bug->type, 'class=select-1');?></td>
<td><?php echo html::select("severities[$bug->id]", (array)$lang->bug->severityList, $bug->severity, 'class=select-1');?></td>
<td><?php echo html::select("pris[$bug->id]", (array)$lang->bug->priList, $bug->pri, 'class=select-1');?></td>
<td><?php echo html::input("titles[$bug->id]", $bug->title, 'class=text-1'); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::input("titles[$bug->id]", $bug->title, 'class=text-1');?></td>
<td><?php echo html::select("assignedTos[$bug->id]", $users, $bug->assignedTo, 'class=select-1');?></td>
<td><?php echo html::select("statuses[$bug->id]", (array)$lang->bug->statusList, $bug->status, 'class=select-1');?></td>
<td><?php echo html::select("resolvedBys[$bug->id]", $users, $bug->resolvedBy, 'class=select-1');?></td>
-1
View File
@@ -1,4 +1,3 @@
.text-1, .select-1{height:30px}
.w-300px{width:300px}
.w-280px{width:280px}
.w-180px{width:180px}
-1
View File
@@ -163,7 +163,6 @@ $lang->story->affectedBugs = 'Affected bugs';
$lang->story->affectedCases = 'Affected cases';
$lang->story->specTemplate = "Recommend template::As <<i class='red'>a type of user</i>>,I want <<i class='red'>some goals</i>>,so that <<i class='red'>some reason</i>>.";
$lang->story->notes = "(notes:if the title is empty, it is no use)";
$lang->story->needNotReview = "needn't review";
$lang->story->afterSubmit = "After created";
$lang->story->successSaved = "Successfully saved";
-1
View File
@@ -163,7 +163,6 @@ $lang->story->affectedBugs = '影响的Bug';
$lang->story->affectedCases = '影响的用例';
$lang->story->specTemplate = "建议参考的模板:作为一名<<i class='red'>某种类型的用户</i>>,我希望<<i class='red'>达成某些目的</i>>,这样可以<<i class='red'>开发的价值</i>>。";
$lang->story->notes = '(注:如果“需求名称”为空,则表示不使用此行)';
$lang->story->needNotReview = '不需要评审';
$lang->story->afterSubmit = "添加之后";
$lang->story->successSaved = "需求成功添加,";
+1 -1
View File
@@ -52,7 +52,7 @@
</td>
<?php endif;?>
<td><?php echo html::textarea("comments[$story->id]", '', "rows='1' class='area-1'");?></td>
<td><?php echo html::input("comments[$story->id]", '', "class='area-1'");?></td>
</tr>
<?php endforeach;?>
<?php if(isset($suhosinInfo)):?>
+4 -9
View File
@@ -18,7 +18,7 @@
<th class='w-20px'><?php echo $lang->idAB;?></th>
<th class='w-200px'><?php echo $lang->story->module;?></th>
<th class='w-180px'><?php echo $lang->story->plan;?></th>
<th><?php echo $lang->story->title;?></th>
<th class='red'><?php echo $lang->story->title;?></th>
<th class='w-200px'><?php echo $lang->story->spec;?></th>
<th class='w-50px'><?php echo $lang->story->pri;?></th>
<th class='w-60px'><?php echo $lang->story->estimate;?></th>
@@ -31,19 +31,14 @@
<td><?php echo $i+1;?></td>
<td><?php echo html::select("module[$i]", $moduleOptionMenu, $moduleID, 'class=select-1');?></td>
<td><?php echo html::select("plan[$i]", $plans, $planID, 'class=select-1');?></td>
<td><?php echo html::input("title[$i]", $storyTitle, "class='text-1'"); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::textarea("spec[$i]", $spec, "rows='1' class='text-1'");?></td>
<td><?php echo html::input("title[$i]", $storyTitle, "class='text-1'");?></td>
<td><?php echo html::input("spec[$i]", $spec, "class='text-1'");?></td>
<td><?php echo html::select("pri[$i]", (array)$lang->story->priList, $pri, 'class=select-1');?></td>
<td><?php echo html::input("estimate[$i]", $estimate, "class='text-1'");?></td>
<td><?php echo html::select("needReview[$i]", $lang->story->reviewList, 0, "class='text-1'");?></td>
</tr>
<?php endfor;?>
<tr>
<td colspan='8'>
<div class='half-left red'><?php echo $lang->story->notes;?></div>
<div class='half-right'><?php echo html::submitButton() . html::resetButton();?></div>
</td>
</tr>
<tr><td colspan='8' class='a-center'><?php echo html::submitButton() . html::resetButton();?></td></tr>
</table>
</form>
<?php include '../../common/view/footer.html.php';?>
+4 -4
View File
@@ -16,7 +16,7 @@
<caption><?php echo $lang->story->common . $lang->colon . $lang->story->batchEdit;?></caption>
<tr>
<th class='w-30px'> <?php echo $lang->idAB;?></th>
<th> <?php echo $lang->story->title;?></th>
<th class='red'> <?php echo $lang->story->title;?></th>
<th class='w-30px'> <?php echo $lang->story->estimateAB;?></th>
<th class='w-50px'> <?php echo $lang->priAB;?></th>
<th class='w-100px'><?php echo $lang->story->module;?></th>
@@ -30,8 +30,8 @@
<?php foreach($editedStories as $story):?>
<tr class='a-center'>
<td><?php echo $story->id . html::hidden("storyIDList[$story->id]", $story->id);?></td>
<td><?php echo html::input("titles[$story->id]", $story->title, 'class=text-1'); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::input("estimates[$story->id]", $story->estimate, 'class=text-1'); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::input("titles[$story->id]", $story->title, 'class=text-1'); ?></td>
<td><?php echo html::input("estimates[$story->id]", $story->estimate, 'class=text-1'); ?></td>
<td><?php echo html::select("pris[$story->id]", (array)$lang->story->priList, $story->pri, 'class=select-1');?></td>
<td><?php echo html::select("modules[$story->id]", $moduleOptionMenus[$story->product], $story->module, 'class=select-1');?></td>
<td><?php echo html::select("plans[$story->id]", $productPlans[$story->product], $story->plan, 'class=select-1');?></td>
@@ -63,7 +63,7 @@
</div>
</td>
<?php else:?>
<td class='f-left'><?php echo html::select("closedReasons[$story->id]", $lang->story->reasonList, $story->closedReason, 'class="w-60px" disabled="disabled"');?></td>
<td><div class='f-left'><?php echo html::select("closedReasons[$story->id]", $lang->story->reasonList, $story->closedReason, 'class="w-60px" disabled="disabled"');?><div></td>
<?php endif;?>
</tr>
<?php endforeach;?>
+1 -1
View File
@@ -41,7 +41,7 @@
<td><?php echo html::select("type[$i]", $lang->task->typeList, $type, 'class=select-1');?></td>
<td><?php echo html::select("assignedTo[$i]", $members, $member, 'class=select-1');?></td>
<td><?php echo html::input("estimate[$i]", '', 'class=text-1');?></td>
<td><?php echo html::textarea("desc[$i]", '', "class=text-1 rows='1'");?></td>
<td><?php echo html::input("desc[$i]", '', "class=text-1");?></td>
<td><?php echo html::select("pri[$i]", (array)$lang->task->priList, $pri, 'class=select-1');?></td>
</tr>
<?php endfor;?>
-1
View File
@@ -1,4 +1,3 @@
.text-1, .select-1{height:30px}
.w-300px{width:300px}
.w-180px{width:180px}
.half-left {text-align:right}
-1
View File
@@ -101,7 +101,6 @@ $lang->testcase->legendVersion = 'Versions';
$lang->testcase->confirmDelete = 'Are you sure to delete this case?';
$lang->testcase->same = 'The same as above';
$lang->testcase->notes = '(Notes: the type and title must be written, otherwise it is no use)';
$lang->testcase->priList[3] = 3;
$lang->testcase->priList[1] = 1;
-1
View File
@@ -101,7 +101,6 @@ $lang->testcase->legendVersion = '版本历史';
$lang->testcase->confirmDelete = '您确认要删除该测试用例吗?';
$lang->testcase->same = '同上';
$lang->testcase->notes = '(注:“用例类型”和“用例标题”必须填写,否则此行无效)';
$lang->testcase->priList[3] = 3;
$lang->testcase->priList[1] = 1;
+4 -9
View File
@@ -21,7 +21,7 @@
<th class='w-300px'><?php echo $lang->testcase->module;?></th>
<th class='w-180px'><?php echo $lang->testcase->type;?></th>
<th><?php echo $lang->testcase->story;?></th>
<th class='w-300px'><?php echo $lang->testcase->title;?></th>
<th class='w-300px red'><?php echo $lang->testcase->title;?></th>
</tr>
<?php for($i = 0; $i < $config->testcase->batchCreate; $i++):?>
<?php $moduleOptionMenu['same'] = $lang->testcase->same; if($i != 0) $currentModuleID = 'same';?>
@@ -31,17 +31,12 @@
<tr class='a-center'>
<td><?php echo $i+1;?></td>
<td><?php echo html::select("module[$i]", $moduleOptionMenu, $currentModuleID, "class=select-1");?></td>
<td><?php echo html::select("type[$i]", $lang->testcase->typeList, $type, "class=select-1"); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::select("type[$i]", $lang->testcase->typeList, $type, "class=select-1");?></td>
<td class='a-left'style='overflow:visible'><?php echo html::select("story[$i]", $stories, $story, 'class=select-1');?></td>
<td><?php echo html::input("title[$i]", '', "class='text-1'"); echo "<span class='star'>*</span>";?></td>
<td><?php echo html::input("title[$i]", '', "class='text-1'");?></td>
</tr>
<?php endfor;?>
<tr>
<td colspan='5'>
<div class='half-left red'><?php echo $lang->testcase->notes;?></div>
<div class='half-right'><?php echo html::submitButton() . html::resetButton();?></div>
</td>
</tr>
<tr><td colspan='5' class='a-center'><?php echo html::submitButton() . html::resetButton();?></td></tr>
</table>
</form>
<?php include '../../common/view/footer.html.php';?>
+2
View File
@@ -2,3 +2,5 @@
.half-right{text-align:left}
.nameBox .f-left {margin-left:20px}
.select-2 {width: 75px}
.text-1, .select-1{width:98%}
select {border:1px solid #ccc}
+2 -2
View File
@@ -20,7 +20,7 @@
<th class='w-20px'><?php echo $lang->idAB;?></th>
<th class='w-100px'><?php echo $lang->todo->type;?></th>
<th class='w-70px'><?php echo $lang->todo->pri;?></th>
<th class='red'><?php echo $lang->todo->name;?></th>
<th class='w-p40 red'><?php echo $lang->todo->name;?></th>
<th><?php echo $lang->todo->desc;?></th>
<th class='w-150px'><?php echo $lang->todo->beginAndEnd;?></th>
</tr>
@@ -35,7 +35,7 @@
<div id='<?php echo "nameBox" . ($i+1);?>' class='hidden'><?php echo html::input("names[$i]", '', 'class="f-left text-1"');?></div>
<div class='<?php echo "nameBox" . ($i+1);?>'><?php echo html::input("names[$i]", '', 'class="f-left text-1"');?></div>
</td>
<td><?php echo html::textarea("descs[$i]", '', "rows='1' class=text-1");?></td>
<td><?php echo html::input("descs[$i]", '', "class=text-1");?></td>
<td>
<?php
echo html::select("begins[$i]", $times, $time, "onchange=setBeginsAndEnds($i,'begin')");
+6 -6
View File
@@ -17,26 +17,26 @@
<caption><?php echo $lang->todo->batchEdit . $lang->colon;?></caption>
<tr>
<th class='w-20px'><?php echo $lang->idAB;?></th>
<th class='w-200px'><?php echo $lang->todo->date;?></th>
<th class='w-150px'><?php echo $lang->todo->date;?></th>
<th class='w-100px'><?php echo $lang->todo->type;?></th>
<th class='w-70px'><?php echo $lang->todo->pri;?></th>
<th class='w-p65'><?php echo $lang->todo->name;?></th>
<th class='w-120px'><?php echo $lang->todo->beginAndEnd;?></th>
<th class='w-p65 red'><?php echo $lang->todo->name;?></th>
<th class='w-140px'><?php echo $lang->todo->beginAndEnd;?></th>
</tr>
<?php foreach($editedTodos as $todo):?>
<tr class='a-center'>
<td><?php echo $todo->id . html::hidden("todoIDList[$todo->id]", $todo->id);?></td>
<td><?php echo html::input("dates[$todo->id]", $todo->date, "class='text-1 date'");?></td>
<td><?php echo html::input("dates[$todo->id]", $todo->date, "class='text-2 date'");?></td>
<td><?php echo html::select("types[$todo->id]", $lang->todo->typeList, $todo->type, "onchange=loadList(this.value,$todo->id) class='select-1'");?></td>
<td><?php echo html::select("pris[$todo->id]", $lang->todo->priList, $todo->pri, 'class=select-1');?></td>
<td>
<div id='<?php echo "nameBox" . $todo->id;?>' class='hidden'><? echo html::input("names[$todo->id]", '', "class='f-left text-1 hiddenwin'"); echo "<span class='star'>*</span>";?></div>
<div id='<?php echo "nameBox" . $todo->id;?>' class='hidden'><? echo html::input("names[$todo->id]", '', "class='f-left text-1 hiddenwin'"); ?></div>
<div class='<?php echo "nameBox" . $todo->id;?>'>
<?php
if($todo->type == 'custom')
{
echo html::input("names[$todo->id]", $todo->name, "class='f-left text-1'"); echo "<span class='star'>*</span>";
echo html::input("names[$todo->id]", $todo->name, "class='f-left text-1'"); ;
}
elseif($todo->type == 'task')
{
+1 -1
View File
@@ -48,7 +48,7 @@
</td>
</tr>
<?php endfor;?>
<tr><td colspan='8' class='a-center'><?php echo html::submitButton() . html::resetButton();?></td></tr>
<tr><td colspan='9' class='a-center'><?php echo html::submitButton() . html::resetButton();?></td></tr>
</table>
</form>
<?php include '../../common/view/footer.html.php';?>