From af3ccff28378b2627cd49b36295d19558c2d2f3e Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 25 Dec 2009 13:10:37 +0000 Subject: [PATCH] * now ie6 suport auto width. --- trunk/module/index/control.php | 12 ++++++------ trunk/module/index/view/index.html.php | 1 + trunk/module/report/model.php | 3 +++ 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/trunk/module/index/control.php b/trunk/module/index/control.php index ec4b10ee8b..92c1896821 100644 --- a/trunk/module/index/control.php +++ b/trunk/module/index/control.php @@ -36,7 +36,7 @@ class index extends control public function index() { $this->loadModel('report'); - $header['title'] = $this->lang->index->common; + $this->view->header->title = $this->lang->index->common; $products = array_values($this->product->getList()); $burns = array(); @@ -44,14 +44,14 @@ class index extends control foreach($projects as $project) { $dataXML = $this->report->createSingleXML($this->project->getBurnData($project->id), $this->lang->project->charts->burn->graph); - $burns[$project->id] = $this->report->createJSChart('line', $dataXML, 300, 200); + $burns[$project->id] = $this->report->createJSChart('line', $dataXML, 'auto', 200); } $projectGroups = array_chunk($projects, 3); - $this->assign('header', $header); - $this->assign('projectGroups', $projectGroups); - $this->assign('products', $products); - $this->assign('burns', $burns); + $this->view->projectGroups = $projectGroups; + $this->view->products = $products; + $this->view->burns = $burns; + $this->view->counts = count($project); $this->display(); } diff --git a/trunk/module/index/view/index.html.php b/trunk/module/index/view/index.html.php index 838c4052a0..788c3d6894 100644 --- a/trunk/module/index/view/index.html.php +++ b/trunk/module/index/view/index.html.php @@ -79,4 +79,5 @@ --> + diff --git a/trunk/module/report/model.php b/trunk/module/report/model.php index 3de2e87f92..ced8d635e3 100644 --- a/trunk/module/report/model.php +++ b/trunk/module/report/model.php @@ -58,11 +58,14 @@ EOT; $js
EOT; }