<%@ Page language="c#" Codebehind="OrderFeedback.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.OrderFeedback" %>
<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="MemberHelper" Src="Modules/MemberHelper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="memberfooter" Src="Modules/memberfooter.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"-->
		<script type="text/javascript">
		    $(document).ready(function(){
		        $('#frmFeedback',window.parent.document).height($('body').height());//设置iframe的高度
		    });
		</script>
	</HEAD>
	<body>
	        <!--内容开始-->
            <form id="Form1" method="post" runat="server">
				
		        <div id="productlist">
	                <div class="product">
			            <%BindReviews(1);%>
			            <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="#dddddd">
						            <tr>
							            <td width="25%" bgcolor="#f0f0f0" align="center">订单号：<%# GetOrderNo(DataBinder.Eval(Container.DataItem, "OID").ToString()) %></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="#dddddd" 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>
	                </div>
	                <div class="page" style="display:none;">
                     <!-- 翻页开始-->
                    <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="<%=webSite %>OrderFeedback.aspx?Page=" + document.getElementById("gopage").value+ "&OrderID=<%=Request.QueryString["OrderID"] %>&type=1";
					        }
				        </script>
                    </span>
                   <!-- 翻页结束-->
	                </div>
	            </div> 
	            
                <% if(Request.QueryString["type"] != null) {%>
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
		            <tr>
	                    <td style=" background:#f0f0f0; font-weight:bold; text-align:left; font-size:12px; padding-left:10px; padding-bottom:5px; padding-top:5px; border-bottom:1px #dddddd dotted;"colspan="2"><%if (this.Request.QueryString["type"] == "1")
                                      {%>订单留言<%}else{ %>取消订单<%} %></td>
	                </tr>
		            <tr>
			            <td style="width:10%; text-align:left; padding-left:5px; padding-bottom:5px; padding-top:5px; border-bottom:1px #dddddd dotted;"><%=GetFBType()%>： </td>
			            <td style="width:90%; text-align:left; padding-left:5px; padding-bottom:5px; padding-top:5px; border-bottom:1px #dddddd dotted;"><%=GetContent()%></td>
		            </tr>
		            <tr>
			            <td style="width:10%; text-align:left; padding-left:5px; padding-bottom:5px; padding-top:5px; border-bottom:1px #dddddd dotted;"><%=GetResourceString("Content")%>： </td>
			            <td style="width:90%; text-align:left; padding-left:5px; padding-bottom:5px; padding-top:5px; border-bottom:1px #dddddd dotted;"><asp:TextBox id="txtContent" runat="server" TextMode="MultiLine" Width="313px" Height="112px"></asp:TextBox></td>
		            </tr>
		            <tr>
			            <td colspan="2" style=" text-align:left; padding-left:20%; padding-bottom:5px; padding-top:5px;"><asp:Button id="btnSent" OnClick="btnSent_Click" runat="server" Text="Submit"></asp:Button></td>
		            </tr>
	            </table>
	            <% }%>
            </form>
	        <!--内容结束-->	
	</body>
</HTML>
