* change report UI.

This commit is contained in:
Catouse
2015-05-12 15:42:11 +08:00
parent 95dddf0336
commit 003ffaae90
7 changed files with 46 additions and 59 deletions
+1 -4
View File
@@ -178,7 +178,6 @@ class bug extends control
{
$this->loadModel('report');
$this->view->charts = array();
$this->view->renderJS = '';
if(!empty($_POST))
{
@@ -189,11 +188,9 @@ class bug extends control
$chartOption = $this->lang->bug->report->$chart;
$this->bug->mergeChartOption($chart);
$chartXML = $this->report->createSingleXML($chartData, $chartOption->graph);
$this->view->charts[$chart] = $this->report->createJSChart($chartOption->swf, $chartXML, $chartOption->width, $chartOption->height);
$this->view->charts[$chart] = $chartOption;
$this->view->datas[$chart] = $this->report->computePercent($chartData);
}
$this->view->renderJS = $this->report->renderJsCharts(count($this->view->charts));
}
$this->bug->setMenu($this->products, $productID);