<%@ Page language="c#" Codebehind="ShopEvalDetailView.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Supplier.ShopEvalDetailView" %>
<%@ 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/commond.js"></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"> <a href='OrderDetailView.aspx?OrderID= <%=shopEvalDetail.OrderID%> '><%=shopEvalDetail.OrderNo%></a></td>
   			                        </tr>
				                    <tr>
		                                <th class="tl">顾客昵称：
		                                </th>
		                                <td class="tr"><%=shopEvalDetail.MemberName%></td>
	                                </tr>
	                                <tr>
		                                <th class="tl">总体评价：
		                                </th>
		                                <td class="tr"><%=GetRating((int)Math.Round(shopEvalDetail.PingFen))%></td>
	                                </tr>
				                    <tr>
					                    <th class="tl">评价标题：
					                    </th>
					                    <td class="tr"><%=shopEvalDetail.Title%></td>
				                    </tr>
				                    <tr>
					                    <th class="tl">评价内容：
					                    </th>
					                    <td class="tr"><%=shopEvalDetail.Body%></td>
				                    <tr>
					                    <th class="tl">评价时间：
					                    </th>
					                    <td class="tr"><%=shopEvalDetail.AddTime%></td>
				                    </tr>
				                    <asp:Repeater ID=rptEvalReply runat=server>
				                        <ItemTemplate>
    				                        <tr>
					                            <th class="tl">商家回复：
					                            </th>
					                            <td class="tr"><%#DataBinder.Eval(Container.DataItem, "Body")%> </td>
				                            </tr>
    				                        <tr>
					                            <th class="tl">回复时间：
					                            </th>
					                            <td class="tr"><%#DataBinder.Eval(Container.DataItem, "ReplyTime")%> </td>
				                            </tr>
				                        </ItemTemplate>
				                    </asp:Repeater>
                                    <%--判断是否可以对此商家评价进行回复--%>	
     			                    <%if (IsCanReply(shopEvalDetail.AddTime)){%>
				                    <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" runat="server" Text="重置" 
                                            CssClass="inputbtn" onclick="btnReset_Click"></asp:Button>--%>
						                &nbsp;&nbsp;<asp:Button  id="btnBack" runat="server" Text="返回" 
                                            CssClass="inputbtn" onclick="btnBack_Click"></asp:Button>
				                    </tr>
				                    <%}else{%>
								        <tr>
                                    <td colspan=2 style="text-align: center;height:50px">
						                <asp:Button  id="btnBack2" runat="server" Text="返回" CssClass="inputbtn" onclick="btnBack_Click"></asp:Button>
									    </tr>
				                    <%}%>
			                    </table>
				            </form>
					    </div>
					</div>
			    </div>
			</div>
		<uc1:Helper id="Helper" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer" runat="server"></uc1:Footer>
	</body>
</html>