summaryrefslogtreecommitdiff
path: root/views/mods/mod_statistics/chartsalestopaymentmethod
diff options
context:
space:
mode:
authorhartmut <noreply@maennchen1.de>2016-12-21 15:13:25 +0000
committerhartmut <noreply@maennchen1.de>2016-12-21 15:13:25 +0000
commit1a5382bd8186a4a41eb3d7ff032d7f34784ac61e (patch)
treed35c8f342d10d8229f4d9796396878b248200fc3 /views/mods/mod_statistics/chartsalestopaymentmethod
parent07d2750b65a9e0ed21061d6e3acd2501083a48a3 (diff)
Korrektur Notizen und Warnungen
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5997 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_statistics/chartsalestopaymentmethod')
-rw-r--r--views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml17
1 files changed, 13 insertions, 4 deletions
diff --git a/views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml b/views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml
index c519090..9b5fe3a 100644
--- a/views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml
+++ b/views/mods/mod_statistics/chartsalestopaymentmethod/all.phtml
@@ -17,17 +17,26 @@
<div class="wpsg_clearer"></div>
<?php
+ $barChartJS = Array();
+ $pieChartJS = Array();
+ $barChartJS['amount'] = '';
+ $barChartJS['payment'] = '';
+ $barChartJS['total'] = '';
+ $pieChartJS['amount'] = '';
+ $pieChartJS['sales'] = '';
+ $pieChartJS['percent'] = '';
+
foreach ($this->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'])."], ";
+ $pieChartJS['percent'] .= "['".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);
+ $pieChartJS['percent'] = substr($pieChartJS['percent'], 0, -2);
?>
@@ -55,7 +64,7 @@
xaxis: {
renderer: jQuery.jqplot.CategoryAxisRenderer,
ticks: payment,
- label:'<?php echo wpsg_hspc($this->view['chart']['info']['xaxis']['label']); ?>'
+ label:'<?php echo wpsg_hspc(wpsg_getStr($this->view['chart']['info']['xaxis']['label'])); ?>'
},
yaxis:{
label:'<?php echo wpsg_hspc($this->view['chart']['info']['yaxis']['label']); ?>',
@@ -68,7 +77,7 @@
highlighter: { show: false }
});
- var data = [<?php echo $pieChartJS; ?>];
+ var data = [<?php echo $pieChartJS['percent']; ?>];
var chartsalestopaymentmethodPie = jQuery.jqplot ('chartsalestopaymentmethod-pie', [data],
{