From ad405c7045c6e242080ec9d3ce4c9e586b517c4f Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Thu, 14 Jan 2016 14:55:36 +0000 Subject: - Testweise 4 git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b --- .../mod_statistics/charttopsellertosales/all.phtml | 171 +++++++++++++++++++++ .../charttopsellertosales/data.phtml | 82 ++++++++++ 2 files changed, 253 insertions(+) create mode 100644 views/mods/mod_statistics/charttopsellertosales/all.phtml create mode 100644 views/mods/mod_statistics/charttopsellertosales/data.phtml (limited to 'views/mods/mod_statistics/charttopsellertosales') diff --git a/views/mods/mod_statistics/charttopsellertosales/all.phtml b/views/mods/mod_statistics/charttopsellertosales/all.phtml new file mode 100644 index 0000000..dfff484 --- /dev/null +++ b/views/mods/mod_statistics/charttopsellertosales/all.phtml @@ -0,0 +1,171 @@ +render(WPSG_PATH_VIEW.'/mods/mod_statistics/simplefilter.phtml'); ?> + +view['chart']['data']['records'])) { ?> +
+ +
+

+
+ +
+

+
+ +
+ +
+ render(WPSG_PATH_VIEW.'/mods/mod_statistics/charttopsellertosales/data.phtml'); ?> +
+ +
+ +view['chart']['data']['records'] as $data) + { + $barChartJS['payment'] .= "'".wpsg_hspc($data['name'])."', "; + $barChartJS['amount'] .= "['".wpsg_hspc($data['name'])."','".wpsg_hspc($data['amount'])."'], "; + $barChartJS['total'] .= wpsg_hspc($data['total']).", "; + $pieChartJS['amount'] .= "['".wpsg_hspc($data['name'])."', ".wpsg_hspc($data['percent-amount'])."], "; + $pieChartJS['sales'] .= "['".wpsg_hspc($data['name'])."', ".wpsg_hspc($data['percent-sales'])."], "; + } + + $barChartJS['amount'] = substr($barChartJS['amount'], 0, -2); + $barChartJS['payment'] = substr($barChartJS['payment'], 0, -2); + $barChartJS['total'] = substr($barChartJS['total'], 0, -2); + + $pieChartJS['amount'] = substr($pieChartJS['amount'], 0, -2); + $pieChartJS['sales'] = substr($pieChartJS['sales'], 0, -2); + +?> + + + + + + + + diff --git a/views/mods/mod_statistics/charttopsellertosales/data.phtml b/views/mods/mod_statistics/charttopsellertosales/data.phtml new file mode 100644 index 0000000..b13119b --- /dev/null +++ b/views/mods/mod_statistics/charttopsellertosales/data.phtml @@ -0,0 +1,82 @@ + + + + + + + + + + + + view['chart']['data']['records'] as $data) { ?> + + + + + + + + + +
+ + + + + + + get_option('wpsg_currency'); ?> + + + + + + + + + + + + + + + + + +
+ + \ No newline at end of file -- cgit v1.2.3