<link href="<?php echo Yii::app()->baseUrl; ?>/css/bootstrap.css" rel="stylesheet">
<div class="main_content">
<div class="innercontent_outerbox">
    <div class="title-btn-block"><h1>Claim Rewards  </h1>
    <div class="btn-block">
          <a class="btn btn-theme btn-ep" href="<?php echo Yii::app()->createUrl('site/wallet'); ?>">Back</a>
    </div>
    </div>
  <div class="row">
    <div class="span8">
   <?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>
<?php echo $this->renderPartial('_bottom_common_user_product_group'); ?> 