<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="Coupon.aspx.cs" Inherits="SocoShop.Web.Admin.Coupon" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>优惠券列表</div>	
<ul class="listHead">
	<li style="width:5%">ID</li>
	<li style="width:20%; text-align:left;text-indent:8px;">优惠券</li>
    <li style="width:5%">金额</li>    
    <li style="width:20%">最小订单产品金额</li>    
    <li style="width:30%">使用时间</li>   
	<li style="width:15%">管理</li>       
	<li style="width:5%">选择</li>        
</ul>
<asp:Repeater ID="RecordList" runat="server">
	<ItemTemplate>	     
        	<ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">
			<li style="width:5%"><%# Eval("ID") %></li>
			<li style="width:20%; text-align:left;text-indent:8px;"><%# Eval("Name") %></li>
            <li style="width:5%"><%#Eval("Money") %></li>  
            <li style="width:20%"><%#Eval("UseMinAmount")%></li>  
            <li style="width:30%"><%#Eval("UseStartDate","{0:yyyy-MM-dd}")%> 到 <%#Eval("UseEndDate","{0:yyyy-MM-dd}")%></li>   
			<li style="width:15%;">
                <a href="javascript:pop('CouponAdd.aspx?ID=<%# Eval("ID") %>',680,260,'优惠券修改','CouponAdd<%# Eval("ID") %>')"><img src="Style/Images/edit.gif" alt="修改" title="修改" /></a> 
                <a href="javascript:popPageOnly('UserCoupon.aspx?CouponID=<%# Eval("ID") %>',800,600,'用户优惠券列表','UserCoupon<%# Eval("ID") %>')"><img src="Style/Images/list.gif" alt="用户优惠券列表" title="用户优惠券列表" /></a>
                <a href="javascript:popPageOnly('CouponSend.aspx?CouponID=<%# Eval("ID") %>',800,650,'发放优惠券','CouponSend<%# Eval("ID") %>')"><img src="Style/Images/reply.gif" alt="发放优惠券" title="发放优惠券" /></a>
			</li>
			<li style="width:5%"><input type="checkbox" name="SelectID" value="<%# Eval("ID") %>" /></li> 	        
		</ul>
        </ItemTemplate>
</asp:Repeater>
<div class="listPage"><SkyCES:CommonPager ID="MyPager" runat="server" /></div>
<div class="action">
        <input type="button"  value=" 添 加 " class="button"  onclick="javascript:pop('CouponAdd.aspx',680,260,'优惠券添加','CouponAdd')"/>&nbsp;<asp:Button CssClass="button" ID="DeleteButton" Text=" 删 除 " OnClientClick="return checkSelect()" runat="server"  OnClick="DeleteButton_Click"/>&nbsp;<input type="checkbox" name="All" onclick="selectAll(this)" />全选/取消
</div>
</asp:Content>
