<div id="sub_menu"> <a href="index2.html"> Home</a>&nbsp;&nbsp;<img src="images/submenu_13.jpg" width="9" height="10" />&nbsp;&nbsp;&nbsp;Edit Profile</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;Claim Rewards </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;">
   <?php $form=$this->beginWidget('CActiveForm', array(
                'id'=>'reward-form',
                'enableAjaxValidation'=>false,
                )); ?>
                <?php //echo $form->errorSummary($model); ?>
				<?php
                foreach(Yii::app()->user->getFlashes() as $key => $message) {
                echo '<div class="flash-' . $key . '">' . $message . "</div>\n";
                }
                ?>
          <table width="100%" border="0" cellspacing="2" cellpadding="5">
            <tr>
              <td width="32%" align="left" valign="top" bgcolor="#cedce7">Redeemable Points</td>
              <td width="68%" align="center" valign="top" bgcolor="#cedce7"><?php echo $redeemableRewardPoints; ?></td>
            </tr>
            <tr>
              <td align="left" valign="top" bgcolor="#e1eaf0">Redeem Points</td>
              <td align="center" valign="top" bgcolor="#e1eaf0">
				
                <?php echo $form->textField($model,'point'); ?>
                <?php echo $form->error($model,'point'); ?>
                <?php echo CHtml::submitButton('Redeem'); ?>
                </td>
            </tr>
          </table>
          <?php $this->endWidget(); ?>
        </div>
      </div>
    </div>
  </div>
</div>