| idAB;?> |
priAB;?> |
- story->product;?> |
+ story->product;?> |
story->title;?> |
- story->plan;?> |
+ story->plan;?> |
openedByAB;?> |
story->estimateAB;?> |
statusAB;?> |
- story->stageAB;?> |
- actions;?> |
+ story->stageAB;?> |
+ actions;?> |
@@ -50,11 +50,11 @@
estimate;?> |
story->statusList[$story->status];?> |
story->stageList[$story->stage];?> |
-
+ |
status != 'closed' and common::printLink('story', 'change', "storyID=$story->id", $lang->story->change))) echo $lang->story->change . ' ';
- if(!(($story->status == 'draft' or $story->status == 'changed') and common::printLink('story', 'review', "storyID=$story->id", $lang->story->review))) echo $lang->story->review . ' ';
- if(!($story->status != 'closed' and common::printLink('story', 'close', "storyID=$story->id", $lang->story->close))) echo $lang->story->close . ' ';
+ common::printIcon('story', 'change', "storyID=$story->id", $story, 'list');
+ common::printIcon('story', 'review', "storyID=$story->id", $story, 'list');
+ common::printIcon('story', 'close', "storyID=$story->id", $story, 'list');
?>
|
diff --git a/module/my/view/task.html.php b/module/my/view/task.html.php
index b7d0f65d28..150a6a63ce 100644
--- a/module/my/view/task.html.php
+++ b/module/my/view/task.html.php
@@ -42,7 +42,7 @@
task->deadlineAB;?> |
statusAB;?> |
openedByAB;?> |
- actions;?> |
+ actions;?> |
@@ -61,12 +61,12 @@
delay)) echo 'delayed';?>>deadline, 0, 4) > 0) echo $task->deadline;?> |
task->statusList[$task->status];?> |
openedBy];?> |
-
+ |
status == 'wait') and common::printLink('task', 'start', "taskID=$task->id", $lang->task->buttonStart))) echo $lang->task->buttonStart . ' ';
- if(!(($task->status == 'wait' or $task->status == 'doing') and common::printLink('task', 'finish', "taskID=$task->id", $lang->task->buttonDone))) echo $lang->task->buttonDone . ' ';
- if(!(($task->status == 'done' or $task->status == 'cancel') and common::printLink('task', 'close', "taskID=$task->id", $lang->task->buttonClose))) echo $lang->task->buttonClose . ' ';
- if(!(($task->status == 'closed' or $task->status == 'done' or $task->status == 'cancel') and common::printLink('task', 'activate', "taskID=$task->id", $lang->task->buttonActivate))) echo $lang->task->buttonActivate . ' ';
+ common::printIcon('task', 'start', "taskID=$task->id", $task, 'list');
+ common::printIcon('task', 'finish', "taskID=$task->id", $task, 'list');
+ common::printIcon('task', 'close', "taskID=$task->id", $task, 'list');
+ common::printIcon('task', 'activate', "taskID=$task->id", $task, 'list');
?>
|
diff --git a/module/my/view/testcase.html.php b/module/my/view/testcase.html.php
index 9831605841..6e61b3a28f 100644
--- a/module/my/view/testcase.html.php
+++ b/module/my/view/testcase.html.php
@@ -33,7 +33,7 @@
typeAB;?> |
openedByAB;?> |
statusAB;?> |
- actions;?> |
+ actions;?> |
@@ -45,11 +45,7 @@
testcase->typeList[$case->type];?> |
openedBy];?> |
testcase->statusList[$case->status];?> |
-
- id", $lang->testcase->buttonEdit);
- ?>
- |
+ id", '', 'list');?> |
diff --git a/module/my/view/testtask.html.php b/module/my/view/testtask.html.php
index 1a5965af00..25013a66ff 100644
--- a/module/my/view/testtask.html.php
+++ b/module/my/view/testtask.html.php
@@ -32,7 +32,7 @@
testtask->begin;?> |
testtask->end;?> |
statusAB;?> |
- actions;?> |
+ actions;?> |
@@ -45,11 +45,11 @@
begin?> |
end?> |
testtask->statusList[$task->status];?> |
-
+ |
id", $lang->testtask->cases);
- common::printLink('testtask', 'edit', "taskID=$task->id", $lang->edit);
- common::printLink('testtask', 'delete', "taskID=$task->id", $lang->delete, 'hiddenwin');
+ common::printIcon('testtask', 'edit', "taskID=$task->id", '', 'list');
+ common::printIcon('testtask', 'delete', "taskID=$task->id", '', 'list', '', 'hiddenwin');
?>
|
diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php
index bca8c4d40f..68ef36b0d2 100644
--- a/module/my/view/todo.html.php
+++ b/module/my/view/todo.html.php
@@ -34,9 +34,9 @@
export, '', 'class="export w-date"');
- common::printLink('todo', 'batchCreate', "", $lang->todo->batchCreate);
- echo html::a($this->createLink('todo', 'create', "date=" . str_replace('-', '', $date)), $lang->todo->create);
+ common::printIcon('todo', 'export', "account=$account&orderBy=id_desc");
+ common::printIcon('todo', 'batchCreate');
+ common::printIcon('todo', 'create', "date=" . str_replace('-', '', $date));
?>
@@ -51,7 +51,7 @@
todo->beginAB;?> |
todo->endAB;?> |
todo->status;?> |
- actions;?> |
+ actions;?> |
@@ -70,12 +70,11 @@
begin;?> |
end;?> |
todo->statusList[$todo->status];?> |
-
+ |
createLink('todo', 'mark', "id=$todo->id&status=$todo->status"), $lang->todo->{'mark'.ucfirst($todo->status)}, 'hiddenwin');
- echo html::a($this->createLink('todo', 'view', "id=$todo->id&from=my"), $lang->todo->viewAB);
- echo html::a($this->createLink('todo', 'edit', "id=$todo->id"), $lang->edit);
- echo html::a($this->createLink('todo', 'delete', "id=$todo->id"), $lang->delete, 'hiddenwin');
+ common::printIcon('todo', 'edit', "id=$todo->id", '', 'list');
+ common::printIcon('todo', 'delete', "id=$todo->id", '', 'list', '', 'hiddenwin');
?>
|
diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php
index 7453a21fd5..0bc788b24d 100644
--- a/module/product/view/browse.html.php
+++ b/module/product/view/browse.html.php
@@ -31,10 +31,10 @@ var browseType = '';
product->searchStory;?>
-
-
-
-
+
+
+
+
'>
@@ -95,10 +95,10 @@ var browseType = '';
id}";
- common::printIcon('story', 'change', $vars, $story);
- common::printIcon('story', 'review', $vars, $story);
- common::printIcon('story', 'edit', "storyID=$story->id", $story);
- common::printIcon('story', 'createCase', "productID=$story->product&module=0&from=¶m=0&$vars", $story, 'small', 'createCase');
+ common::printIcon('story', 'change', $vars, $story, 'list');
+ common::printIcon('story', 'review', $vars, $story, 'list');
+ common::printIcon('story', 'edit', "storyID=$story->id", $story, 'list');
+ common::printIcon('story', 'createCase', "productID=$story->product&module=0&from=¶m=0&$vars", $story, 'list', 'createCase');
?>
|
diff --git a/module/productplan/view/view.html.php b/module/productplan/view/view.html.php
index 026aff7697..ad057593cd 100644
--- a/module/productplan/view/view.html.php
+++ b/module/productplan/view/view.html.php
@@ -14,83 +14,83 @@
title . $lang->colon . $lang->productplan->view;?>
-
-
-
-
-
- session->productPlanList ? $this->session->productPlanList : inlink('browse', "planID=$plan->id");
- if(!$plan->deleted)
- {
- common::printLink('productplan', 'edit', "planID=$plan->id", $lang->edit);
- common::printLink('productplan', 'linkstory',"planID=$plan->id", $lang->productplan->linkStory);
- common::printLink('productplan', 'delete', "planID=$plan->id", $lang->delete, 'hiddenwin');
- }
+
+ |
+
+
+
+ session->productPlanList ? $this->session->productPlanList : inlink('browse', "planID=$plan->id");
+ if(!$plan->deleted)
+ {
+ common::printLink('productplan', 'edit', "planID=$plan->id", $lang->edit);
+ common::printLink('productplan', 'linkstory',"planID=$plan->id", $lang->productplan->linkStory);
+ common::printLink('productplan', 'delete', "planID=$plan->id", $lang->delete, 'hiddenwin');
+ }
echo html::a($browseLink, $lang->goback);
- ?>
-
-
- title .$lang->colon . $lang->productplan->linkedStories;?>
-
-
- | idAB;?> |
- priAB;?> |
- story->title;?> |
- openedByAB;?> |
- assignedToAB;?> |
- story->estimateAB;?> |
- statusAB;?> |
- story->stageAB;?> |
- actions?> |
+ ?>
+
+
+ title .$lang->colon . $lang->productplan->linkedStories;?>
+
+
+ | idAB;?> |
+ priAB;?> |
+ story->title;?> |
+ openedByAB;?> |
+ assignedToAB;?> |
+ story->estimateAB;?> |
+ statusAB;?> |
+ story->stageAB;?> |
+ actions?> |
+
+
+
+
+
+ createLink('story', 'view', "storyID=$story->id");
+ $totalEstimate += $story->estimate;
+ ?>
+
+ | id);?> |
+ pri;?> |
+ title);?> |
+ openedBy];?> |
+ assignedTo];?> |
+ estimate;?> |
+ story->statusList[$story->status];?> |
+ story->stageList[$story->stage];?> |
+ id", $lang->productplan->unlinkStory, 'hiddenwin');?> |
+
+
+
+ | product->storySummary, count($planStories), $totalEstimate);?> |
+
+
+ |
+
+
+ |
-
-
-
-
- createLink('story', 'view', "storyID=$story->id");
- $totalEstimate += $story->estimate;
- ?>
-
- | id);?> |
- pri;?> |
- title);?> |
- openedBy];?> |
- assignedTo];?> |
- estimate;?> |
- story->statusList[$story->status];?> |
- story->stageList[$story->stage];?> |
- id", $lang->productplan->unlinkStory, 'hiddenwin');?> |
-
-
-
- | product->storySummary, count($planStories), $totalEstimate);?> |
-
- |
- |
-
-
- |
-
|
diff --git a/module/project/view/bug.html.php b/module/project/view/bug.html.php
index aa3cf663a3..932db207c6 100644
--- a/module/project/view/bug.html.php
+++ b/module/project/view/bug.html.php
@@ -33,7 +33,7 @@
assignedToAB);?> |
bug->resolvedBy);?> |
bug->resolutionAB);?> |
- actions;?> |
+ actions;?> |
@@ -50,30 +50,9 @@
id";
- if(common::hasPriv('bug', 'resolve'))
- {
- if($bug->status == 'active')
- {
- echo html::a($this->createLink('bug', 'resolve', $params), ' ', '', "class='icon-green-small-bug-resolve' title='{$lang->bug->buttonResolve}'", false);
- }
- else
- {
- echo " ";
- }
- }
-
- if(common::hasPriv('bug', 'close'))
- {
- if($bug->status == 'resolved')
- {
- echo html::a($this->createLink('bug', 'close', $params), ' ', '', "class='icon-green-small-bug-close' title='{$lang->bug->buttonClose}'", false);
- }
- else
- {
- echo " ";
- }
- }
- common::printLink('bug', 'edit', $params, ' ', '', "class='icon-green-small-edit' title='{$lang->bug->buttonEdit}'", false);
+ common::printIcon('bug', 'resolve', $params, $bug, 'list');
+ common::printIcon('bug', 'close', $params, $bug, 'list');
+ common::printIcon('bug', 'edit', $params, $bug, 'list');
?>
|
diff --git a/module/project/view/task.html.php b/module/project/view/task.html.php
index d54ecdc751..e7ab29ffe9 100644
--- a/module/project/view/task.html.php
+++ b/module/project/view/task.html.php
@@ -132,10 +132,10 @@ var browseType = '';
id", $lang->confirm, 'hiddenwin');
- common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $task);
- common::printIcon('task', 'finish', "taskID=$task->id", $task);
- common::printIcon('task', 'close', "taskID=$task->id", $task);
- if($this->task->isClickable($task, 'edit')) common::printIcon('task', 'edit', "taskID=$task->id");
+ common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $task, 'list');
+ common::printIcon('task', 'finish', "taskID=$task->id", $task, 'list');
+ common::printIcon('task', 'close', "taskID=$task->id", $task, 'list');
+ if($this->task->isClickable($task, 'edit')) common::printIcon('task', 'edit',"taskID=$task->id", '', 'list');
?>
|
diff --git a/module/project/view/taskheader.html.php b/module/project/view/taskheader.html.php
index e27f8174cf..1e615ad557 100644
--- a/module/project/view/taskheader.html.php
+++ b/module/project/view/taskheader.html.php
@@ -21,10 +21,10 @@
id&browseType=$browseType", '', 'big');
- common::printIcon('task', 'batchCreate', "projectID=$project->id", '', 'big');
- common::printIcon('task', 'create', "project=$project->id", '', 'big');
+ if($browseType != 'needconfirm') common::printIcon('task', 'export', "projectID=$projectID&orderBy=$orderBy");
+ common::printIcon('task', 'report', "project=$project->id&browseType=$browseType");
+ common::printIcon('task', 'batchCreate', "projectID=$project->id");
+ common::printIcon('task', 'create', "project=$project->id");
?>
diff --git a/module/story/lang/zh-cn.php b/module/story/lang/zh-cn.php
index e6928f2a69..a3c792c834 100644
--- a/module/story/lang/zh-cn.php
+++ b/module/story/lang/zh-cn.php
@@ -10,7 +10,7 @@
* @link http://www.zentao.net
*/
$lang->story->browse = "需求列表";
-$lang->story->create = "新增需求";
+$lang->story->create = "新增";
$lang->story->createCase = "建用例";
$lang->story->batchCreate = "批量添加";
$lang->story->change = "变更";
@@ -26,7 +26,7 @@ $lang->story->tasks = "相关任务";
$lang->story->taskCount = '任务数';
$lang->story->bugs = "Bug";
$lang->story->linkStory = '关联需求';
-$lang->story->export = "导出数据";
+$lang->story->export = "导出";
$lang->story->reportChart = "统计报表";
$lang->story->common = '需求';
@@ -189,7 +189,7 @@ $lang->story->action->linked2project = array('main' => '$date, 由
$lang->story->action->unlinkedfromproject = array('main' => '$date, 由 $actor 从项目 $extra 移除。');
/* 统计报表。*/
-$lang->story->report->common = '统计报表';
+$lang->story->report->common = '报表';
$lang->story->report->select = '请选择报表类型';
$lang->story->report->create = '生成报表';
diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php
index 90ebb22b34..29e14d5803 100644
--- a/module/story/view/view.html.php
+++ b/module/story/view/view.html.php
@@ -20,21 +20,19 @@
{
ob_start();
- if($this->story->isClickable($story, 'change')) common::printLink('story', 'change', "storyID=$story->id", $lang->story->change);
- if($this->story->isClickable($story, 'review')) common::printLink('story', 'review', "storyID=$story->id", $lang->story->review);
- if($this->story->isClickable($story, 'close')) common::printLink('story', 'close', "storyID=$story->id", $lang->story->close);
- if($this->story->isClickable($story, 'activate')) common::printLink('story', 'activate', "storyID=$story->id", $lang->story->activate);
+ if($this->story->isClickable($story, 'change')) common::printIcon('story', 'change', "storyID=$story->id");
+ if($this->story->isClickable($story, 'review')) common::printIcon('story', 'review', "storyID=$story->id");
+ if($this->story->isClickable($story, 'close')) common::printIcon('story', 'close', "storyID=$story->id");
+ if(!$this->story->isClickable($story, 'activate')) common::printIcon('story', 'activate', "storyID=$story->id");
+ common::printIcon('story', 'createCase', "productID=$story->product&moduleID=0&from=¶m=0&storyID=$story->id", '', 'button', 'createCase');
- if($this->story->isClickable($story, 'toCase')) common::printSplitIcon();
- common::printLink('testcase', 'create', "productID=$story->product&moduleID=0&from=¶m=0&storyID=$story->id", $lang->story->createCase);
-
- if($this->story->isClickable($story, 'edit')) common::printSplitIcon();
- common::printIcon('story', 'edit', "storyID=$story->id", '', 'big');
+ common::printDivider();
+ common::printIcon('story', 'edit', "storyID=$story->id");
common::printCommentIcon('story');
- common::printIcon('story', 'create', "productID=$story->product&moduleID=$story->module&storyID=$story->id", '', 'big', 'copy');
- common::printIcon('story', 'delete', "storyID=$story->id", '', 'big', '', 'hiddenwin');
+ common::printIcon('story', 'create', "productID=$story->product&moduleID=$story->module&storyID=$story->id", '', 'button', 'copy');
+ common::printIcon('story', 'delete', "storyID=$story->id", '', 'button', '', 'hiddenwin');
- if($this->story->isClickable('story', 'goback')) common::printSplitIcon();
+ common::printDivider();
common::printRPN($browseLink, $preAndNext);
$actionLinks = ob_get_contents();
diff --git a/module/task/lang/zh-cn.php b/module/task/lang/zh-cn.php
index 19e28011f7..a318a2b725 100644
--- a/module/task/lang/zh-cn.php
+++ b/module/task/lang/zh-cn.php
@@ -10,21 +10,21 @@
* @link http://www.zentao.net
*/
$lang->task->index = "任务一览";
-$lang->task->create = "新增任务";
+$lang->task->create = "新增";
$lang->task->batchCreate = "批量添加";
$lang->task->batchEdit = "批量编辑";
$lang->task->import = "导入之前未完任务";
-$lang->task->edit = "编辑任务";
-$lang->task->delete = "删除任务";
+$lang->task->edit = "编辑";
+$lang->task->delete = "删除";
$lang->task->view = "查看任务";
$lang->task->logEfforts = "记录工时";
-$lang->task->start = "开始任务";
-$lang->task->finish = "完成任务";
-$lang->task->close = "关闭任务";
+$lang->task->start = "开始";
+$lang->task->finish = "完成";
+$lang->task->close = "关闭";
$lang->task->batchClose = "批量关闭";
-$lang->task->cancel = "取消任务";
-$lang->task->activate = "激活任务";
-$lang->task->export = "导出数据";
+$lang->task->cancel = "取消";
+$lang->task->activate = "激活";
+$lang->task->export = "导出";
$lang->task->reportChart = "报表统计";
$lang->task->fromBug = '来源Bug';
$lang->task->confirmStoryChange = "确认需求变动";
@@ -135,7 +135,7 @@ $lang->task->delayWarning = " 延期%s天
$lang->task->remindBug = "该任务为Bug转化得到,是否更新Bug:%s ?";
/* 统计报表。*/
-$lang->task->report->common = '统计报表';
+$lang->task->report->common = '报表';
$lang->task->report->select = '请选择报表类型';
$lang->task->report->create = '生成报表';
diff --git a/module/task/view/view.html.php b/module/task/view/view.html.php
index c8f0062685..18fdaaf2e2 100644
--- a/module/task/view/view.html.php
+++ b/module/task/view/view.html.php
@@ -24,19 +24,19 @@
{
ob_start();
//if(!($task->status != 'closed' and $task->status != 'cancel' and common::printLink('task', 'logEfforts', "taskID=$task->id", $lang->task->buttonLogEfforts))) echo $lang->task->buttonLogEfforts . ' ';
- common::printLink('task', 'assignTo', "projectID=$task->project&taskID=$task->id", $lang->task->assign);
- if($this->task->isClickable($task, 'start')) common::printLink('task', 'start', "taskID=$task->id", $lang->task->buttonStart);
- if($this->task->isClickable($task, 'finish')) common::printLink('task', 'finish', "taskID=$task->id", $lang->task->buttonDone);
- if($this->task->isClickable($task, 'close')) common::printLink('task', 'close', "taskID=$task->id", $lang->task->buttonClose);
- if($this->task->isClickable($task, 'activate')) common::printLink('task', 'activate', "taskID=$task->id", $lang->task->buttonActivate);
- if($this->task->isClickable($task, 'cancel')) common::printLink('task', 'cancel', "taskID=$task->id", $lang->task->buttonCancel);
+ common::printIcon('task', 'assignTo', "projectID=$task->project&taskID=$task->id");
+ if($this->task->isClickable($task, 'start')) common::printIcon('task', 'start', "taskID=$task->id");
+ if($this->task->isClickable($task, 'finish')) common::printIcon('task', 'finish', "taskID=$task->id");
+ if($this->task->isClickable($task, 'close')) common::printIcon('task', 'close', "taskID=$task->id");
+ if($this->task->isClickable($task, 'activate')) common::printIcon('task', 'activate', "taskID=$task->id");
+ if($this->task->isClickable($task, 'cancel')) common::printIcon('task', 'cancel', "taskID=$task->id");
- if($this->task->isClickable($task, 'edit')) common::printSplitIcon();
- common::printIcon('task', 'edit', "taskID=$task->id", '', 'big');
+ common::printDivider();
+ common::printIcon('task', 'edit', "taskID=$task->id");
common::printCommentIcon('task');
- common::printIcon('task', 'delete',"projectID=$task->project&taskID=$task->id", '', 'big', '', 'hiddenwin');
+ common::printIcon('task', 'delete',"projectID=$task->project&taskID=$task->id", '', 'button', '', 'hiddenwin');
- if($this->task->isClickable($task, 'goback')) common::printSplitIcon();
+ common::printDivider();
common::printRPN($browseLink, $preAndNext);
$actionLinks = ob_get_contents();
diff --git a/module/testcase/js/view.js b/module/testcase/js/view.js
index c997b0adbe..039ba61bd9 100755
--- a/module/testcase/js/view.js
+++ b/module/testcase/js/view.js
@@ -1,6 +1,6 @@
$(document).ready(function()
{
- $(".runcase").colorbox({width:900, height:600, iframe:true, transition:'none'});
+ $(".runCase").colorbox({width:900, height:600, iframe:true, transition:'none'});
$(".results").colorbox({width:900, height:600, iframe:true, transition:'none'});
})
function setComment()
diff --git a/module/testcase/lang/zh-cn.php b/module/testcase/lang/zh-cn.php
index 0313dbb8ad..5cd6ac5326 100644
--- a/module/testcase/lang/zh-cn.php
+++ b/module/testcase/lang/zh-cn.php
@@ -49,7 +49,7 @@ $lang->testcase->stepExpect = '预期';
$lang->testcase->common = '用例管理';
$lang->testcase->index = "用例管理首页";
-$lang->testcase->create = "创建用例";
+$lang->testcase->create = "建用例";
$lang->testcase->batchCreate = "批量添加";
$lang->testcase->delete = "删除用例";
$lang->testcase->view = "用例详情";
@@ -57,7 +57,7 @@ $lang->testcase->edit = "编辑用例";
$lang->testcase->delete = "删除用例";
$lang->testcase->browse = "用例列表";
$lang->testcase->import = "导入用例";
-$lang->testcase->export = "导出数据";
+$lang->testcase->export = "导出";
$lang->testcase->confirmStoryChange = '确认需求变动';
$lang->testcase->deleteStep = '删除';
diff --git a/module/testcase/view/browse.html.php b/module/testcase/view/browse.html.php
index 471dcad589..124622b69e 100644
--- a/module/testcase/view/browse.html.php
+++ b/module/testcase/view/browse.html.php
@@ -30,9 +30,9 @@ var moduleID = '';
testcase->import}'"); ?>
-
-
-
+
+
+
'>
@@ -91,10 +91,10 @@ var moduleID = '';
id&version=$case->version", $this->app->loadLang('testtask')->testtask->runCase, '', 'class="runcase"');
common::printLink('testtask', 'results', "runID=0&caseID=$case->id", $lang->testtask->results, '', 'class="results"');
- common::printIcon('testcase', 'edit', "caseID=$case->id", $case);
- common::printIcon('testcase', 'create', "productID=$case->product&moduleID=$case->module&from=testcase¶m=$case->id", $case, 'small', 'copy');
- common::printIcon('testcase', 'delete', "caseID=$case->id", '', 'small', '', 'hiddenwin');
- common::printIcon('testcase', 'toBug', "product=$case->product&extra=caseID=$case->id,version=$case->version,runID=", $case, 'small', 'createBug');
+ common::printIcon('testcase', 'edit', "caseID=$case->id", $case, 'list');
+ common::printIcon('testcase', 'create', "productID=$case->product&moduleID=$case->module&from=testcase¶m=$case->id", $case, 'list', 'copy');
+ common::printIcon('testcase', 'delete', "caseID=$case->id", '', 'list', '', 'hiddenwin');
+ common::printIcon('testcase', 'createBug', "product=$case->product&extra=caseID=$case->id,version=$case->version,runID=", $case, 'list', 'createBug');
?>
diff --git a/module/testcase/view/view.html.php b/module/testcase/view/view.html.php
index 494522ecd5..7d35559a33 100644
--- a/module/testcase/view/view.html.php
+++ b/module/testcase/view/view.html.php
@@ -21,22 +21,18 @@
{
ob_start();
- common::printLink('testtask', 'runCase', "runID=0&caseID=$case->id&version=$case->currentVersion", $this->app->loadLang('testtask')->testtask->runCase, '', 'class="runcase"');
- common::printLink('testtask', 'results', "runID=0&caseID=$case->id&version=$case->version", $lang->testtask->results, '', 'class="results"');
+ common::printIcon('testtask', 'runCase', "runID=0&caseID=$case->id&version=$case->currentVersion");
+ common::printIcon('testtask', 'results', "runID=0&caseID=$case->id&version=$case->version");
- if($this->testcase->isClickable($case, 'toBug'))
- {
- common::printSplitIcon();
- common::printLink('bug', 'create', "product=$case->product&extra=caseID=$case->id,version=$case->version,runID=", $lang->testtask->createBug);
- }
-
- if($this->testcase->isClickable($case, 'edit')) common::printSplitIcon();
- common::printIcon('testcase', 'edit',"caseID=$case->id", '', 'big');
+ common::printIcon('testcase', 'createBug', "product=$case->product&extra=caseID=$case->id,version=$case->version,runID=", '', 'button', 'createBug');
+
+ common::printDivider();
+ common::printIcon('testcase', 'edit',"caseID=$case->id");
common::printCommentIcon('testcase');
- common::printIcon('testcase', 'create', "productID=$case->product&moduleID=$case->module&from=testcase¶m=$case->id", '', 'big', 'copy');
- common::printIcon('testcase', 'delete', "caseID=$case->id", '', 'big', '', 'hiddenwin');
+ common::printIcon('testcase', 'create', "productID=$case->product&moduleID=$case->module&from=testcase¶m=$case->id", '', 'button', 'copy');
+ common::printIcon('testcase', 'delete', "caseID=$case->id", '', 'button', '', 'hiddenwin');
- if($this->testcase->isClickable($case, 'goback')) common::printSplitIcon();
+ common::printDivider();
common::printRPN($browseLink, $preAndNext);
$actionLinks = ob_get_contents();
diff --git a/module/testtask/view/browse.html.php b/module/testtask/view/browse.html.php
index e3cbde0b8b..2808092c57 100644
--- a/module/testtask/view/browse.html.php
+++ b/module/testtask/view/browse.html.php
@@ -45,8 +45,8 @@
id", $lang->testtask->cases);
common::printLink('testtask', 'linkcase', "taskID=$task->id", $lang->testtask->linkCaseAB);
- common::printIcon('testtask', 'edit', "taskID=$task->id", '', 'small');
- common::printIcon('testtask', 'delete', "taskID=$task->id", '', 'small', '', 'hiddenwin');
+ common::printIcon('testtask', 'edit', "taskID=$task->id", '', 'list');
+ common::printIcon('testtask', 'delete', "taskID=$task->id", '', 'list', '', 'hiddenwin');
?>
diff --git a/module/testtask/view/view.html.php b/module/testtask/view/view.html.php
index 5179e008b9..a1f12664ae 100644
--- a/module/testtask/view/view.html.php
+++ b/module/testtask/view/view.html.php
@@ -54,9 +54,9 @@
{
common::printLink('testtask', 'cases', "taskID=$task->id", $lang->testtask->cases);
common::printLink('testtask', 'linkcase', "taskID=$task->id", $lang->testtask->linkCaseAB);
- common::printIcon('testtask', 'edit', "taskID=$task->id", '', 'big');
- common::printIcon('testtask', 'delete', "taskID=$task->id", '', 'big', '', 'hiddenwin');
- echo common::printRPN($browseLink);
+ common::printLink('testtask', 'edit', "taskID=$task->id",$lang->edit);
+ common::printLink('testtask', 'delete', "taskID=$task->id", $lang->delete, 'hiddenwin');
+ echo html::a($browseLink, $lang->goback);
}
?>
diff --git a/www/js/my.full.js b/www/js/my.full.js
index e705c16191..050b13ab77 100644
--- a/www/js/my.full.js
+++ b/www/js/my.full.js
@@ -579,7 +579,6 @@ function setProjectListLink()
function setExport()
{
if($('.export').size()) $(".export").colorbox({width:500, height:200, iframe:true, transition:'elastic', speed:350, scrolling:true});
- if($('.icon-green-big-common-export').size()) $(".icon-green-big-common-export").colorbox({width:500, height:200, iframe:true, transition:'elastic', speed:350, scrolling:true});
}
/**
diff --git a/www/theme/default/images/main/link-button.png b/www/theme/default/images/main/link-button.png
new file mode 100644
index 0000000000..e1771ae472
Binary files /dev/null and b/www/theme/default/images/main/link-button.png differ
diff --git a/www/theme/default/images/main/zt-black.png b/www/theme/default/images/main/zt-black.png
new file mode 100644
index 0000000000..2c3e5ebd68
Binary files /dev/null and b/www/theme/default/images/main/zt-black.png differ
diff --git a/www/theme/default/images/main/zt-gray.png b/www/theme/default/images/main/zt-gray.png
index 8279492460..f780167917 100644
Binary files a/www/theme/default/images/main/zt-gray.png and b/www/theme/default/images/main/zt-gray.png differ
diff --git a/www/theme/default/images/main/zt-green.png b/www/theme/default/images/main/zt-green.png
index eda7b830e5..60fac63a5e 100644
Binary files a/www/theme/default/images/main/zt-green.png and b/www/theme/default/images/main/zt-green.png differ
diff --git a/www/theme/default/style.css b/www/theme/default/style.css
index 22391b6ef5..c9d00f1d7e 100644
--- a/www/theme/default/style.css
+++ b/www/theme/default/style.css
@@ -312,10 +312,10 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
#projectID {background:#e5e5e5; border:1px solid #e5e5e5}
/* Feature bar. */
-#featurebar {background-color:#EDF3FE; height:28px; line-height:28px; cursor:pointer; padding:6px 8px; margin: -15px -15px 10px -15px;}
+#featurebar { height:28px; line-height:28px; cursor:pointer; padding:20px 8px 10px 8px; margin: -15px -15px 10px -15px;}
#featurebar a {text-decoration:none; border-right:1px solid #ddd; padding:4px 10px 4px 4px; color:#003366}
#featurebar a:hover {color:#ff3600;}
-#featurebar .f-right a {color:red; font-weight:bold; border-right:none; padding:2px 10px;}
+#featurebar .f-right a {border-right:none; padding:0px}
#featurebar #bysearchTab a {border:none;}
#featurebar select {font-size:12px; height:22px; margin-top:3px;}
@@ -330,9 +330,9 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
#tree a {color:#003366}
/* Title bar. */
-#titlebar {font-size:14px; font-weight:bold; background-color:#EDF3FE; padding:5px; margin:5px 0; height:30px; line-height:30px;}
-#titlebar #main {float:left; width:65%; clear:none; text-align:left}
-#titlebar div {float:right; width:35%; clear:none; text-align:right}
+#titlebar {font-size:14px; font-weight:bold; padding:5px; margin:0px 0px 8px 0px; height:30px; line-height:30px;}
+#titlebar #main {float:left; width:45%; clear:none; text-align:left}
+#titlebar div {float:right; width:55%; clear:none; text-align:right}
#titlebar #main input {font-size:14px; margin-top:5px}
#titlebar .text-1 {width:80%}
@@ -348,7 +348,7 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
#dataform .rowhead{font-size:11.5px; font-weight:1.2; border:none}
#dataform tr, #createform td, #createform th{border:none; background:#fcfcfc}
-.actionlink{font-size:14px; font-weight:bold}
+.actionlink{font-size:14px; font-weight:bold; padding-top:8px}
/* Product, project switcher. */
#switcher {color:white; font-style:bold; background:red; cursor:pointer;}
@@ -421,48 +421,81 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
.icon-arrow { padding-left:10px; background:url(images/main/ui-gray.png) -32px 0px;}
/* Common icons. */
-.pri1 {padding:2px 8px; background:url(images/main/zt-green.png) 0px -141px;}
-.pri2 {padding:2px 8px; background:url(images/main/zt-green.png) -20px -141px;}
-.pri3 {padding:2px 8px; background:url(images/main/zt-green.png) -40px -141px;}
-.pri4 {padding:2px 8px; background:url(images/main/zt-green.png) -60px -141px;}
-.pri5 {padding:2px 8px; background:url(images/main/zt-green.png) -80px -141px;}
-.pri6 {padding:2px 8px; background:url(images/main/zt-green.png) -100px -141px;}
-.icon-goback {padding:2px 10px; background:url(images/main/zt-green.png) 2px -40px;}
-.icon-pre {padding:2px 8px; background:url(images/main/zt-green.png) -22px -40px;}
-.icon-next {padding:2px 8px; background:url(images/main/zt-green.png) -42px -40px;}
-#searchicon {padding:2px 8px; background:url(images/main/zt-green.png) -102px -80px; margin-left:10px;}
-#searchmore {padding:2px 8px; background:url(images/main/zt-green.png) -62px -100px no-repeat; margin-right:10px;}
-#searchlite {padding:2px 8px; background:url(images/main/zt-green.png) -82px -100px no-repeat; margin-right:10px}
-.icon-green-big-common-edit {padding:2px 8px; background:url(images/main/zt-green.png) -1px 0px;}
-.icon-green-small-common-edit {padding:2px 8px; background:url(images/main/zt-green.png) 0px -21px;}
-.icon-green-big-common-comment {padding:2px 8px; background:url(images/main/zt-green.png) -22px 0px;}
-.icon-green-big-common-copy {padding:2px 8px; background:url(images/main/zt-green.png) -41px 0px;}
-.icon-green-small-common-copy {padding:2px 8px; background:url(images/main/zt-green.png) -40px -21px;}
-.icon-green-big-common-delete {padding:2px 8px; background:url(images/main/zt-green.png) -60px 0px;}
-.icon-green-small-common-delete {padding:2px 8px; background:url(images/main/zt-green.png) -60px -22px;}
-.icon-green-big-common-splitLine {padding:2px 10px; background:url(images/main/zt-green.png) -61px -40px;}
-.icon-green-big-common-report {padding:2px 10px; background:url(images/main/zt-green.png) -40px -82px;}
-#featurebar .f-right .icon-green-big-common-import {padding:2px 8px; background:url(images/main/zt-green.png) 0px -80px;}
-#featurebar .f-right .icon-green-big-common-export {padding:2px 8px; background:url(images/main/zt-green.png) -21px -82px;}
+.pri1 {padding:2px 8px; background:url(images/main/zt-green.png) 0px -141px;}
+.pri2 {padding:2px 8px; background:url(images/main/zt-green.png) -20px -141px;}
+.pri3 {padding:2px 8px; background:url(images/main/zt-green.png) -40px -141px;}
+.pri4 {padding:2px 8px; background:url(images/main/zt-green.png) -60px -141px;}
+.pri5 {padding:2px 8px; background:url(images/main/zt-green.png) -80px -141px;}
+.pri6 {padding:2px 8px; background:url(images/main/zt-green.png) -100px -141px;}
+.icon-goback {padding:2px 8px; background:url(images/main/zt-black.png) -4px -62px;}
+.icon-pre {padding:2px 8px; background:url(images/main/zt-black.png) -24px -62px;}
+.icon-next {padding:2px 8px; background:url(images/main/zt-black.png) -45px -62px;}
+#searchicon {padding:2px 8px; background:url(images/main/zt-green.png) -102px -80px; margin-left:10px;}
+#searchmore {padding:2px 8px; background:url(images/main/zt-green.png) -62px -100px no-repeat; margin-right:10px;}
+#searchlite {padding:2px 8px; background:url(images/main/zt-green.png) -82px -100px no-repeat; margin-right:10px}
+
+.icon-black-common-edit {padding:2px 8px; background:url(images/main/zt-black.png) -4px -22px no-repeat;}
+.icon-green-common-edit {padding:2px 8px; background:url(images/main/zt-green.png) 0px -22px no-repeat;}
+
+.icon-black-common-comment {padding:2px 8px; background:url(images/main/zt-black.png) -24px -22px no-repeat;}
+
+.icon-black-common-copy {padding:2px 8px; background:url(images/main/zt-black.png) -40px -21px no-repeat;}
+.icon-green-common-copy {padding:2px 8px; background:url(images/main/zt-green.png) -40px -21px no-repeat;}
+
+.icon-black-common-delete {padding:2px 8px; background:url(images/main/zt-black.png) -65px -22px no-repeat;}
+.icon-green-common-delete {padding:2px 8px; background:url(images/main/zt-green.png) -60px -22px no-repeat;}
+.icon-gray-common-delete {padding:2px 8px; background:url(images/main/zt-gray.png) -60px -22px no-repeat;}
+
+#featurebar .f-right .icon-black-common-report {padding:2px 10px; background:url(images/main/zt-black.png) -40px -102px no-repeat;}
+#featurebar .f-right .icon-black-common-export {padding:2px 8px; background:url(images/main/zt-black.png) -21px -102px;}
/* Story icons. */
-.icon-green-small-story-change {padding:2px 8px; background:url(images/main/zt-green.png) -40px -220px;}
-.icon-gray-small-story-change {padding:2px 8px; background:url(images/main/zt-gray.png) -40px -220px;}
-.icon-green-small-story-review {padding:2px 8px; background:url(images/main/zt-green.png) -60px -221px;}
-.icon-gray-small-story-review {padding:2px 8px; background:url(images/main/zt-gray.png) -60px -221px;}
-.icon-green-small-story-createCase {padding:2px 8px; background:url(images/main/zt-green.png) -120px -221px;}
-#featurebar .f-right .icon-green-big-story-create {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) 0px -202px;}
-#featurebar .f-right .icon-green-big-story-batchCreate {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) -20px -202px;}
+.icon-black-story-toStory {padding:2px 8px; background:url(images/main/zt-black.png) 0px -222px;}
+
+.icon-black-story-change {padding:2px 8px; background:url(images/main/zt-black.png) -40px -220px;}
+.icon-green-story-change {padding:2px 8px; background:url(images/main/zt-green.png) -40px -220px;}
+.icon-gray-story-change {padding:2px 8px; background:url(images/main/zt-gray.png) -40px -220px;}
+
+.icon-black-story-review {padding:2px 8px; background:url(images/main/zt-black.png) -60px -221px;}
+.icon-green-story-review {padding:2px 8px; background:url(images/main/zt-green.png) -60px -221px;}
+.icon-gray-story-review {padding:2px 8px; background:url(images/main/zt-gray.png) -60px -221px;}
+
+.icon-black-story-close {padding:2px 8px; background:url(images/main/zt-black.png) -80px -221px;}
+.icon-green-story-close {padding:2px 8px; background:url(images/main/zt-green.png) -80px -221px;}
+.icon-gray-story-close {padding:2px 8px; background:url(images/main/zt-gray.png) -80px -221px;}
+
+.icon-black-story-activate {padding:2px 8px; background:url(images/main/zt-black.png) -100px -221px;}
+
+.icon-black-story-createCase {padding:2px 8px; background:url(images/main/zt-green.png) -120px -221px;}
+.icon-green-story-createCase {padding:2px 8px; background:url(images/main/zt-green.png) -120px -221px;}
+
+#featurebar .f-right .icon-black-story-create {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) 0px -222px;}
+#featurebar .f-right .icon-black-story-batchCreate {padding:2px 7px 2px 10px; background:url(images/main/zt-black.png) -20px -222px;}
/* Task icons. */
-.icon-green-small-task-assignTo {padding:2px 8px; background:url(images/main/zt-green.png) -40px -262px;}
-.icon-gray-small-task-assignTo {padding:2px 8px; background:url(images/main/zt-gray.png) -40px -262px;}
-.icon-green-small-task-finish {padding:2px 8px; background:url(images/main/zt-green.png) -80px -262px;}
-.icon-gray-small-task-finish {padding:2px 8px; background:url(images/main/zt-gray.png) -80px -262px;}
-.icon-green-small-task-close {padding:2px 8px; background:url(images/main/zt-green.png) -100px -261px;}
-.icon-gray-small-task-close {padding:2px 8px; background:url(images/main/zt-gray.png) -100px -261px;}
-#featurebar .f-right .icon-green-big-task-create {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) 0px -242px;}
-#featurebar .f-right .icon-green-big-task-batchCreate {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) -20px -242px;}
+.icon-black-task-assignTo {padding:2px 8px; background:url(images/main/zt-black.png) -40px -262px;}
+.icon-green-task-assignTo {padding:2px 8px; background:url(images/main/zt-green.png) -40px -262px;}
+.icon-gray-task-assignTo {padding:2px 8px; background:url(images/main/zt-gray.png) -40px -262px;}
+
+.icon-black-task-start {padding:2px 8px; background:url(images/main/zt-black.png) -61px -262px;}
+.icon-green-task-start {padding:2px 8px; background:url(images/main/zt-green.png) -61px -262px;}
+.icon-gray-task-start {padding:2px 8px; background:url(images/main/zt-gray.png) -61px -262px;}
+
+.icon-black-task-finish {padding:2px 8px; background:url(images/main/zt-black.png) -80px -262px;}
+.icon-green-task-finish {padding:2px 8px; background:url(images/main/zt-green.png) -80px -262px;}
+.icon-gray-task-finish {padding:2px 8px; background:url(images/main/zt-gray.png) -80px -262px;}
+
+.icon-black-task-activate {padding:2px 8px; background:url(images/main/zt-black.png) -120px -262px;}
+.icon-green-task-activate {padding:2px 8px; background:url(images/main/zt-green.png) -120px -262px;}
+.icon-gray-task-activate {padding:2px 8px; background:url(images/main/zt-gray.png) -120px -262px;}
+
+.icon-black-task-cancel {padding:2px 8px; background:url(images/main/zt-black.png) -141px -262px;}
+
+.icon-green-task-close {padding:2px 8px; background:url(images/main/zt-green.png) -100px -261px;}
+.icon-gray-task-close {padding:2px 8px; background:url(images/main/zt-gray.png) -100px -261px;}
+
+#featurebar .f-right .icon-black-task-create {padding:2px 7px 2px 10px; background:url(images/main/zt-green.png) 0px -262px;}
+#featurebar .f-right .icon-black-task-batchCreate {padding:2px 7px 2px 10px; background:url(images/main/zt-black.png) -20px -262px;}
/* Bug icons. */
.severity1 {padding:2px 8px; background:url(images/main/zt-green.png) 0px -381px;}
@@ -471,16 +504,34 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
.severity4 {padding:2px 8px; background:url(images/main/zt-green.png) -60px -381px;}
.severity5 {padding:2px 8px; background:url(images/main/zt-green.png) -80px -381px;}
.severity6 {padding:2px 8px; background:url(images/main/zt-green.png) -100px -381px;}
-.icon-green-small-bug-createBug {padding:2px 8px; background:url(images/main/zt-green.png) -40px -342px;}
-.icon-gray-small-bug-createBug {padding:2px 8px; background:url(images/main/zt-gray.png) -40px -342px;}
-.icon-green-small-bug-resolve {padding:2px 8px; background:url(images/main/zt-green.png) -60px -301px;}
-.icon-gray-small-bug-resolve {padding:2px 8px; background:url(images/main/zt-gray.png) -60px -301px;}
-.icon-green-small-bug-close {padding:2px 8px; background:url(images/main/zt-green.png) -80px -301px;}
-.icon-gray-small-bug-close {padding:2px 8px; background:url(images/main/zt-gray.png) -80px -301px;}
-#featurebar .f-right .icon-green-big-bug-create, caption .f-right .icon-green-big-bug-create {padding:2px 8px; background:url(images/main/zt-green.png) 0px -202px;}
-#featurebar .f-right .icon-green-big-bug-customFields {padding:2px 8px; background:url(images/main/zt-green.png) -161px -282px;}
+
+.icon-black-bug-confirmBug {padding:2px 8px; background:url(images/main/zt-black.png) -40px -302px;}
+
+.icon-black-bug-assignTo {padding:2px 8px; background:url(images/main/zt-black.png) -40px -262px;}
+
+.icon-black-bug-createBug {padding:2px 8px; background:url(images/main/zt-black.png) -40px -342px;}
+.icon-green-bug-createBug {padding:2px 8px; background:url(images/main/zt-green.png) -40px -342px;}
+.icon-gray-bug-createBug {padding:2px 8px; background:url(images/main/zt-gray.png) -40px -342px;}
+
+.icon-black-bug-resolve {padding:2px 8px; background:url(images/main/zt-black.png) -60px -301px;}
+.icon-green-bug-resolve {padding:2px 8px; background:url(images/main/zt-green.png) -60px -301px;}
+.icon-gray-bug-resolve {padding:2px 8px; background:url(images/main/zt-gray.png) -60px -301px;}
+
+.icon-green-bug-close {padding:2px 8px; background:url(images/main/zt-green.png) -80px -301px;}
+.icon-gray-bug-close {padding:2px 8px; background:url(images/main/zt-gray.png) -80px -301px;}
+
+#featurebar .f-right .icon-black-bug-create, caption .f-right .icon-black-bug-create {padding:2px 8px; background:url(images/main/zt-green.png) 0px -222px;}
+#featurebar .f-right .icon-black-bug-customFields {padding:2px 8px; background:url(images/main/zt-black.png) -161px -302px;}
/* Case icons. */
-.icon-green-small-testcase-createCase {padding:1px 7px 1px 10px; background:url(images/main/zt-green.png) -120px -222px;}
-#featurebar .f-right .icon-green-big-testcase-create {padding:2px 8px; background:url(images/main/zt-green.png) 0px -320px;}
-#featurebar .f-right .icon-green-big-testcase-batchCreate {padding:2px 8px; background:url(images/main/zt-green.png) -20px -320px;}
+.icon-black-testcase-createCase {padding:1px 7px 1px 10px; background:url(images/main/zt-black.png) -120px -222px;}
+.icon-green-testcase-createCase {padding:1px 7px 1px 10px; background:url(images/main/zt-green.png) -120px -222px;}
+
+#featurebar .f-right .icon-black-testcase-create {padding:2px 8px; background:url(images/main/zt-green.png) 0px -340px;}
+#featurebar .f-right .icon-black-testcase-batchCreate {padding:2px 8px; background:url(images/main/zt-black.png) -20px -340px;}
+
+.link-button {padding:5px 0px 5px 12px; margin-left:-1px; background:url(images/main/link-button.png) 0px 0px repeat-x; border-right:1px solid RGB(234, 234, 234); border-left:1px solid RGB(234, 234, 234)}
+.link-button:hover {background:RGB(200, 200, 200)}
+.link-button a{color:black; font-weight:normal; font-size:12px;}
+.link-button a:hover {color:RGB(234, 0, 0);}
+
diff --git a/www/theme/lang/en.css b/www/theme/lang/en.css
index 7d7ca760ed..95ba345e26 100644
--- a/www/theme/lang/en.css
+++ b/www/theme/lang/en.css
@@ -2,5 +2,5 @@
.w-hour {width:85px}
.w-resolution {width:85px}
.side .rowhead {width:100px}
-#titlebar #main{width:60%}
-#titlebar div{width:40%}
+#titlebar #main{width:40%}
+#titlebar div{width:60%}