* finish task #780

This commit is contained in:
areyou123456
2012-05-16 04:49:13 +00:00
parent ea302c3547
commit 06bcf0f8bb
4 changed files with 49 additions and 34 deletions
+2
View File
@@ -24,6 +24,8 @@ $lang->productplan->unlinkedStories = 'Stories unlinked';
$lang->productplan->confirmDelete = "Are you sure to delete this plan?";
$lang->productplan->confirmUnlinkStory = "Are you sure to remove this story?";
$lang->productplan->basicInfo ='Basic Info';
$lang->productplan->id = 'ID';
$lang->productplan->product = 'Product';
$lang->productplan->title = 'Title';
+2
View File
@@ -24,6 +24,8 @@ $lang->productplan->unlinkedStories = '未关联需求列表';
$lang->productplan->confirmDelete = "您确认删除该计划吗?";
$lang->productplan->confirmUnlinkStory = "您确认移除该需求吗?";
$lang->productplan->basicInfo ='基本信息';
$lang->productplan->id = '编号';
$lang->productplan->product = '产品';
$lang->productplan->title = '名称';
+2
View File
@@ -24,6 +24,8 @@ $lang->productplan->unlinkedStories = '未關聯需求列表';
$lang->productplan->confirmDelete = "您確認刪除該計劃嗎?";
$lang->productplan->confirmUnlinkStory = "您確認移除該需求嗎?";
$lang->productplan->basicInfo ='基本信息';
$lang->productplan->id = '編號';
$lang->productplan->product = '產品';
$lang->productplan->title = '名稱';
+43 -34
View File
@@ -12,39 +12,28 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/tablesorter.html.php';?>
<table class='table-1'>
<table class='cont-rt5'>
<caption><?php echo $plan->title . $lang->colon . $lang->productplan->view;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->productplan->title;?></th>
<td <?php if($plan->deleted) echo "class='deleted'";?>><?php echo $plan->title;?></th>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->productplan->begin;?></th>
<td><?php echo $plan->begin;?></th>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->productplan->end;?></th>
<td><?php echo $plan->end;?></th>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->productplan->desc;?></th>
<td class='content'><?php echo $plan->desc;?></th>
</tr>
</table>
<div class='a-center f-16px strong'>
<?php
$browseLink = $this->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);
?>
</div>
<?php include '../../common/view/action.html.php';?>
<table class='table-1 tablesorter a-center'>
<tr valign='top'>
<td>
<fieldset>
<legend><?php echo $lang->productplan->desc;?></legend>
<div class='content'><?php echo $product->desc;?></div>
</fieldset>
<?php include '../../common/view/action.html.php';?>
<div class='a-center f-16px strong'>
<?php
$browseLink = $this->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);
?>
</div>
<table class='table-1 tablesorter a-center'>
<caption class='caption-tl'><?php echo $plan->title .$lang->colon . $lang->productplan->linkedStories;?></caption>
<thead>
<tr class='colhead'>
@@ -64,7 +53,7 @@
<?php foreach($planStories as $story):?>
<?php
$viewLink = $this->createLink('story', 'view', "storyID=$story->id");
$totalEstimate += $story->estimate;
$totalEstimate += $story->estimate;
?>
<tr>
<td><?php echo html::a($viewLink, $story->id);?></td>
@@ -80,5 +69,25 @@
<?php endforeach;?>
</tbody>
<tfoot><tr><td colspan='9' class='a-right'><?php printf($lang->product->storySummary, count($planStories), $totalEstimate);?> </td></tr></tfoot>
</table>
</table>
</td>
<td class="divider"></td>
<td class="side">
<fieldset>
<legend><?php echo $lang->productplan->basicInfo?></legend>
<table class='table-1 a-left'>
<tr>
<th width='25%' class='a-right'><?php echo $lang->productplan->title;?></th>
<td <?php if($plan->deleted) echo "class='deleted'";?>><?php echo $plan->title;?></th>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->productplan->begin;?></th>
<td><?php echo $plan->begin;?></th>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->productplan->end;?></th>
<td><?php echo $plan->end;?></th>
</tr>
</table>
</fieldset>
<?php include '../../common/view/footer.html.php';?>