<%@ Page Language="c#" Codebehind="ExchangeCoupons.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.ExchangeCoupons" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!--#include file="../inc/head2.inc"-->
	    <title>ExchangeCoupons</title>
	    <script src="inc/ExchangeCoupons.aspx.function.js" type="text/javascript"></script>
        <script src="inc/ExchangeCoupons.aspx.ready.js" type="text/javascript"></script>
        <script src="inc/PageBar.js" type="text/javascript"></script>
        <script type="text/javascript" src="inc/popup.js"></script>
		<script type="text/javascript" src="inc/jquery.easydrag.handler.beta2.js"></script>
		<script type="text/javascript" src="../inc/commond.js"></script>
		<script src="inc/ui.datepicker.cn.js" type="text/javascript"></script>
		<link type="text/css" rel="stylesheet" href="inc/ui.datepicker.css" />
		<link type="text/css" rel="stylesheet" href="inc/popup.css" />
		
		<style type="text/css">
		    .c1{width:5%;}
            .c3{width:15%;}
            .c4{width:5%;}
            .c5{width:10%;}
            .c6{width:10%;}
            .c7{width:20%;}
            .c8{width:5%;}
            .c11{width:5%;}
            .c12{width:5%;}
            
            .cc1{width:5%;}
            .cc2{width:95%;}
            
            .b1{ width:5%}
		    .b2{ width:30%}
		    .b3{ width:20%}
		    .b4{ width:15%}
		    .b5{ width:15%}
		    .b6{ width:15%}
		</style>
	</head>
	<body>
	    <div class="container">
		<div class="sub_container">
		<form id="Form1" method="post" runat="server">
		    <div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img alt="" src="../images/admin_title.jpg" height="9px" width="8px" align="absmiddle" />优惠券兑换管理</div>
		    <% if (Request.QueryString["Action"] != "Add" && Request.QueryString["Action"] != "Modify") { %>
		        
		        <%--添加优惠券--%>
		        <div class="sub_container_operation">
		            <table width="100%">
		                <tr>
			                <td>
			                    <input type="button" id="btnAddCoupons" name="btnAddCoupons" value="添加兑换规则" class="inputbtn" />
				                <input type="button" id="btnDelete" name="btnDelete" value="删除" class="inputbtn" />
			                </td>
			                <td align="center" style="visibility:hidden;">
				                
				            </td>
		                </tr>
		            </table>
		        </div>
		        <div class="sub_container_listhead" style="padding:0px;">
                    <table cellspacing="0" cellpadding="0" class="llist">
                        <tr id="listhead"><%--id="listhead不能少"--%>
	                        <th class="c1"><input type="checkbox" id="chkAll" name="chkAll" /></th>
	                        <th class="c3">优惠券名称</th>
	                        <th class="c4">面值</th>
	                        <th class="c5">兑换所需积分</th>
	                        <th class="c6">使用所需金额</th>
	                        <th class="c7">有效期</th>
	                        <th class="c8">状态</th>
	                        <th class="c11 Modify">修改</th>
	                        <th class="c12">删除</th>               
	                    </tr>
                    </table>
                </div>
		        <div class="sub_container_content" style="padding:0px;">
			        <table id="datas" cellspacing="0" cellpadding="0" class="llist">
				        <tr id="template" style="display:none;"><%--id="template"不能少--%>
					        <td class="c1 ccenter" id="checkbox"></td>
					        <td class="c3" id="CouponName"></td>
					        <td class="c4 ccenter" id="CouponValue"></td>
					        <td class="c5 ccenter" id="Score"></td>
					        <td class="c6 ccenter" id="MinMoney"></td>
					        <td class="c7 ccenter" id="BETime"></td>
					        <td class="c8 ccenter" id="Status"></td>					        
					        <td class="c11 ccenter" id="Modify"></td>
					        <td class="c12 ccenter" id="Delete"></td>
				        </tr>
			        </table>
		        </div>
		        <div class="sub_container_page" id="pageDataList1_Pager">
	                <!-- 翻页-->
	                <!-- 翻页结束-->
		        </div>
		        
		        
		        <%--添加优惠券End--%>
		    <%}else{ %>
		        <%--添加或修改--%>
		        
		        <table cellSpacing="0" cellPadding="0" class="ptable">
		            <tr>
		                <th class="tl">优惠券名称：</th>
		                <td class="tr">
		                    <asp:Label ID="lblCouponsName" runat="server" Height="25px" Style="line-height: 25px;vertical-align:middle;"></asp:Label>
                            <asp:DropDownList ID="ddlCouponsName" runat="server"></asp:DropDownList>
		                </td>
		            </tr>
		            <tr>
		                <th class="tl">积分兑换数额：</th>
		                <td class="tr"><asp:TextBox ID="txtCouponsPoint" runat="server" Width="200px" Height="18px" style="line-height:18px;"></asp:TextBox></td>
		            </tr>
		            <tr>
		                <th class="tl"></th>
		                <td class="tr">
		                    <asp:Button ID="btnSave" OnClick="btnSave_Click" runat="server" Text="完 成" Width="60px" CssClass="inputbtn"/>
                            <input type="button" id="btnCancel" value="取 消" class="inputbtn" />
		                </td>
		            </tr>
		        </table>
                <%--添加或修改End--%>
		    
		        <%} %>
		</form>
		</div>
		</div>
	</body>
</html>
