<%@ Page language="c#" Codebehind="OrderFeedback.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.OrderFeedback" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="NavBar" Src="Modules/NavBar.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Link" Src="Modules/Link.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Bulletin" Src="Modules/Bulletin.ascx" %>
<!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/encoding.inc"-->
		<title><%=GetResourceString("OrderFeedback")%>|<%=config.SiteTitle%></title>
		<!--#include file="../../inc/head.inc"-->		
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<div id="container">
			<uc1:Header id="Header1" runat="server"></uc1:Header>
		    <!--位置导航开始-->
			<div class="path"><a href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a> > <%=GetResourceString("OrderInfo")%></div>
			<!--位置导航结束-->
			<div id="content">
				<div id="content_left_side">
					<!--会员中心导航开始-->
					<uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
					<!--会员中心导航结束-->
					<!--订单反馈开始-->
					<div class="lframe">
						<div class="tl"></div>
						<div class="tr"></div>
						<div class="tm">
						    <%=GetResourceString("OrderFeedback")%>
					    </div>
						<div class="ml"></div>
						<div class="mr"></div>
						<div class="mm">
					        <%=GetFeedback()%>
						</div>
					    <div class="bl"></div>
					    <div class="br"></div>
					    <div class="bm"></div>
					</div>
					<!--订单反馈结束-->
				</div>
				<div id="content_middle_side">
					<!--内容开始-->
					<div class="mframe">
						<div class="tl"></div>
						<div class="tr"></div>
						<div class="tm"><div class="on"><%=GetResourceString("OrderInfo")%></div></div>
						<div class="ml"></div>
						<div class="mr"></div>
						<div class="mm">
						<% if(Request.QueryString["type"] != null) {%>
						    <table cellpadding="0" cellspacing="0" border="0" class="linkinfo">
								<tr>
									<th><%=GetFBType()%>： </th>
									<td><%=GetContent()%></td>
								</tr>
								<tr>
									<th><%=GetResourceString("Content")%>： </th>
									<td><asp:TextBox id="txtContent" runat="server" TextMode="MultiLine" Width="313px" Height="112px"></asp:TextBox></td>
								</tr>
								<tr>
									<th></th>
									<td><asp:Button id="btnSent" runat="server" Text="Submit"></asp:Button></td>
								</tr>
							</table>
							<% }%>
							<div id="productlist">
						        <div class="product">
						            <b><%=GetResourceString("Poster")%></b><br>
								    <%BindReviews(5);%>
								    <asp:DataList ID="dlGuest" Runat="server" RepeatColumns="1" Width="100%">
									    <ItemStyle BackColor="#ffffff"></ItemStyle>
									    <ItemTemplate>
										    <table width="100%" cellpadding="1" cellspacing="1" border="0" align="center" bgcolor="#cccccc">
											    <tr>
												    <td width="25%" bgcolor="#F6F6F6" align="center"><a href="#" onclick='printOrder(<%# DataBinder.Eval(Container.DataItem, "OID") %>)'>订单号：<%# GetOrderNo(DataBinder.Eval(Container.DataItem, "OID").ToString()) %></a></td>
												    <td width="75%" bgcolor="#ffffff">
													    <table width="100%">
														    <tr>
															    <td><%# DataBinder.Eval(Container.DataItem, "Body") %><br>
																    <font color="#C1C1C1">
																	    <%# DataBinder.Eval(Container.DataItem, "AddTime") %>
																    </font>
															    </td>
														    </tr>
														    <tr>
															    <td><hr noshade color="#333333" size="1" style="border-style: dotted; border-width: 1" width="100%">
															    </td>
														    </tr>
														    <tr>
															    <td><b><%=GetResourceString("Reply")%>：</b><br>
																    <%# DataBinder.Eval(Container.DataItem, "Reply") %>
															    </td>
														    </tr>
													    </table>
												    </td>
											    </tr>
										    </table>
									    </ItemTemplate>
								    </asp:DataList>
								    <script language="javascript">
                                    function printOrder(oid)
                                    {
                                        temp=window.open('/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>OrderPrint.aspx?OrderID='+oid,'shopcat','width=700,height=850,scrollbars=yes,resizable=yes');
                                        temp.focus();
                                    }
								    </script>
						        </div>
						        <div class="page">
					             <!-- 翻页开始-->
                                <span>
                                    <asp:hyperlink id="hplPrev" runat="server"><%=GetResourceString("PreviousPage")%></asp:hyperlink>
									[&nbsp;
									<asp:Label ID="lbPage" Runat="server"></asp:Label>
									&nbsp;]
									<asp:hyperlink id="hplNext" runat="server"><%=GetResourceString("NextPage")%></asp:hyperlink>
                                </span>
                                <span style="padding-left:20px;">
                                   <asp:label id="lblPagerInfo" runat="server"></asp:label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="gopage" class="inputbg" size="1">
									&nbsp;<input type="button" value="Go" class="go" onclick="GoPage()">
									<script language="JavaScript" type="text/JavaScript">
										function GoPage() 
										{ 
											javascript:window.location.href="/<%=System.Configuration.ConfigurationSettings.AppSettings["ShopFolder"]%>OrderFeedback.aspx?Page=" + document.getElementById("gopage").value;
										}
									</script>
                                </span>
				               <!-- 翻页结束-->
						        </div>
						    </div> 
						</div>
					    <div class="bl"></div>
					    <div class="br"></div>
					    <div class="bm"></div>
					</div>
					<!--内容结束-->
				</div>
				<div style="clear:both;"></div>
			</div>
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>
		</form>
	</body>
</HTML>
