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 35... Line 36...
35
				{
36
				{
36
					if ($j == $k)
37
					if ($j == $k)
37
					{			
38
					{			
38
						if (mktime(0, 0, 0, $record['month'], 1, $record['year']) <= mktime(0, 0, 0, date_i18n('m'), 1, date_i18n('Y')))
39
						if (mktime(0, 0, 0, $record['month'], 1, $record['year']) <= mktime(0, 0, 0, date_i18n('m'), 1, date_i18n('Y')))
39
						{
40
						{
40
							$chartJS['area']['area'.$i][] .= "['".$j."', ".wpsg_hspc($record['total'])."]"; 
41
							$chartJS['area']['area'.$i][] = "['".$j."', ".wpsg_hspc($record['total'])."]"; 
41
						} 					
42
						} 					
42
						$chartJS['ticks']['ticks'.$i][] = '['.$j.', \''.$record['tick'].'\']'; 
43
						$chartJS['ticks']['ticks'.$i][] = '['.$j.', \''.$record['tick'].'\']'; 
43
					}	
44
					}	
44
					$k++;
45
					$k++;
45
				}
46
				}
Line 95... Line 96...
95
          },
96
          },
96
	      axes:{
97
	      axes:{
97
	        xaxis:{
98
	        xaxis:{
98
        	  rendererOptions:{tickRenderer:
99
        	  rendererOptions:{tickRenderer:
99
        		  jQuery.jqplot.CanvasAxisTickRenderer}, 
100
        		  jQuery.jqplot.CanvasAxisTickRenderer}, 
100
	          	label:'<?php echo wpsg_hspc($this->view['chart']['info']['xaxis']['label']); ?>',
101
	          	label:'<?php echo wpsg_hspc(wpsg_getStr($this->view['chart']['info']['xaxis']['label'])); ?>',
101
	          	syncTicks: false,
102
	          	syncTicks: false,
102
	          	tickOptions:{formatString:'%d'},
103
	          	tickOptions:{formatString:'%d'},
103
	          	ticks: [<?php echo implode(',', $chartJS['ticks']['ticks0']); ?>]
104
	          	ticks: [<?php echo implode(',', $chartJS['ticks']['ticks0']); ?>]
104
	          	/*tickInterval: '1 month'
105
	          	/*tickInterval: '1 month'
105
	          	min:'<?php echo date('Y', $this->view['chart']['data'][0]['min']); ?>/<?php echo date('m', $this->view['chart']['data'][0]['min']); ?>/<?php echo date('d', $this->view['chart']['data'][0]['min']); ?>',
106
	          	min:'<?php echo date('Y', $this->view['chart']['data'][0]['min']); ?>/<?php echo date('m', $this->view['chart']['data'][0]['min']); ?>/<?php echo date('d', $this->view['chart']['data'][0]['min']); ?>',