<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 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>
