<style type="text/css">
	.x-grid3-td-billingcycles .x-grid3-cell-inner {white-space:normal;}
	.x-grid3-td-packages .x-grid3-cell-inner {white-space:normal;}
</style>

<script type="text/javascript">
function RedirectFilter(value){
    if(value==1){
        this.location = "index.php?fuse=admin&view=ListCoupons&type=active";
    }else{
        this.location = "index.php?fuse=admin&view=ListCoupons&type=archived";
    }
}
</script>

<div class="table-summary" style="margin-bottom:10px;margin-top:10px;font-weight:bold">
    If you are using PayPal Subscriptions, you should only use recurring coupons if they are indefinite. <br/>
    If you prorate, percentage coupons will only take affect on setup values, if the coupon has been set for that.
</div>

<div id="gridheader" class="blue-box" style="clear:both;padding:4px !important;">
    <table class="automation">
        <tbody>
            <tr>
                <td>
                    <div id="addcouponbutton"></div>
                </td>
                <td>
                    <span style="float:right;">
                        <select width="200px" name="couponFilter" id="couponFilter" onchange="RedirectFilter(this.value)">
                            <option {activeselected} value="1">[l]Active Coupons[/l]</option>
                            <option {archivedselected} value="-1">[l]Archived Coupons[/l]</option>
                        </select>&nbsp;&nbsp;&nbsp;
                    </span>
                </td>
            </tr>
        </tbody>
    </table>
</div>

<div style="clear:both;" id="coupon-grid"></div>
