<div id="sub_menu">
<a href="index.php"> Home</a>&nbsp;&nbsp;<img src="<?php echo Yii::app()->baseUrl; ?>/images/front/1/submenu_13.jpg" width="9" height="10" />&nbsp;&nbsp;&nbsp;Points table</div>
<div id="content">
  <div id="business_solution_leftcontent">
    <?php $this->renderPartial('left_menu');  ?>
    <?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"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Points Table </div>
    <div id="view_profilebox">
      <div id="view_profile">
        <div style="font-family:Arial, Helvetica, sans-serif;
   font-size:13px; text-align:left; border:1px #666 solid; width:700px;">
          <table width="700" border="0" cellspacing="2" cellpadding="5">
            <tr>
              <td width="500" align="center" valign="middle" bgcolor="#cedce7"><strong>Product Name</strong></td>
              <td width="200"align="center" valign="middle" bgcolor="#cedce7"><strong>Reward Point</strong></td>
            </tr>
            <?php foreach($model as $eachModel): ?>
            <tr>
              <td align="left" valign="top" bgcolor="#e1eaf0"><?php echo (@$eachModel->product->product_name!=null)?$eachModel->product->product_name:'Product removed'; ?></td>
              <td align="center" valign="top" bgcolor="#e1eaf0"><?php echo $eachModel->point; ?></td>
            </tr>
            <?php endforeach; ?>
            <tr>
              <td align="center" valign="top" bgcolor="#e1eaf0">&nbsp;</td>
              <td align="center" valign="top" bgcolor="#e1eaf0">&nbsp;</td>
            </tr>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>