<div class="main_content">
    <div class="innercontent_outerbox">
        <div class="title-btn-block">
            <h1>Points Table</h1>
            <div class="btn-block">
                <a class="btn btn-theme btn-ep" href="<?php echo Yii::app()->createUrl('site/earnpoints'); ?>">Earn Points</a>
                <a class="btn btn-theme btn-rp" href="<?php echo Yii::app()->createUrl('site/redeempoints'); ?>">Redeem Points</a>
                <a class="btn btn-theme btn-ep" href="<?php echo Yii::app()->createUrl('site/wallet'); ?>">Back</a>
            </div>
        </div>
        <br />
        <table width="885" border="1" align="center" cellpadding="5" cellspacing="5" bordercolor="#999999">
            <tr>
                <td width="587" align="center" valign="middle" bgcolor="#CCCCCC"><b>Product Name</b></td>
                <td width="257" align="center" valign="middle" bgcolor="#CCCCCC"><b>Reward Point</b></td>
                <!--<td align="center" valign="middle" bgcolor="#CCCCCC"><b>Promotion From</b></td>
                <td align="center" valign="middle" bgcolor="#CCCCCC"><b>Promotion To</b></td>-->
            </tr>
            <?php
            $bgcolor = '#CCCCCC';
            ?>
                <?php foreach ($model as $eachModel): ?>
                <?php $bgcolor = ($bgcolor == "#CCCCCC") ? "" : "#CCCCCC"; ?>
                <tr>
                    <td bgcolor="<?php echo $bgcolor; ?>">
                        <?php echo $eachModel->product_name; ?>
                    </td>
                    <td bgcolor="<?php echo $bgcolor; ?>">
                        <?php echo $eachModel->rewardPoints; ?>
                    </td>
                    <!--<td bgcolor="<?php echo $bgcolor; ?>"><?php echo $eachModel->promotionFrom; ?></td>
                    <td bgcolor="<?php echo $bgcolor; ?>"><?php echo $eachModel->promotionTo; ?></td>-->
                </tr>
                <?php endforeach; ?>
        </table>
        <p><img alt="" src="http://www.dlinkmea.com/partner/uploader/partner reward_1384936031.png" style="width: 100%;margin: auto;display: block;max-width: 700px;" /></p>
        <p>&nbsp;</p>
    </div>
    <?php echo $this->renderPartial('_bottom_common_user_product_group'); ?>
