<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderWord.aspx.cs" Inherits="web.Supply.OrderWord" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Review</title><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
				    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
   <style type="text/css">
    .head {background-image: url(img/labelbg.gif);background-repeat: repeat-x;}
    </style>

	</HEAD>
	
	<body rightmargin="0" leftmargin="0" topmargin="0" >
	
		<form id="Form2" method="post" runat="server">
  
  <table width="100%" height="550"  cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top" style="height: 550px">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td height="37" class="tl" style="width: 3%"></td>
		      <td width="89%" class="tm"><span class="tt">评论/留言管理   &gt;&gt; 下载留言管理<br>
                </span></td>      <td width="1%" class="tm2"><span class="tt"></span></td>
		<td width="3%" class="tr"></td>
	</tr>
</table>    
</div>
        <div class="mframe"> <br>
    
 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td class="ml"></td>
              <td  class="mm" align="left" valign="top"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td bgcolor="#FFFFFF" valign="top" > <table width="99%"  cellspacing="0" cellpadding="0">
                        <tr> 
                          <td height="136" class="ml1"></td>
                          <td class="mm1"> <asp:datagrid id="dgReviews" runat="server" AllowPaging="True" PagerStyle-Mode="NumericPages"
							AutoGenerateColumns="False" DataKeyField="OrderReviewID" Width="100%" HorizontalAlign="Center"
							HeaderStyle-CssClass="summary-title" BorderWidth="1px" BorderColor="#E0E0E0"  > 
                              <HeaderStyle Font-Bold="True" CssClass="head" BackColor="#EDF6FF" Height="35px"></HeaderStyle>
                              <Columns>
                              <asp:TemplateColumn HeaderText="对应编号">
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" Width="70px"></ItemStyle>
                                <ItemTemplate> <a href='OrderModify.aspx?OrderID=<%# DataBinder.Eval(Container.DataItem, "OrderID") %>' target=_blank> 
                                  <%# GetOrderNo(DataBinder.Eval(Container.DataItem, "OrderID").ToString()) %>
                                  </a> </ItemTemplate>
                              </asp:TemplateColumn>
                              <asp:EditCommandColumn UpdateText="确定" HeaderText="回复" CancelText="取消" EditText="点击回复"> 
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" Width="55px"></ItemStyle>
                              </asp:EditCommandColumn>
                              <asp:TemplateColumn HeaderText="内容">
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Left" Width="300px"></ItemStyle>
                                <ItemTemplate> 内容：
                                  <%# DataBinder.Eval(Container.DataItem, "Body") %>
                                  <br>
                                  回复：
                                  <%# DataBinder.Eval(Container.DataItem, "Reply") %>
                                </ItemTemplate>
                                <EditItemTemplate> 内容：<br>
                                  <asp:TextBox ID="txtBody" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Body") %>' TextMode="MultiLine" Width="200"> 
                                  </asp:TextBox>
                                  <br>
                                  回复：<br>
                                  <asp:TextBox ID="txtReply" Runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Reply") %>' TextMode="MultiLine" Width="200"> 
                                  </asp:TextBox>
                                </EditItemTemplate>
                              </asp:TemplateColumn>
                           
                                 <asp:TemplateColumn HeaderText="性质">
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" Width="80px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False"></ItemStyle>
                                <ItemTemplate> 
                                  <%# DataBinder.Eval(Container.DataItem, "Type").ToString()=="1"?"下载留言":"撤消请求" %>
                                 
                                </ItemTemplate>
                              </asp:TemplateColumn>
                       
                               <asp:TemplateColumn HeaderText="其它信息">
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Left" Width="180px"></ItemStyle>
                                <ItemTemplate> 时间：
                                  <%# DataBinder.Eval(Container.DataItem, "AddTime") %>
                                  <br>
                                  IP地址：
                                  <%# DataBinder.Eval(Container.DataItem, "IP") %>
                                </ItemTemplate>
                              </asp:TemplateColumn>
                              <asp:TemplateColumn HeaderText="状态">
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                                <ItemTemplate> <img src='images/<%# (DataBinder.Eval(Container.DataItem, "Reply").ToString()) == "" ? "replyno.gif" : "replyyes.gif"%>' alt='<%# (DataBinder.Eval(Container.DataItem, "Reply").ToString()) == "" ? "未回复" : "已回复"%>'> 
                                </ItemTemplate>
                              </asp:TemplateColumn>
                              <asp:ButtonColumn Text="&lt;div id=&quot;de&quot; onclick=&quot;javascript:return confirm('确认删除吗？')&quot;&gt;删除&lt;/div&gt;"
									CommandName="Delete"> 
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle>
                              </asp:ButtonColumn>
                              </Columns>
                              <PagerStyle Mode="NumericPages" Height="28px"></PagerStyle>
                              <FooterStyle BackColor="#EDF6FF" /> 
                              <ItemStyle BackColor="White" /> </asp:datagrid> 
                          </td>
                          <td ></td>
                        </tr>
                      </table></td>
                  </tr>
                </table></td>
            </tr>
          </table>
        </div>
    </td>
  </tr>
</table>
	
		</form>
	</body>
</HTML>
