From a9963ac8f4804c32cb543104a3953fb7a224dafc Mon Sep 17 00:00:00 2001 From: Catouse Date: Mon, 11 May 2015 17:36:58 +0800 Subject: [PATCH] * change task report UI. --- module/task/control.php | 2 -- module/task/view/report.html.php | 26 ++++++++++++++++++-------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/module/task/control.php b/module/task/control.php index 2f012c27bf..13f549c840 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -1003,11 +1003,9 @@ class task extends control $chartOption = $this->lang->task->report->$chart; $this->task->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->datas[$chart] = $this->report->computePercent($chartData); } - $this->view->renderJS = $this->report->renderJsCharts(count($this->view->charts)); } $this->project->setMenu($this->project->getPairs(), $projectID); diff --git a/module/task/view/report.html.php b/module/task/view/report.html.php index edbd641fef..b73b6c2c72 100644 --- a/module/task/view/report.html.php +++ b/module/task/view/report.html.php @@ -11,6 +11,7 @@ */ ?> +
icons['task']);?> @@ -44,27 +45,36 @@
$chartContent):?> - - - + + @@ -74,5 +84,5 @@ - +
+
+
+
task->report->charts[$chartType];?>
+
+
+
task->report->$chartType, 'height', $lang->story->report->options->height) . 'px'; ?> -
- +
+
+ + $data):?> - - + + + +
task->report->charts[$chartType];?>
task->report->$chartType->item;?> task->report->value;?> report->percent;?>
name;?>value;?>name;?>value;?> percent * 100) . '%';?>