<div id="vtabContent">
    <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&settings=billing";
        }else{
            this.location = "index.php?fuse=admin&view=ListCoupons&type=archived&settings=billing";
        }
    }
    </script>
    <div id="gridheader" class="blue-box" style="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 id="coupon-grid"></div>
    
    <div class="table-summary-notice" style="margin-bottom:10px;margin-top:10px;">
        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>