From 0447f20f91dc54d7989bea2d303b15de4ebc88b2 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 16 Nov 2011 16:26:13 +0100 Subject: some js outsourced --- application/controllers/StatisticsController.php | 8 +- .../views/scripts/statistics/category.phtml | 95 +--------------------- application/views/scripts/statistics/running.phtml | 93 +-------------------- application/views/scripts/statistics/success.phtml | 93 +-------------------- application/views/scripts/statistics/type.phtml | 93 +-------------------- 5 files changed, 16 insertions(+), 366 deletions(-) diff --git a/application/controllers/StatisticsController.php b/application/controllers/StatisticsController.php index b98acf4..66141c8 100755 --- a/application/controllers/StatisticsController.php +++ b/application/controllers/StatisticsController.php @@ -56,7 +56,7 @@ class StatisticsController extends Zend_Controller_Action } else { $eventList = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID'])); } - + // 1 = barPlot 2 = piePlot $ret['dataBar'] = $this->eventMapper->getCategoryPlotdata($poolID, 1); $ret['dataPie'] = $this->eventMapper->getCategoryPlotdata($poolID, 2); $ret['color'] = $this->eventcategoryMapper->getCategoryColor($poolID, null); @@ -80,7 +80,7 @@ class StatisticsController extends Zend_Controller_Action } else { $eventList = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID'])); } - + // 1 = barPlot 2 = piePlot $ret['dataBar'] = $this->eventMapper->getRunningPlotdata($poolID, 1); $ret['dataPie'] = $this->eventMapper->getRunningPlotdata($poolID, 2); @@ -103,7 +103,7 @@ class StatisticsController extends Zend_Controller_Action } else { $eventList = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID'])); } - + // 1 = barPlot 2 = piePlot $ret['dataBar'] = $this->eventreportMapper->getSuccessPlotdata($poolID, 1); $ret['dataPieS'] = $this->eventreportMapper->getSuccessPlotdata($poolID, 2); @@ -126,7 +126,7 @@ class StatisticsController extends Zend_Controller_Action } else { $eventList = $this->eventMapper->findBy(array("pbs_membershipID", $this->userIDsNamespace['membershipID'])); } - + // 1 = barPlot 2 = piePlot $ret['dataBar'] = $this->eventMapper->getTypePlotdata($poolID, 1); $ret['dataPie'] = $this->eventMapper->getTypePlotdata($poolID, 2); diff --git a/application/views/scripts/statistics/category.phtml b/application/views/scripts/statistics/category.phtml index db17b63..2f8ed37 100755 --- a/application/views/scripts/statistics/category.phtml +++ b/application/views/scripts/statistics/category.phtml @@ -11,98 +11,9 @@ - + +
All Pools - + +
All Pools - + +
diff --git a/application/views/scripts/statistics/type.phtml b/application/views/scripts/statistics/type.phtml index 6872436..b4082e6 100755 --- a/application/views/scripts/statistics/type.phtml +++ b/application/views/scripts/statistics/type.phtml @@ -11,96 +11,9 @@ - + +