* fix bug 011,012.

This commit is contained in:
wangchunsheng
2010-01-05 02:23:56 +00:00
parent 5d72bcdacb
commit fd53efcf54
3 changed files with 44 additions and 23 deletions
+6 -1
View File
@@ -196,11 +196,16 @@ class project extends control
$position[] = html::a($this->createLink('project', 'browse', "projectID=$projectID"), $project->name);
$position[] = $this->lang->project->burn;
/* 生成图表。*/
$dataXML = $this->report->createSingleXML($this->project->getBurnData($project->id), $this->lang->project->charts->burn->graph);
$charts = $this->report->createJSChart('line', $dataXML, 800);
/* 赋值。*/
$this->assign('header', $header);
$this->assign('position', $position);
$this->assign('tabID', 'burn');
$this->assign('charts', $this->report->createChart('line', $this->createLink('project', 'burnData', "project=$projectID", 'xml')));
$this->assign('charts', $charts);
$this->display();
}