+ adjust the layout.

This commit is contained in:
wangchunsheng
2009-11-13 02:49:17 +00:00
parent 7e4fbcccca
commit b206f3ea4e
2 changed files with 11 additions and 25 deletions
+8 -8
View File
@@ -38,16 +38,16 @@ class index extends control
$this->loadModel('report');
$header['title'] = $this->lang->index->common;
$projects = $this->project->getList('doing');
$products = array_values($this->product->getList());
$burns = array();
$projects = $this->project->getList('doing');
foreach($projects as $project) $burns[$project->id] = $this->report->createChart('line', $this->createLink('project', 'burnData', "project=$project->id", 'xml'), 200, 200);
$projectGroups = array_chunk($projects, 3);
$burns = array();
foreach($projects as $project) $burns[$project->id] = $this->report->createChart('line', $this->createLink('project', 'burnData', "project=$project->id", 'xml'), 300, 300);
$this->assign('header', $header);
$this->assign('projects', $projects);
$this->assign('products', $products);
$this->assign('burns', $burns);
$this->assign('header', $header);
$this->assign('projectGroups', $projectGroups);
$this->assign('products', $products);
$this->assign('burns', $burns);
$this->display();
}
+3 -17
View File
@@ -23,6 +23,7 @@
?>
<?php include '../../common/header.html.php';?>
<div class="yui-d0 yui-t7">
<?php foreach($projectGroups as $projects):?>
<div class="yui-gb">
<?php foreach($projects as $key => $project):?>
<?php
@@ -32,15 +33,7 @@
?>
<div class="yui-u <?php echo $class;?>">
<table class='table-1'>
<caption><?php echo $project->name;?></caption>
<tr>
<th width='60'><?php echo $lang->project->name;?></th>
<td><?php echo html::a($this->createLink('project', 'browse', "projectid=$project->id"), $project->name);?></td>
</tr>
<tr>
<th><?php echo $lang->project->code;?></th>
<td><?php echo $project->code;?></td>
</tr>
<caption class='a-center'><?php echo html::a($this->createLink('project', 'browse', "projectid=$project->id"), $project->name);?></caption>
<tr>
<th><?php echo $lang->project->beginAndEnd;?></th>
<td><?php echo $project->begin . ' ~ ' . $project->end;?></td>
@@ -50,18 +43,11 @@
<td class='<?php echo $project->status;?>'><?php $lang->show($lang->project->statusList, $project->status);?></td>
</tr>
<tr><td colspan='2' class='a-center'><?php echo $burns[$project->id];?></td></tr>
<tr>
<th><?php echo $lang->project->goal;?></th>
<td><?php echo nl2br($project->goal);?></td>
</tr>
<tr>
<th><?php echo $lang->project->desc;?></th>
<td><?php echo nl2br($project->desc);?></td>
</tr>
</table>
</div>
<?php endforeach;?>
</div>
<?php endforeach;?>
</div>
<!--
<div class="yui-d0 yui-t7">