<%@ Page language="c#" Codebehind="PdtAskList.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Supplier.PdtAskList" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SupplierMenu" Src="Modules/SupplierMenu.ascx" %>
<%@	Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"	%>
<%@ 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/head.inc"-->
		<title>商家中心 <%=config.SiteTitle%></title>
        <script type="text/javascript" src="inc/PdtAskList.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="style/ui.datepicker.css" />
	</head>
	<body>
			<uc1:Header id="Header1" runat="server"></uc1:Header>
			 <!--位置导航开始-->
			 <div class="path"><a href="<%=webSite %>supplier/default.<%=config.html%>">商家桌面</a> > 商品管理 > 商家问答管理</div>
			<!--位置导航结束-->
			<div class="xp-w clear">
				<div class="content-left">
					<!--会员中心导航开始-->
					<uc1:SupplierMenu id="SupplierMenu1" runat="server"></uc1:SupplierMenu>
					<!--会员中心导航结束-->
				</div>
				<div class="content-middle">	
					<%--<h3>欢迎您,<%=CurrentSupplier.RealName%></h3>
					<hr class="itemhr" />--%>
					<div class="rframe">
					    <div class="tm">商家问答管理</div>
					    <div class="mm clear">
					        <form id="Form1" runat="server" >
                                <table width=100%>
                                    <tr>
	                                <td class="right" width="10%" style="text-align:right">商品编号：</td>
	                                <td width="20%">
	                                <asp:TextBox ID="txtPid" runat="server" ></asp:TextBox>
	                                </td>
                                    <td class="right" width="10%" style="text-align:right">商品名称：</td>
	                                <td width="20%">
	                                <asp:TextBox ID="txtPname" runat="server" ></asp:TextBox>
	                                </td>
	                                <td class="right" width="10%" style="text-align:right">留言时间：</td>
	                                <td>
	                                <asp:TextBox id="txtStartTime1" runat="server"  name="txtStartTime1" value="" size="10" ></asp:TextBox>-<asp:TextBox id="txtEndTime1" runat="server" type="text" name="txtEndTime1" value="" size="10" ></asp:TextBox>&nbsp;</td>
                                    </tr>
                                  <tr>
                              	    <td class="right" style="text-align:right">买家昵称：</td>
	                                <td>
	                                <asp:TextBox ID="txtMemName" runat="server" ></asp:TextBox>
	                                </td>
                                  <td class="right" style="text-align:right">留言状态：</td>
	                              <td>
	                                    <asp:DropDownList ID="ddlRepStatus" runat=server>
	                                	    <asp:ListItem Value="9999">全部</asp:ListItem>	
	                                	    <asp:ListItem Value="0">未回复</asp:ListItem>
	                                        <asp:ListItem Value="1">已回复</asp:ListItem>
	                                    </asp:DropDownList>
                                    </td>

	                                <td class="right" style="text-align:right">回复时间：</td>
	                                <td>
	                                <asp:TextBox id="txtStartTime2" runat="server"  name="txtStartTime2" value="" size="10" ></asp:TextBox>-<asp:TextBox id="txtEndTime2" runat="server" type="text" name="txtEndTime2" value="" size="10" ></asp:TextBox>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td class="right" style="text-align:right">显示状态：</td>
	                                <td>
	                                    <asp:DropDownList ID="ddlHideStatus" runat=server>
	                                        <asp:ListItem Value="9999">请选择</asp:ListItem>
	                                        <asp:ListItem Value="0" >公开</asp:ListItem>
	                                        <asp:ListItem Value="1">隐藏</asp:ListItem>
	                                    </asp:DropDownList>
	                                </td>
                                </tr>
                            </table>
                            <hr class="itemhr" />
                            <div style="float:right ;padding:5px 0px">
                            <input type=hidden  id=hidePage value=""/>
                            <asp:Button  id="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" ></asp:Button>&nbsp;&nbsp;
                            <asp:Button  id="btnReset" runat="server" Text="重置" ></asp:Button>&nbsp;&nbsp;
                            </div>
                            <div style="clear:right"></div>
                            
						    <div class="pro_hlist">
							    <asp:DataList id="dlPdtAsk" CellPadding="4" RepeatColumns="1" 
                                    RepeatDirection="Horizontal" Width="100%" runat="server" 
                                    ForeColor="#333333" GridLines="Both" BorderColor="#c8dcf4">
								    <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                                    <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" Font-Bold="False" 
                                        Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
                                        Font-Underline="False" HorizontalAlign="Center" BorderColor="#c8dcf4" />
                                    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle HorizontalAlign="Center" Height="30" BorderColor="#c8dcf4" />
								    <HeaderTemplate>								
                                        <ItemTemplate>													
									        <table cellpadding="3" cellspacing="3" width="100%">
										        <tr>
                                                    <td width="10%" align="center">
                                                        商品号 
                              				        </td>
                                                    <td width="10%">
                                                        商品名称
											        </td>
                                                    <td width="10%">
                                                        买家昵称
											        </td>
                                                    <td width="20%">
                                                        留言内容
											        </td>										
                                                    <td width="10%">
                                                        留言状态
											        </td>
                                                    <td width="10%">
                                                        显示状态
											        </td>
											        <td width="15%">
                                                        留言时间
											        </td>
                                                    <td width="5%">
                                                        操作
											        </td>
										        </tr>
									        </table>
								        </ItemTemplate>								
								    </HeaderTemplate>
								    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
                                        Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />
								    <ItemTemplate>													
									    <table cellpadding="3" cellspacing="0" width="100%">
										    <tr>
                                                <td width="10%" align="center">
                                                    <%#DataBinder.Eval(Container.DataItem, "productid")%>
                 							    </td>
                                                <td width="10%">
                                                    <%#DataBinder.Eval(Container.DataItem, "productname")%>
											    </td>
                                                <td width="10%">
                                                    <%#DataBinder.Eval(Container.DataItem, "membername")%>
											    </td>
                                                <td width="20%">
                                                    <%#DataBinder.Eval(Container.DataItem, "body")%>
											    </td>										
                                                <td width="10%">
                                                    <%#DataBinder.Eval(Container.DataItem, "status").ToString() == "0" ? "未回复" : "已回复"%>
											    </td>
                                                <td width="10%">
                                                    <%#DataBinder.Eval(Container.DataItem, "ishide").ToString()=="False"?  "公开" : "隐藏"%>
										        </td>
                                                <td width="15%">
                                                    <%#DataBinder.Eval(Container.DataItem, "addtime")%>
											    </td>
											    <td width="5%">
                                                    <a href='PdtAskDetailView.aspx?aid=<%#DataBinder.Eval(Container.DataItem, "ProductAskID")%>'>[查看]</a>
											    </td>
										    </tr>
									    </table>
								    </ItemTemplate>
							    </asp:DataList>
				                <asp:panel id="plPage" visible="true" runat="server">
				                <!-- 翻页开始-->
				                <div class="page clear">
					                <div class="fpage1">
                                        <asp:Label ID="lblPagerInfo" runat="server"></asp:Label>

                                <asp:textbox id="gopage"  runat="server" class="gopage" size="1" />
                                <asp:button id="go" runat="server" text="Go" class="go" onclick="go_Click" />
                                    </div>
                                    <div class="fpage2">
                                        <span class="prepage"></span>
                                        <asp:Label ID="lbPage" runat="server"></asp:Label>
                                        <span class="nextpage"></span>
                                    </div>                                
				                </div>
				                <!-- 翻页结束-->
				                </asp:panel>
				                <asp:panel id="plNoProduct" visible="false" runat="server">
					                <div style="margin:20px;">
						                <h3>没有找到相应记录，请重新查询！</h3>
					                </div>
				                </asp:panel>
						    </div>
				        </form>
					    </div>
					</div>
			    </div>
			</div>
		<uc1:Helper id="Helper" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer" runat="server"></uc1:Footer>
	</body>
</html>