<%@ Page language="c#" Codebehind="ProductAsk.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Store.ProductAsk" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="/Template/XpShopFreeDemo_1_1/Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="/Template/XpShopFreeDemo_1_1/Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="/Template/XpShopFreeDemo_1_1/Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftNavTop2Level" Src="/Template/XpShopFreeDemo_1_1/Modules/LeftNavTop2Level.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"-->
		<!--#include file="../inc/show_head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/PageBar.css" rel="stylesheet" type="text/css"/>
		<script src="<%=webSite %>store/inc/ProductAsk.js" type="text/javascript"></script>
		<script src="<%=webSite %>Template/<%=config.TemplateFolder%>/inc/PageBar.js" type="text/javascript"></script>
		<script type="text/javascript">
		    var baseUrl="<%=webSite %>";
			var shopFolder="<%=webSite %>";
		    var returnUrl='<%=Request.Url.AbsoluteUri %>';
		    var productID = '<%=Request.QueryString["PID"] %>';
		    var PageSize = 10;
            var CurrentPage = 1;
            var showpage = true;
            var votewords = '您对我们的回复：<span class="vote_y">满意</span>(<a class="yesnum">{0}</a>)  <span class="vote_n">不满意</span>(<a class="notnum">{1}</a>)'
		</script>
	</head>
	<body>
		<uc1:Header id="Header1" runat="server"></uc1:Header>
		<div class="xp-w clear">
		    <!--位置导航开始-->
		    <div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;商品咨询</div>
		    <!--位置导航结束-->
			<div id="content_left">
				<!--类别导航开始-->
				<uc1:LeftNavTop2Level id="LeftNavTop2Level1" runat="server"></uc1:LeftNavTop2Level>
				<!--类别导航结束-->
			</div>
			<div id="content_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">
				        <div id="AskContent" style="width:100%;">
	                        <div class="item clear" id="template" style="display:none;">
	                            <div class="user">
                                    <div class="icon" ><img src='#' alt=''/></div>
                                    <div class="name">网友：</div>
                                    <div class="group">会员组</div>
	                            </div>
	                            <div style="float:left;">
	                            <div class="ask clear">咨询内容</div>
	                            <div class="asktime">咨询时间</div>
	                            <div class="answ clear">
	                                <div class="answbody">回复内容</div>
	                                <div class="answtime">回复时间</div>
	                            </div>
	                            <div class="askvote"><span class="ques">您对我们的回复：</span><span class="vote_y btnvote hand">满意(<span class="yesnum">1</span>)</span>&nbsp;&nbsp;<span class="vote_n btnvote hand">不满意(<span class="notnum">1</span>)</span></div>
	                            </div>
	                        </div>
	                    </div>
				        <div class="sub_container_page" id="pageDataList1_Pager"><!-- 翻页--><!-- 翻页结束--></div>
				        
				    </div>
				<div class="bl"></div>
				<div class="br"></div>
				<div class="bm"></div>
			</div>
			
			<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">
				        <%if(CurrentUser != null && CurrentUser.Name != "anonymous") {%>
				        <form id="Form1" method="post" runat="server">
		                    <table>
		                        <tr>
		                            <td valign="top">咨询内容</td>
		                            <td><asp:TextBox id="txtQuestion" runat="server" TextMode="MultiLine" Columns="80" Rows="5"></asp:TextBox></td>
		                        </tr>
		                        <tr>
		                            <td></td>
		                            <td>
		                                <asp:Button id="btnSubmit" OnClick="btnSubmit_Click" runat="server" Text="提交"></asp:Button>
		                            </td>
		                        </tr>
		                    </table>
	                    </form>
	                    <%} else {%>
	                        <div>登录后才能发表咨询 <a href='login.aspx?ReturnUrl=<%=webSite %>ProductAsk.aspx?PID=<%=Request.QueryString["PID"] %>'>请先登录</a></div>
	                    <%} %>
				    </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>
