From b206f3ea4e918d82b844190808974aef89e9d92a Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 13 Nov 2009 02:49:17 +0000 Subject: [PATCH] + adjust the layout. --- module/index/control.php | 16 ++++++++-------- module/index/view/index.html.php | 20 +++----------------- 2 files changed, 11 insertions(+), 25 deletions(-) diff --git a/module/index/control.php b/module/index/control.php index 966e44659e..0adb79615e 100644 --- a/module/index/control.php +++ b/module/index/control.php @@ -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(); } diff --git a/module/index/view/index.html.php b/module/index/view/index.html.php index 2a4e06a4bb..a8d21cb80f 100644 --- a/module/index/view/index.html.php +++ b/module/index/view/index.html.php @@ -23,6 +23,7 @@ ?>
+
$project):?>
- - - - - - - - - + @@ -50,18 +43,11 @@ - - - - - - - -
name;?>
project->name;?>createLink('project', 'browse', "projectid=$project->id"), $project->name);?>
project->code;?>code;?>
createLink('project', 'browse', "projectid=$project->id"), $project->name);?>
project->beginAndEnd;?> begin . ' ~ ' . $project->end;?>show($lang->project->statusList, $project->status);?>
id];?>
project->goal;?>goal);?>
project->desc;?>desc);?>
+