Index: /mods/wpsg_mod_statistics.class.php
===================================================================
--- /mods/wpsg_mod_statistics.class.php	(revision 7554)
+++ /mods/wpsg_mod_statistics.class.php	(revision 7555)
@@ -319,22 +319,21 @@
 		} 
 		
-		function be_ajax()
-		{
-			
-			if ($_REQUEST['do'] == 'related')
-			{
-				
+		function be_ajax() {
+			
+			if ($_REQUEST['do'] == 'related') {
+		 
 				$arRelated = array();
 				
-				foreach ($this->shop->view['standardFilter'] as $index => $filter)
-				{
-					if ($index == $_REQUEST['selection'])
-					{
-						if (is_array($filter['related']))
-						{
+				foreach ($this->shop->view['standardFilter'] as $index => $filter) {
+					
+					if ($index == $_REQUEST['selection']) {
+						 
+						if (is_array($filter['related'])) {
+							 
 							foreach ($filter['related'] as $related)
 							{
 								$arRelated[] = array('name' => $this->shop->view['standardFilter'][$related]['name'], 'value' => $related);
 							}
+							
 						}	
 					}
@@ -550,7 +549,7 @@
 			 */
 
-			if (($_REQUEST['page'] == 'wpsg-Statistics') && (wpsg_getStr($_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)
+			if (($_REQUEST['page'] == 'wpsg-Statistics') && (wpsg_getStr($_REQUEST['id']) != "4")) {
+				
+				if (is_array($this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']]['js']) && count(wpsg_getArray($this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']])) > 0)
 				{
 					foreach ($this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']]['js'] as $index => $value)
@@ -569,8 +568,9 @@
 				
 				$this->shop->view['charts'][$_REQUEST['id']]['type'][$_REQUEST['type']];
-			}
-			
-			$this->shop->view['filter'] = array();
-			foreach($_REQUEST['filter'] as $k => $v) $_REQUEST['filter'][$k] = wpsg_sinput("key", $v);
+				
+			}
+			
+			$this->shop->view['filter'] = [];
+			 			
 			if (wpsg_isSizedArray($_REQUEST['filter'])) $this->shop->view['filter'] = $_REQUEST['filter'];
 			
Index: /views/mods/mod_kundenverwaltung/edit.phtml
===================================================================
--- /views/mods/mod_kundenverwaltung/edit.phtml	(revision 7554)
+++ /views/mods/mod_kundenverwaltung/edit.phtml	(revision 7555)
@@ -31,5 +31,4 @@
 	
 	<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
-	
 	<div class="wpsg_clear"></div>
 
Index: /views/mods/mod_statistics/produkt_edit_sidebar.phtml
===================================================================
--- /views/mods/mod_statistics/produkt_edit_sidebar.phtml	(revision 7554)
+++ /views/mods/mod_statistics/produkt_edit_sidebar.phtml	(revision 7555)
@@ -112,20 +112,5 @@
 			'edit_id' => $_REQUEST['edit_id']
 		)); ?>&von=' + jQuery('#st_von').val() + '&bis=' + jQuery('#st_bis').val();
-		
-		/*
-		jQuery.ajax( { 
-			url: '<?php echo $this->getUrl(wpsg_ShopController::URL_BASKET, 'wpsg_mod_statistics', 'export'); ?>',
-			data: {
-				'edit_id': <?php echo $_REQUEST['edit_id']?>,
-				'von': jQuery('#st_von').val(),
-				'bis': jQuery('#st_bis').val(),
-			},
-			success: function(data) {
-				//jQuery('#wpsg_statistic_div').replaceWith(data);
-					
-			}
-		});
-		*/
-
+		 
 		});
 
Index: /views/mods/mod_statistics/simplefilter.phtml
===================================================================
--- /views/mods/mod_statistics/simplefilter.phtml	(revision 7554)
+++ /views/mods/mod_statistics/simplefilter.phtml	(revision 7555)
@@ -32,34 +32,48 @@
 </script>
 
-<?php foreach ($this->view['charts'][$_REQUEST['id']]['type'] as $type => $data) { ?>
+<?php /* foreach ($this->view['charts'][$_REQUEST['id']]['type'] as $type => $data) { ?>
 <a class="<?php echo (($_REQUEST['type'] == $type)?'current':''); ?>" href="admin.php?page=wpsg-Statistics&amp;id=<?php echo $_REQUEST['id']; ?>&amp;type=<?php echo $type; ?>"><?php echo wpsg_hspc($data['name']); ?></a>
-<?php } ?>
+<?php } */ ?>
 
 <br />
 
 <form name="wpsg_statistics_form" id="wpsg_statistics_form" method="post" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Statistics">
-	
-	<label style="width:5em; height:2em; line-height:2em; padding:2px; display:block; float:left;" for="filter-standard"><?php echo __('Auswahl', 'wpsg'); ?></label>
-	
-	<div style="float:left;" id="filter-standard-wrapper">	
-		<select name="filter[standard]" id="filter-standard" size="1" onchange="<?php if ($_REQUEST['id'] == 0 || $_REQUEST['id'] == 1) { ?>checkForRelated(this);<?php } ?>">
-		<?php foreach ($this->view['standardFilter'] as $index => $filter) { ?>
-			<option value="<?php echo wpsg_hspc($index)?>" <?php if ($index == $this->view['filter']['standard']) { ?>selected="selected"<?php } ?>><?php echo wpsg_hspc(wpsg_getStr($filter['name'])); ?></option>
-		<?php } ?>
-		</select>
+
+	<div style="display:flex; flex-direction:row; justify-content:flex-start; align-items:center;">
+		
+		<label style="width:5em; height:2em; line-height:2em; padding:2px; display:block;" for="filter-standard"><?php echo __('Auswahl', 'wpsg'); ?></label>
+		
+		<div style="" id="filter-standard-wrapper">	
+			<select name="filter[standard]" id="filter-standard" size="1" onchange="<?php if ($_REQUEST['id'] == 0 || $_REQUEST['id'] == 1) { ?>checkForRelated(this);<?php } ?>">
+			<?php foreach ($this->view['standardFilter'] as $index => $filter) { ?>
+				<option value="<?php echo wpsg_hspc($index)?>" <?php if ($index == $this->view['filter']['standard']) { ?>selected="selected"<?php } ?>><?php echo wpsg_hspc(wpsg_getStr($filter['name'])); ?></option>
+			<?php } ?>
+			</select>
+		</div>
+		
+		<div style="" id="filter-related-wrapper">
+		
+		</div>
+		
+		<input style="margin-left:25px;" type="submit" class="button-secondary" value="<?php echo __('Anzeigen', 'wpsg'); ?>" />
+
 	</div>
 	
-	<div style="float:left;" id="filter-related-wrapper">
-	
+	<div class="customfilter" style="display:none; width:100%;">
+				
+		<?php echo wpsg_drawForm_Date('filter[day][0]',  __('von', 'wpsg'), $this->view['filter']['day'][0]['d'].'.'.$this->view['filter']['day'][0]['m'].'.'.$this->view['filter']['day'][0]['Y'], array('time' => false)); ?>
+		<?php echo wpsg_drawForm_Date('filter[day][1]',  __('bis', 'wpsg'), $this->view['filter']['day'][1]['d'].'.'.$this->view['filter']['day'][1]['m'].'.'.$this->view['filter']['day'][1]['Y'], array('time' => false)); ?>
+			
+		<?php /* if (isset($this->view['filter']['day'][0])) { ?>		
+		
+		<?php } */ ?>
+		
 	</div>
 	
-	<input style="float:left; margin-left:25px;" type="submit" class="button-secondary" value="<?php echo __('Anzeigen', 'wpsg'); ?>" />
-	
-	<div class="customfilter" style="display:none;">
-		<?php if (isset($this->view['filter']['day'][0])) { ?>
-		<?php echo wpsg_drawForm_Date('filter[day][0]',  __('von', 'wpsg'), $this->view['filter']['day'][0]['d'].'.'.$this->view['filter']['day'][0]['m'].'.'.$this->view['filter']['day'][0]['Y'], array('time' => false)); ?>
-		<?php echo wpsg_drawForm_Date('filter[day][1]',  __('bis', 'wpsg'), $this->view['filter']['day'][1]['d'].'.'.$this->view['filter']['day'][1]['m'].'.'.$this->view['filter']['day'][1]['Y'], array('time' => false)); ?>
-		<?php } ?>
-	</div>
+	<style>
+		
+		.timestamp-wrap { display:flex; flex-direction:row; justify-content:flex-start; align-items:center; }
+		
+	</style>
 	
 	<input type="hidden" id="wpsg_statistics_order" name="filter[order]" value="<?php echo wpsg_hspc($this->view['filter']['order']); ?>" />
@@ -79,17 +93,20 @@
 		jQuery('#filter-standard').bind('change', function(){
 
-			if (parseInt(jQuery(this).val()) == 11)
-			{
-				jQuery('.customfilter').css('display', 'block');	
+			if (parseInt(jQuery(this).val()) === 11) {
+				
+				jQuery('.customfilter').css('display', 'block');
+				 
 				jQuery('.customfilter .customfilter-input').each(function(index, value) { 
 					jQuery(this).removeAttr('disabled');
-				});		
-			}
-			else
-			{
+				});
+				
+			} else {
+				
 				jQuery('.customfilter').css('display', 'none');	
+				
 				jQuery('.customfilter .customfilter-input').each(function(index, value) { 
 					jQuery(this).attr('disabled', 'disabled');
-				});	
+				});
+				
 			}		
 			
Index: /views/mods/mod_statistics/statistics.phtml
===================================================================
--- /views/mods/mod_statistics/statistics.phtml	(revision 7554)
+++ /views/mods/mod_statistics/statistics.phtml	(revision 7555)
@@ -89,53 +89,55 @@
 			</div>
 		</nav>
-	</div>
-
-	<div id="wpsg-bs" >
-		<div class="wpsg_admin_submenu" >
+		 
+		<div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
+		<div class="wpsg_clear"></div>
+	
+		<div style="display:flex; flex-direction:row; justify-content:flex-start; align-items:flex-start;">
 			
-			<div class="list-group" id="wpsg_statistics_tabs">
-				<span class="list-group-head list-group-item"><?php echo __('Auswahl', 'wpsg'); ?></span>
+			<div class="wpsg_admin_submenu">
+				
+				<div class="list-group" id="wpsg_statistics_tabs">
+					<span class="list-group-head list-group-item"><?php echo __('Auswahl', 'wpsg'); ?></span>
+				
+				<?php foreach ($this->view['charts'] as $index => $chart) { ?>
+		
+					<a class="list-group-item <?php echo ((strtolower($index) == $_REQUEST['id'])?'active':''); ?>" href="admin.php?page=wpsg-Statistics&amp;id=<?php echo wpsg_hspc($index); ?>"><?php echo wpsg_hspc($chart['name']); ?></a>
+				
+				<?php } ?>
+				</div>
+		 
+			</div> 
+		
+			<div style="padding-left:15px;" class="stat_content">
+				
+				<?php 
+					
+					if (wpsg_isSizedString($this->view['chart']['data']['template']))
+					{
+						$templateFile = $this->view['chart']['data']['template'].'.phtml';		
+					}
+					else
+					{
+						$templateFile = str_replace('get', '', strtolower($this->view['standardFilter'][$this->view['filter']['standard']]['func']).'.phtml');
+					}
+						
+					$templatePath = WPSG_PATH_VIEW.'/mods/mod_statistics/'.strtolower($this->view['charts'][$_REQUEST['id']]['func']).'/'.$templateFile;
+					
+					if (is_file($templatePath)) 
+					{ 
+						$this->render($templatePath); 
+					} 
+					else 
+					{ 
+						
+						wpsg_debug($templatePath);
+						echo '<strong>'.__('UngÃŒltige Anfrage', 'wpsg').'</strong>';
+						 
+					} 
+				?>
+				
+			</div>
 			
-			<?php foreach ($this->view['charts'] as $index => $chart) { ?>
-	
-				<a class="list-group-item <?php echo ((strtolower($index) == $_REQUEST['id'])?'active':''); ?>" href="admin.php?page=wpsg-Statistics&amp;id=<?php echo wpsg_hspc($index); ?>"><?php echo wpsg_hspc($chart['name']); ?></a>
-			
-			<?php } ?>
-			</div>
-	
-			<div style="clear:both; margin-bottom:10px; margin-left:0px; margin-right:8px;"></div>
-				
 		</div>
-	</div>
-	
-	<div style="padding-right:10px; margin-left:210px; float:none;" class="subsubsub">
-		
-		<?php 
-			
-			if (wpsg_isSizedString($this->view['chart']['data']['template']))
-			{
-				$templateFile = $this->view['chart']['data']['template'].'.phtml';		
-			}
-			else
-			{
-				$templateFile = str_replace('get', '', strtolower($this->view['standardFilter'][$this->view['filter']['standard']]['func']).'.phtml');
-			}
-				
-			$templatePath = WPSG_PATH_VIEW.'/mods/mod_statistics/'.strtolower($this->view['charts'][$_REQUEST['id']]['func']).'/'.$templateFile;
-			
-			if (is_file($templatePath)) 
-			{ 
-				$this->render($templatePath); 
-			} 
-			else 
-			{ 
-				
-				wpsg_debug($templatePath);
-				echo '<strong>'.__('UngÃŒltige Anfrage', 'wpsg').'</strong>';
-				 
-			} 
-		?>
 		
 	</div>
-	
-	<div style="clear:both; margin-bottom:10px; margin-left:0px; margin-right:8px;"></div>
