Subversion Repositories SmartDukaan

Rev

Rev 14233 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10582 lgm 1
<?php
2
 
3
$route = $this -> router -> fetch_module().'/';
4
$data = $response['response'];
12622 anikendra 5
if(isset($subView)){	
6
	if($subView == 'b'){
7
		$temp['product_details_b'] = $data['product_details'];
8
	}elseif($subView == 'c'){
9
		$temp['product_details_c'] = $data['product_details'];		
16611 amit.gupta 10
	}elseif($subView == 'd'){
11
		$temp['product_details_d'] = $data['product_details'];
12
	}		
11752 lgm 13
	$data = $temp;
14
}
10582 lgm 15
if(isset($data) and !empty($data))
16
{
17
foreach($data as $headkey=>$value)
18
{
19
 
20
	if(isset($value['render']) and !empty($value['render']))
21
	{
22
		if(isset($value[0]) and !empty($value[0]))
23
		$this->load->view($route.$headkey,array($headkey=>$value[0]));
24
	else
25
		$this->load->view($route.$headkey,array($headkey=>array()));
26
	}
27
	else
28
		{ 
29
			if(isset($value[0]) and !empty($value[0]) and count($value[0])>1)
14233 anikendra 30
				{ 
31
					//echo print_r($value[0]);
32
				}
10582 lgm 33
		}
34
 
35
 
36
}
37
 
38
}
39
?>
40
 
41
<script src="<?=base_url().$this->config->item('current_client')?>/js/product_detail.js?version=<?=$this->config->item('cdn_version');?>" type="text/javascript"></script>
14232 anikendra 42
<!--<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>-->