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 --- .../chartsalestopaymentmethod/all.phtml | 91 ++++++++++++++++++++++ .../chartsalestopaymentmethod/data.phtml | 68 ++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml create mode 100644 views/mods/mod_statistics/chartsalestopaymentmethod/data.phtml (limited to 'views/mods/mod_statistics/chartsalestopaymentmethod') diff --git a/views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml b/views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml new file mode 100644 index 0000000..c519090 --- /dev/null +++ b/views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml @@ -0,0 +1,91 @@ +render(WPSG_PATH_VIEW.'/mods/mod_statistics/simplefilter.phtml'); ?> + +view['chart']['data']['records'])) { ?> + +
+ +
+

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