<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MySecKill.aspx.cs" Inherits="XpShop.WebUI.MySecKill" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!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/encoding.inc"-->
		<title>我的秒杀,<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/member.css" rel="stylesheet" type="text/css"/>
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/MySecKill.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-qgw clear">
		    <!--位置导航开始-->
		    <div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a> &nbsp;&gt;&nbsp;<a href="<%=webSite %>Center.<%=config.html %>"><%=GetResourceString("MemberCenter")%></a>&nbsp;&gt;&nbsp;我的秒杀</div>
		    <!--位置导航结束-->
			<div class="member_left">
				<!--会员中心导航开始-->
				<uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
				<!--会员中心导航结束-->
			</div>
			<div class="member_middle_right">
			    <!--内容开始-->
				<div class="mframe">
		            <div class="tl"></div>
		            <div class="tr"></div>
		            <div class="tm">我的秒杀</div>
		            <div class="ml"></div>
		            <div class="mr"></div>
		            <div class="mm">
                        <form id="Form1" method="post" runat="server">
                        <div class="mctab clear">
                            <ul>
                                <li class="<%=XpShop.Common.Utils.ReqIntParams("flag",0)==0 ? "curr" : "out"%>">
                                    <s></s>
                                    <b></b>
                                    <a href="MySecKill-0.<%=config.html%>">未生成订单</a>
                                </li>
                                <li class="<%=XpShop.Common.Utils.ReqIntParams("flag",0)==1 ? "curr" : "out"%>">
                                    <s></s>
                                    <b></b>
                                    <a href="MySecKill-1.<%=config.html%>">已生成订单</a>
                                </li>
                                <li class="<%=XpShop.Common.Utils.ReqIntParams("flag",0)==-1 ? "curr" : "out"%>">
                                    <s></s>
                                    <b></b>
                                    <a href="MySecKill--1.<%=config.html%>">已过期</a>
                                </li>
                            </ul>
                            <div class="extra hide">
                                <a class="btn btn-12" href="#"><s></s>激活实体券</a>
                                <a class="btn btn-12" href="#"><s></s>实体券有效期查询</a>
                            </div>
                        </div>
					    <table width="100%" cellspacing="0" cellpadding="0">
						    <tr>
							    <td align="center">
							    <%if (XpShop.Common.Utils.ReqIntParams("flag", 0) == 0){%>
							        <%BindSecKillPdts("dgList1", 50);%>
							        <asp:datagrid id="dgList1" CssClass="dgborder" runat="server" AutoGenerateColumns="False" DataKeyField="UID" Width="100%" HorizontalAlign="Center" BorderWidth="1" BorderColor="#d6d6d6">
						            <ItemStyle BackColor="White"></ItemStyle>
			                        <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
									    <Columns>
										    <asp:TemplateColumn HeaderText="期数">
											    <HeaderStyle HorizontalAlign="Center" Height="20px"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
													第<%# DataBinder.Eval(Container.DataItem, "RuleNo")%>期
											    </ItemTemplate>
										    </asp:TemplateColumn>											    
										    <asp:TemplateColumn HeaderText="商品名称">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="30%"></ItemStyle>
											    <ItemTemplate>
													<a href="<%=webSite %>products/product-<%# DataBinder.Eval(Container.DataItem, "ProductID") %>.<%=config.html %>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "ProductName") %></a>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="秒杀价">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
												    <%# DataBinder.Eval(Container.DataItem, "PmtPrice")%>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="秒杀时间">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
												    <%# DataBinder.Eval(Container.DataItem, "AddTime")%>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="操作">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
											    <ItemTemplate>
												    <a href="Checkout_SecKill-<%# DataBinder.Eval(Container.DataItem, "UID")%>.<%=config.html%>" target="_blank">生成订单</a>
											    </ItemTemplate>
										    </asp:TemplateColumn>
									    </Columns>
								    </asp:datagrid>
							    <%}else if (XpShop.Common.Utils.ReqIntParams("flag", 0) == 1){%>
							        <%BindSecKillPdts("dgList2", 50);%>
							        <asp:datagrid id="dgList2" CssClass="dgborder" runat="server" AutoGenerateColumns="False" DataKeyField="UID" Width="100%" HorizontalAlign="Center" BorderWidth="1" BorderColor="#d6d6d6">
									    <ItemStyle BackColor="White"></ItemStyle>
			                            <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
									    <Columns>
										    <asp:TemplateColumn HeaderText="期数">
											    <HeaderStyle HorizontalAlign="Center" Height="20px"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
													第<%# DataBinder.Eval(Container.DataItem, "RuleNo")%>期
											    </ItemTemplate>
										    </asp:TemplateColumn>											    
										    <asp:TemplateColumn HeaderText="商品名称">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="30%"></ItemStyle>
											    <ItemTemplate>
													<a href="<%=webSite %>products/product-<%# DataBinder.Eval(Container.DataItem, "ProductID") %>.<%=config.html %>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "ProductName") %></a>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="秒杀价">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
												    <%# DataBinder.Eval(Container.DataItem, "PmtPrice")%>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="秒杀时间">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
											    <ItemTemplate>
												    <%# DataBinder.Eval(Container.DataItem, "AddTime")%>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="订单号">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
												    <%# DataBinder.Eval(Container.DataItem, "OrderNo")%>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="订单时间">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="20%"></ItemStyle>
											    <ItemTemplate>
												    <%# DataBinder.Eval(Container.DataItem, "OrderTime")%>
											    </ItemTemplate>
										    </asp:TemplateColumn>
									    </Columns>
								    </asp:datagrid>
							    <%}else{ %>
							        <%BindSecKillPdts("dgList3", 50);%>
								    <asp:datagrid id="dgList3" CssClass="dgborder" runat="server" AutoGenerateColumns="False" DataKeyField="UID" Width="100%" HorizontalAlign="Center" BorderWidth="1" BorderColor="#d6d6d6">
									    <ItemStyle BackColor="White"></ItemStyle>
			                            <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
									    <Columns>
										    <asp:TemplateColumn HeaderText="期数">
											    <HeaderStyle HorizontalAlign="Center" Height="20px"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
													第<%# DataBinder.Eval(Container.DataItem, "RuleNo")%>期
											    </ItemTemplate>
										    </asp:TemplateColumn>											    
										    <asp:TemplateColumn HeaderText="商品名称">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="30%"></ItemStyle>
											    <ItemTemplate>
													<a href="<%=webSite %>products/product-<%# DataBinder.Eval(Container.DataItem, "ProductID") %>.<%=config.html %>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "ProductName") %></a>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="秒杀价">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
												    <%# DataBinder.Eval(Container.DataItem, "PmtPrice")%>
											    </ItemTemplate>
										    </asp:TemplateColumn>
										    <asp:TemplateColumn HeaderText="秒杀时间">
											    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
											    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
											    <ItemTemplate>
												    <%# DataBinder.Eval(Container.DataItem, "AddTime")%>
											    </ItemTemplate>
										    </asp:TemplateColumn>
									    </Columns>
								    </asp:datagrid>
								<%} %>
							    </td>
						    </tr>
						    <tr>
							    <td colspan="3" height="20"></td>
						    </tr>
					    </table>
	                    </form>
	                </div>
			        <div class="bl"></div>
			        <div class="br"></div>
			        <div class="bm"></div>
			    </div>
				<!--内容结束-->
			</div>
		</div>
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
	</body>
</html>