* finish task#1326.

This commit is contained in:
chencongzhi520@gmail.com
2013-04-17 02:01:26 +00:00
parent 08a6ef16f4
commit 0f315457f4
3 changed files with 68 additions and 60 deletions
+23 -20
View File
@@ -11,11 +11,7 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='featurebar'>
<div class='f-left'><?php echo $lang->bug->report->common;?></div>
<div class='f-right'><?php common::printRPN($this->createLink('bug', 'browse', "productID=$productID&browseType=$browseType&moduleID=$moduleID")); ?></div>
</div>
<?php include '../../common/view/colorize.html.php';?>
<table class='cont-lt1'>
<tr valign='top'>
<td class='side'>
@@ -32,25 +28,32 @@
<td class='divider'></td>
<td>
<table class='table-1'>
<caption><?php echo $lang->bug->report->common;?></caption>
<caption>
<div class='f-left'><?php echo $lang->bug->report->common;?></div>
<div class='f-right'><?php echo html::a($this->createLink('bug', 'browse', "productID=$productID&browseType=$browseType&moduleID=$moduleID"), $lang->goback);?></div>
</caption>
<?php foreach($charts as $chartType => $chartContent):?>
<tr valign='top'>
<td><?php echo $chartContent;?></td>
<td width='300'>
<table class='table-1'>
<tr>
<th><?php echo $lang->report->item;?></th>
<th><?php echo $lang->report->value;?></th>
<th><?php echo $lang->report->percent;?></th>
</tr>
<?php foreach($datas[$chartType] as $key => $data):?>
<tr class='a-center'>
<td><?php echo $data->name;?></td>
<td><?php echo $data->value;?></td>
<td><?php echo ($data->percent * 100) . '%';?></td>
</tr>
<?php endforeach;?>
</table>
<?php $height = zget($lang->bug->report->$chartType, 'height', $lang->bug->report->options->height) . 'px'; ?>
<div style="height:<?php echo $height;?>; overflow:auto">
<table class='table-1 colored'>
<caption><?php echo $lang->bug->report->charts[$chartType];?></caption>
<tr>
<th><?php echo $lang->report->item;?></th>
<th><?php echo $lang->report->value;?></th>
<th><?php echo $lang->report->percent;?></th>
</tr>
<?php foreach($datas[$chartType] as $key => $data):?>
<tr class='a-center'>
<td><?php echo $data->name;?></td>
<td><?php echo $data->value;?></td>
<td><?php echo ($data->percent * 100) . '%';?></td>
</tr>
<?php endforeach;?>
</table>
</div>
</td>
</tr>
<?php endforeach;?>
+22 -20
View File
@@ -11,11 +11,7 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='featurebar'>
<div class='f-left'><?php echo $lang->story->report->common;?></div>
<div class='f-right'><?php common::printRPN($this->createLink('product', 'browse', "productID=$productID&browseType=$browseType&moduleID=$moduleID")); ?></div>
</div>
<?php include '../../common/view/colorize.html.php';?>
<table class='cont-lt1'>
<tr valign='top'>
<td class='side'>
@@ -32,25 +28,31 @@
<td class='divider'></td>
<td>
<table class='table-1'>
<caption><?php echo $lang->story->report->common;?></caption>
<caption>
<div class='f-left'><?php echo $lang->story->report->common;?></div>
<div class='f-right'><?php echo html::a($this->createLink('product', 'browse', "productID=$productID&browseType=$browseType&moduleID=$moduleID"), $lang->goback); ?></div>
</caption>
<?php foreach($charts as $chartType => $chartContent):?>
<tr valign='top'>
<td><?php echo $chartContent;?></td>
<td width='300'>
<table class='table-1'>
<tr>
<th><?php echo $lang->report->item;?></th>
<th><?php echo $lang->report->value;?></th>
<th><?php echo $lang->report->percent;?></th>
</tr>
<?php foreach($datas[$chartType] as $key => $data):?>
<tr class='a-center'>
<td><?php echo $data->name;?></td>
<td><?php echo $data->value;?></td>
<td><?php echo ($data->percent * 100) . '%';?></td>
</tr>
<?php endforeach;?>
</table>
<div style="height:<?php echo $lang->story->report->options->height . 'px';?>; overflow:auto">
<table class='table-1 colored'>
<caption><?php echo $lang->story->report->charts[$chartType];?></caption>
<tr>
<th><?php echo $lang->report->item;?></th>
<th><?php echo $lang->report->value;?></th>
<th><?php echo $lang->report->percent;?></th>
</tr>
<?php foreach($datas[$chartType] as $key => $data):?>
<tr class='a-center'>
<td><?php echo $data->name;?></td>
<td><?php echo $data->value;?></td>
<td><?php echo ($data->percent * 100) . '%';?></td>
</tr>
<?php endforeach;?>
</table>
</div>
</td>
</tr>
<?php endforeach;?>
+23 -20
View File
@@ -11,11 +11,7 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<div id='featurebar'>
<div class='f-left'><?php echo $lang->report->common;?></div>
<div class='f-right'><?php common::printRPN($this->createLink('project', 'task', "projectID=$projectID&browseType=$browseType")); ?></div>
</div>
<?php include '../../common/view/colorize.html.php';?>
<table class='cont-lt1'>
<tr valign='top'>
<td class='side'>
@@ -33,25 +29,32 @@
<td class='divider'></td>
<td>
<table class='table-1'>
<caption><?php echo $lang->task->report->common;?></caption>
<caption>
<div class='f-left'><?php echo $lang->task->report->common;?></div>
<div class='f-right'><?php echo html::a($this->createLink('project', 'task', "projectID=$projectID&browseType=$browseType"), $lang->goback);?></div>
</caption>
<?php foreach($charts as $chartType => $chartContent):?>
<tr valign='top'>
<td><?php echo $chartContent;?></td>
<td width='300'>
<table class='table-1'>
<tr>
<th><?php echo $lang->report->item;?></th>
<th><?php echo $lang->report->value;?></th>
<th><?php echo $lang->report->percent;?></th>
</tr>
<?php foreach($datas[$chartType] as $key => $data):?>
<tr class='a-center'>
<td><?php echo $data->name;?></td>
<td><?php echo $data->value;?></td>
<td><?php echo ($data->percent * 100) . '%';?></td>
</tr>
<?php endforeach;?>
</table>
<?php $height = zget($lang->task->report->$chartType, 'height', $lang->story->report->options->height) . 'px'; ?>
<div style="height:<?php echo $height;?>; overflow:auto">
<table class='table-1 colored'>
<caption><?php echo $lang->task->report->charts[$chartType];?></caption>
<tr>
<th><?php echo $lang->report->item;?></th>
<th><?php echo $lang->report->value;?></th>
<th><?php echo $lang->report->percent;?></th>
</tr>
<?php foreach($datas[$chartType] as $key => $data):?>
<tr class='a-center'>
<td><?php echo $data->name;?></td>
<td><?php echo $data->value;?></td>
<td><?php echo ($data->percent * 100) . '%';?></td>
</tr>
<?php endforeach;?>
</table>
</div>
</td>
</tr>
<?php endforeach;?>