<%@ Page language="c#" Codebehind="NewPMProduct.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Manage.NewPMProduct" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
	    <!--#include file="inc/head.inc"-->
		<title>NewPMProduct</title>
		<script type="text/javascript" src="inc/calendar.js"></script>
        <script type="text/javascript" src="inc/NewProduct.js"></script>
	</head>
	<body MS_POSITIONING="GridLayout">
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" />商品管理</div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title">拍卖商品管理</div>
		        <div class="frame_content">
			        <table class="tableBorder" cellspacing="0" cellpadding="0" width="98%" align="center" border="0">
				        <tr>
					        <td>
						        <table>
							        <tr>
								        <td>期数：<asp:DropDownList id="ddlNewNumber" runat="server"></asp:DropDownList></td>
								        <td><asp:Button id="btnSearch" OnClick="btnSearch_Click" runat="server" Text="筛选" CssClass="inputbtn"></asp:Button></td>
							        </tr>
						        </table>
					        </td>
				        </tr>
				        <tr>
					        <td height="23" class="forumRowHighlight"><div id="ListMemberGroup" style="display:none;"><asp:CheckBoxList ID="chkListMemberGroup" Runat="server" RepeatColumns="2" RepeatDirection="Horizontal"></asp:CheckBoxList></div>
						        <asp:datagrid id="dgList" runat="server" PageSize="15" PagerStyle-Mode="NumericPages" AutoGenerateColumns="False"
							        DataKeyField="NewProductID" Width="100%" HorizontalAlign="Center" HeaderStyle-CssClass="summary-title">
							        <HeaderStyle Font-Bold="True" CssClass="summary-title"></HeaderStyle>
							        <Columns>
								        <asp:TemplateColumn HeaderText="序号">
									        <HeaderStyle HorizontalAlign="Center" Height="20px"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Center"></ItemStyle>
									        <ItemTemplate>
										        <%# Container.ItemIndex + 1%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="商品名称">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left"></ItemStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "ProductName")%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="商品编号">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Center"></ItemStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "ProductNo")%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="商品小图">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Center"></ItemStyle>
									        <ItemTemplate>
										        <img src='../Upload/<%# DataBinder.Eval(Container.DataItem, "Picture")%>' width="30px" height="30px" />
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="起拍价">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Right"></ItemStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "LowPrice")%>
									        </ItemTemplate>
                                            <EditItemTemplate>
										        <asp:TextBox ID="bidprice" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "LowPrice")%>' Width="50px" style="text-align:center;"></asp:TextBox>
									        </EditItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="加价幅度">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Right"></ItemStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "Range")%>
									        </ItemTemplate>
                                            <EditItemTemplate>
										        <asp:TextBox ID="range" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Range")%>' Width="50px" style="text-align:center;"></asp:TextBox>
									        </EditItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="所属期数">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left"></ItemStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "Number")%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="允许参与会员等级">
									        <HeaderStyle HorizontalAlign="Center" Width="160px"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left" Width="160px"></ItemStyle>
									        <ItemTemplate>
										        <%# BindMemberGroup(DataBinder.Eval(Container.DataItem, "MemberGroup").ToString())%>
									        </ItemTemplate>
                                            <EditItemTemplate>
										        <div id="editListMemberGroup"></div>
									        </EditItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="查看拍卖明细">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Center"></ItemStyle>
									        <ItemTemplate>
										        <a href='NewPMPDetails.aspx?PID=<%# DataBinder.Eval(Container.DataItem, "NewProductID")%>'><u>查看</u></a>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="开始时间">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Center"></ItemStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "DateFrom","{0:yyyy-MM-dd HH:mm}")%>
									        </ItemTemplate>
                                            <EditItemTemplate>
										        <asp:TextBox ID="starttime" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DateFrom","{0:yyyy-MM-dd HH:mm}")%>' Width="100px" style="text-align:center;" ReadOnly="true"></asp:TextBox>
									        </EditItemTemplate>
								        </asp:TemplateColumn>
                                        <asp:TemplateColumn HeaderText="结束时间">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Center"></ItemStyle>
									        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "DateTo","{0:yyyy-MM-dd HH:mm}")%>
									        </ItemTemplate>
                                            <EditItemTemplate>
										        <asp:TextBox ID="endtime" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DateTo","{0:yyyy-MM-dd HH:mm}")%>' Width="100px" style="text-align:center;" ReadOnly="true"></asp:TextBox>
									        </EditItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="是否结束">
									        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Center"></ItemStyle>
									        <ItemTemplate>
										        <a href='Actions.aspx?Action=ChangeStatusPM&NewProductID=<%# DataBinder.Eval(Container.DataItem, "NewProductID")%>&Status=<%# DataBinder.Eval(Container.DataItem, "Status")%>&PID=<%# DataBinder.Eval(Container.DataItem, "NewProductID")%>&Number=<%=Request.QueryString["Number"]%>'>
											        <img src='images/<%# DataBinder.Eval(Container.DataItem, "Status").ToString() != "2" ? "publish_False" : "publish_True"%>.png' border="0" alt="" width="15px"></a>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:EditCommandColumn HeaderText="管理" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ButtonType="LinkButton" EditText="修改" UpdateText="确定" CancelText="取消" ItemStyle-Width="55px"></asp:EditCommandColumn>
								        <asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('此操作将删除所有关于此商品的拍卖信息,确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
									        CommandName="Delete">
									        <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
								        </asp:ButtonColumn>
							        </Columns>
							        <PagerStyle Mode="NumericPages"></PagerStyle>
						        </asp:datagrid>
					        </td>
				        </tr>
			        </table>
		        </div>
	        </div>
			<div id="overDiv" style="Z-INDEX: 1000; VISIBILITY: hidden; POSITION: absolute"></div>
		</form>
		</div>
		</div>
		</div>
	</body>
</html>
