Index: /mods/mod_statistics/wpsg_customerMap.class.php
===================================================================
--- /mods/mod_statistics/wpsg_customerMap.class.php	(revision 5896)
+++ /mods/mod_statistics/wpsg_customerMap.class.php	(revision 5899)
@@ -46,5 +46,5 @@
 		public function getAll($point = 0, $params = array())
 		{
-			
+			//die('getall customer');
 			$this->shop->view['wpsg_mod_statistics']['marker'] = array();
 			
Index: /mods/wpsg_mod_gutschein.class.php
===================================================================
--- /mods/wpsg_mod_gutschein.class.php	(revision 5896)
+++ /mods/wpsg_mod_gutschein.class.php	(revision 5899)
@@ -387,6 +387,8 @@
 			
 			$bError = false;
-			$tStart = wpsg_fieldarray_todate($_REQUEST['wpsg_mod_gutschein_start']);
-			$tEnd = wpsg_fieldarray_todate($_REQUEST['wpsg_mod_gutschein_end']);
+			//$tStart = wpsg_fieldarray_todate($_REQUEST['wpsg_mod_gutschein_start']);
+			//$tEnd = wpsg_fieldarray_todate($_REQUEST['wpsg_mod_gutschein_end']);
+			$tStart = strtotime($_REQUEST['wpsg_mod_gutschein_start']);
+			$tEnd = strtotime($_REQUEST['wpsg_mod_gutschein_end']);
 			
 			// Validierung 
@@ -434,5 +436,5 @@
 			{
 				 	
-				for ($i = 0; $j < $_REQUEST['wpsg_mod_gutschein_count']; $j ++)
+				for ($i = 0; $i < $_REQUEST['wpsg_mod_gutschein_count']; $i ++)
 				{
 					
Index: /mods/wpsg_mod_statistics.class.php
===================================================================
--- /mods/wpsg_mod_statistics.class.php	(revision 5896)
+++ /mods/wpsg_mod_statistics.class.php	(revision 5899)
@@ -96,5 +96,5 @@
 		{
 		
-			if (is_admin())
+			if (is_admin() && (isset($_REQUEST['page']) && $_REQUEST['page'] == 'wpsg-Statistics'))
 			{
 				$arr = [];
@@ -109,4 +109,11 @@
 				wp_enqueue_script('wpsg-mod_statistics-gmapmc');
 				
+				if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'wpsg-Statistics')
+				{
+					wp_enqueue_style('wpsg_mod_statistics_css_jqplot', WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/lib/jqplot/jquery.jqplot.css');
+					//$this->dispatch();
+						
+				}
+
 			}
 			
@@ -525,5 +532,6 @@
 			 * Skripte fÃŒr jQPlot in AbhÃ€ngigkeit von Statistiktyp einbinden
 			 */
-			if ($_REQUEST['page'] == 'wpsg-Statistics')
+
+			if (($_REQUEST['page'] == 'wpsg-Statistics') && (wpsg_isSizedString($_REQUEST['id']) != 4))
 			{
 				if (is_array($this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']]['js']) && count(wpsg_getStr($this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']])) > 0)
@@ -563,6 +571,43 @@
 			if (method_exists($objchartClass, $chartFunction))
 			{
-				$this->shop->view['chart']['data'] = $objchartClass->$chartFunction($this->shop->view['standardFilter'][$this->shop->view['filter']['standard']]['point'], array('relatedpoint' => $this->shop->view['standardFilter'][wpsg_getStr($this->shop->view['filter']['related'])]['point'], 'order' => wpsg_getStr($this->shop->view['filter']['order']), 'sort' => wpsg_getStr($this->shop->view['filter']['sort'])));
-				$this->shop->view['chart']['info'] = $this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']];
+/*
+				$o = wpsg_getStr($this->shop->view['filter']['order']);
+				$s = wpsg_getStr($this->shop->view['filter']['sort']);
+				$r = wpsg_getStr($this->shop->view['standardFilter'][wpsg_getStr($this->shop->view['filter']['related'])]['point']);
+				$p = $this->shop->view['standardFilter'][$this->shop->view['filter']['standard']]['point'];
+				
+				//$this->shop->view['chart']['data'] = 
+				//$objchartClass->$chartFunction($this->shop->view['standardFilter'][$this->shop->view['filter']['standard']]['point'], 
+				//array('relatedpoint' => $this->shop->view['standardFilter'][wpsg_getStr($this->shop->view['filter']['related'])]['point'], 
+				//      'order' => wpsg_getStr($this->shop->view['filter']['order']), 
+				//      'sort' => wpsg_getStr($this->shop->view['filter']['sort'])));
+				
+				$this->shop->view['chart']['data'] = $objchartClass->$chartFunction($p, array('relatedpoint' => $r, 'order' => $o, 'sort' => $s));
+				
+				//if ((array_key_exists('related', $this->shop->view['filter'])) && ($this->shop->view['filter']['related'] != null))
+				//{
+				//    $this->shop->view['chart']['data'] = $objchartClass->$chartFunction($this->shop->view['standardFilter'][$this->shop->view['filter']['standard']]['point'], array('relatedpoint' => $this->shop->view['standardFilter'][wpsg_getStr($this->shop->view['filter']['related'])]['point'], 'order' => wpsg_getStr($this->shop->view['filter']['order']), 'sort' => wpsg_getStr($this->shop->view['filter']['sort'])));
+				//}
+
+				if (($_REQUEST['page'] == 'wpsg-Statistics') && (wpsg_isSizedString($_REQUEST['id']) != 4))
+				{
+					$this->shop->view['chart']['info'] = $this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']];
+				}
+*/				
+				if (($_REQUEST['page'] == 'wpsg-Statistics') && (wpsg_isSizedString($_REQUEST['id']) != 4))
+				{
+					$this->shop->view['chart']['data'] = $objchartClass->$chartFunction($this->shop->view['standardFilter'][$this->shop->view['filter']['standard']]['point'], array('relatedpoint' => $this->shop->view['standardFilter'][wpsg_getStr($this->shop->view['filter']['related'])]['point'], 'order' => wpsg_getStr($this->shop->view['filter']['order']), 'sort' => wpsg_getStr($this->shop->view['filter']['sort'])));
+					$this->shop->view['chart']['info'] = $this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']];
+				}
+				else
+				{
+					$o = wpsg_getStr($this->shop->view['filter']['order']);
+					$s = wpsg_getStr($this->shop->view['filter']['sort']);
+					$r = wpsg_getStr($this->shop->view['standardFilter'][wpsg_getStr($this->shop->view['filter']['related'])]['point']);
+					$p = $this->shop->view['standardFilter'][$this->shop->view['filter']['standard']]['point'];
+					$this->shop->view['chart']['data'] = $objchartClass->$chartFunction($p, array('relatedpoint' => $r, 'order' => $o, 'sort' => $s));
+
+				}
+				
 			}
 			
@@ -596,5 +641,5 @@
 			if (isset($_REQUEST['page']) && $_REQUEST['page'] == 'wpsg-Statistics')
 			{
-				wp_enqueue_style('wpsg_mod_statistics_css_jqplot', WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/lib/jqplot/jquery.jqplot.css');
+				//wp_enqueue_style('wpsg_mod_statistics_css_jqplot', WPSG_URL_CONTENT.'plugins/'.WPSG_FOLDERNAME.'/lib/jqplot/jquery.jqplot.css');
 			}
 			
Index: /views/admin/form/input_submit.phtml
===================================================================
--- /views/admin/form/input_submit.phtml	(revision 5896)
+++ /views/admin/form/input_submit.phtml	(revision 5899)
@@ -1,5 +1,5 @@
 <div class="form-group form-group-sm">
 
-	<label class="col-sm-6 control-label" for="<?php echo $this->view['field_id']; ?>">&nbsp;</label>
+	<label class="col-sm-6 control-label" >&nbsp;</label>
 	
 	<div class="col-sm-6">
Index: /views/mods/mod_statistics/chartturnover/day.phtml
===================================================================
--- /views/mods/mod_statistics/chartturnover/day.phtml	(revision 5896)
+++ /views/mods/mod_statistics/chartturnover/day.phtml	(revision 5899)
@@ -59,5 +59,5 @@
 
 	}
-	
+	$j++;
 ?>
 
