<div id="sub_menu"> 
<a href="<?php echo Yii::app()->createUrl('site/index'); ?>">Home</a>&nbsp;&nbsp;
<img width="9" height="10" src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/submenu_13.jpg">&nbsp;&nbsp;&nbsp; 
<a href="#"><?php echo UserGroup::model()->findByPk($user_group_id)->group_name; ?></a> 
<img width="9" height="10" src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/submenu_13.jpg">&nbsp;&nbsp;&nbsp; 
<a href="#"><?php echo $ProductGroup->product_group_name; ?></a> 
</div>
<div id="content">
  <div id="business_solution_leftcontent">
    
        <?php $this->renderPartial('productgroup_left_menu',array('productCategories'=>$productCategories));  ?>
      
    <?php foreach($random as $eachItem): ?>
    <div id="overview_leftimgbox"> <img src="<?php echo Yii::app()->baseUrl; ?>/media/product_images/thumbs/<?php echo ($eachItem->product_image=='')?'not_available.jpg':$eachItem->product_image; ?>" width="218" height="135" /> </div>
    <?php endforeach; ?>
  </div>
  <div id="overview_rightcontent">
    <div id="business_solution_subheadding"><?php echo $ProductGroup->product_group_name; ?></div>
    <div id="business_solution_slider"> <img src="<?php echo Yii::app()->baseUrl; ?><?php echo ($ProductGroup->product_group_image!='')?'/media/product_group_images/thumbs/'.$ProductGroup->product_group_image:'/images/front/1/switch_slider_22.jpg'; ?>" width="741" height="267" /> </div>
    	<?php 
		if($p1!=null):
		$type	=	'isIntoPromotion';
		$ribbonImage	=	'bibbon.png';
		 ?>
    <div id="business_solution_footerimgbox"><a href="<?php echo Yii::app()->createUrl('site/products',
		array(
		'id'=>$p1->product_group_id,
		'user_group_id'=>$p1->user_group_id,
		'type'=>@$type,
		'name'=>preg_replace('/[^a-z0-9_]/','',strtolower( str_replace(" ", "_", ProductGroup::model()->findByPk($p1->product_group_id)->product_group_name
		))))); ?>"><img src="<?php echo Yii::app()->baseUrl; ?>/media/product_images/thumbs/<?php echo ($p1->product_image=='')?'not_available.jpg':$p1->product_image; ?>" width="230" height="143" /><div class="product_name"><?php echo $p1->product_name; ?></div>
      
      	<div id="promotion_ribbonbanner"> <img width="109" height="109" alt="promotion" src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/<?php echo $ribbonImage; ?>"> </div> </a>
      	</div>
    	<?php endif; ?>
        
    	<?php 
		if($p2!=null):
		$type	=	'isFeaturedItem';
		$ribbonImage	=	'featureditem_ribbon.png';
		 ?>
    <div id="business_solution_footerimgbox"><a href="<?php echo Yii::app()->createUrl('site/products',
		array(
		'id'=>$p2->product_group_id,
		'user_group_id'=>$p2->user_group_id,
		'type'=>@$type,
		'name'=>preg_replace('/[^a-z0-9_]/','',strtolower( str_replace(" ", "_", ProductGroup::model()->findByPk($p2->product_group_id)->product_group_name
		))))); ?>"><img src="<?php echo Yii::app()->baseUrl; ?>/media/product_images/thumbs/<?php echo ($p2->product_image=='')?'not_available.jpg':$p2->product_image; ?>" width="230" height="143" /><div class="product_name"><?php echo $p2->product_name; ?></div>
      
      	<div id="promotion_ribbonbanner"> <img width="109" height="109" alt="promotion" src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/<?php echo $ribbonImage; ?>"> </div> </a>
      	</div>
    	<?php endif; ?>
        
    	<?php 
		if($p3!=null):
		$type	=	'New';
		$ribbonImage	=	'new_ribbon.png';
		 ?>
    <div id="business_solution_footerimgbox"><a href="<?php echo Yii::app()->createUrl('site/products',
		array(
		'id'=>$p3->product_group_id,
		'user_group_id'=>$p3->user_group_id,
		'type'=>@$type,
		'name'=>preg_replace('/[^a-z0-9_]/','',strtolower( str_replace(" ", "_", ProductGroup::model()->findByPk($p3->product_group_id)->product_group_name
		))))); ?>"><img src="<?php echo Yii::app()->baseUrl; ?>/media/product_images/thumbs/<?php echo ($p3->product_image=='')?'not_available.jpg':$p3->product_image; ?>" width="230" height="143" />
      	<div class="product_name"><?php echo $p3->product_name; ?></div>
      	<div id="promotion_ribbonbanner"> <img width="109" height="109" alt="promotion" src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/<?php echo $ribbonImage; ?>"> </div> </a>
      	</div>
    	<?php endif; ?>
        
  </div>
</div>
