Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5261 Rev 5945
Line 2... Line 2...
2
 
2
 
3
<?php 
3
<?php 
4
 
4
 
5
	if (wpsg_isSizedArray($this->view['chart']['data'])) 
5
	if (wpsg_isSizedArray($this->view['chart']['data'])) 
6
	{
6
	{
-
 
7
		unset($this->view['chart']['data']['template']);
7
		
8
		
8
		for ($i = 0; $i < count($this->view['chart']['data']); $i++)
9
		for ($i = 0; $i < count($this->view['chart']['data']); $i++)
9
		{
10
		{
10
			
11
			
11
			$chartJS['legend'][$i] = "{";
12
			$chartJS['legend'][$i] = "{";
Line 40... Line 41...
40
							$chartJS['area']['area'.$i][] = "['".$rrecord['year'].'/'."1".'/'."1"."', ".wpsg_hspc($record['total'])."]";  
41
							$chartJS['area']['area'.$i][] = "['".$rrecord['year'].'/'."1".'/'."1"."', ".wpsg_hspc($record['total'])."]";  
41
						}
42
						}
42
					}	
43
					}	
43
					$k++;
44
					$k++;
44
				}
45
				}
45
			
46
 
46
				if ($j == count($this->view['chart']['data'][$i]['records']) - 1) { 
47
				if ($j == count($this->view['chart']['data'][$i]['records']) - 1) { 
47
			  		$chartJS['area']['area'.$i] = '['.implode(',', $chartJS['area']['area'.$i]).']'; 
48
			  		$chartJS['area']['area'.$i] = '['.implode(',', $chartJS['area']['area'.$i]).']'; 
48
			  	}
49
			  	}
49
			  	
50
			  	
50
			  	$j++;
51
			  	$j++;
Line 77... Line 78...
77
 
78
 
78
jQuery(document).ready(function(){
79
jQuery(document).ready(function(){
79
	  <?php foreach ($chartJS['area'] as $index => $area) { ?>
80
	  <?php foreach ($chartJS['area'] as $index => $area) { ?>
80
		 var <?php echo $index; ?> = <?php echo $area; ?>;
81
		 var <?php echo $index; ?> = <?php echo $area; ?>;
81
	  <?php } ?>
82
	  <?php } ?>
82
		
83
 
83
	  var chartannualturnoverLine = jQuery.jqplot('chartannualturnover-line', [<?php echo implode(',', array_keys($chartJS['area'])); ?>], {
84
	  var chartannualturnoverLine = jQuery.jqplot('chartannualturnover-line', [<?php echo implode(',', array_keys($chartJS['area'])); ?>], {
84
		  animate: true,
85
		  animate: true,
85
		  axesDefaults: {
86
		  axesDefaults: {
86
	            labelRenderer: jQuery.jqplot.CanvasAxisLabelRenderer
87
	            labelRenderer: jQuery.jqplot.CanvasAxisLabelRenderer
87
		  },
88
		  },