<%@ Page language="c#" Codebehind="PdtAskDetailView.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Supplier.PdtAskDetailView" %>
<%@ 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"	%>
<!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/commond.js"></script>
        <script type="text/javascript" src="inc/PdtAskDetailView.js"></script>
        <script type="text/javascript">
        var aid ="<%=Request.QueryString["aid"] == null ? "0" : Request.QueryString["aid"] %>";
        var shopFolder="<%=webSite %>";

        </script>
    </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 class="ptable" cellspacing="0" cellpadding="0">
					                <tr>
					                    <th class="tl">商品号：
					                    </th>
					                    <td class="tr"><%=DtPdtAsk.Rows[0]["ProductID"]%></td>
   			                        </tr>
				                    <tr>
		                                <th class="tl">商品名称：
		                                </th>
		                                <td class="tr"><%=DtPdtAsk.Rows[0]["ProductName"]%></td>
	                                </tr>
	                                <tr>
		                                <th class="tl">买家昵称：
		                                </th>
		                                <td class="tr"><%=DtPdtAsk.Rows[0]["MemberName"]%></td>
	                                </tr>
				                    <tr>
					                    <th class="tl">提问内容：
					                    </th>
					                    <td class="tr"><%=DtPdtAsk.Rows[0]["Body"]%></td>
				                    </tr>
				                    <tr>
					                    <th class="tl">提问时间：
					                    </th>
					                    <td class="tr"><%=DtPdtAsk.Rows[0]["AddTime"]%></td>
				                    </tr>
				                    <tr>
					                    <th class="tl">显示状态：
					                    </th>
					                    <td class="tr">
                                            <% if(DtPdtAsk.Rows[0]["IsHide"].ToString() =="False")
                                            {
                                                Response.Write("<span id=\"show\" style=\"display:block\">公开" + "    " + "<a  id=\"display\" style=\"display:blcok; cursor: pointer;color:blue\">[隐藏]</a></span>");
                                                //Response.Write("<span id=\"hide\" style=\"display:none\">隐藏" + "    " + "<a  id=\"display\" style=\"display:blcok; cursor: pointer;color:blue\">[公开]</a></span>");

                                            }
                                            else
                                            {
                                                Response.Write("<span id=\"hide\" style=\"display:block\">隐藏" + "    " + "<a  id=\"display\" style=\"display:blcok; cursor: pointer;color:blue\">[公开]</a></span>");
                                                //Response.Write("<span id=\"show\" style=\"display:none\">公开" + "    " + "<a  id=\"display\" style=\"display:blcok; cursor: pointer;color:blue\">[隐藏]</a></span>");
                                            }               
                                            %>
                                        </td>
				                    </tr>
				                    <tr>
					                    <th class="tl">回答内容：
					                    </th>
					                    <td class="tr"><%=DtPdtAsk.Rows[0]["Reply"]%></td>
				                    </tr>
				                    <tr>
					                    <th class="tl">回答时间：
					                    </th>
					                    <td class="tr"><%=DtPdtAsk.Rows[0]["ReplyTime"]%></td>
				                    </tr>
				                    <tr>
					                    <th class="tl">回答问题：
					                    </th>
					                    <td class="tr"><asp:TextBox  ID=txtReply style="height:100px;width:550px" runat=server MaxLength=100 TextMode=MultiLine> </asp:TextBox></td>
				                    </tr>
				                    <tr>
                                    <td colspan=2 style="text-align: center;height:50px">
                                        &nbsp;&nbsp;<asp:Button id="btnSubmit" OnClick="btnSubmit_Click" runat="server" Text="提交" CssClass="inputbtn"></asp:Button>

                                        &nbsp;&nbsp;<asp:Button id="btnReset" name="reset" runat="server" Text="重置" 
                                            CssClass="inputbtn" onclick="btnReset_Click"></asp:Button>
						                &nbsp;&nbsp;<asp:Button  id="btnBack" name="back" runat="server" Text="返回" 
                                            CssClass="inputbtn" onclick="btnBack_Click"></asp:Button>
				                    </tr>
			                    </table>
				            </form>
					    </div>
					</div>
			    </div>
			</div>
	</body>
</html>