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

<!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="images/adminstyle.css" type="text/css" rel="stylesheet">
			<script language="javascript">
			function CheckDelBox(box)    
			{
					for (var i=0;i<document.Form1.elements.length;i++)
				{
					var e = document.Form1.elements[i];
					if ( (e.type=='checkbox') )
					{
			            
							var o=e.name.lastIndexOf('deleteCheckbox');
			                
							if(o!=-1)
							{
								e.checked = box.checked;
							}
			        
					}
				}
			}
			</script>
					<script language="JavaScript">
<!--
//By Dicky 2005-2-17 11:16:49
function Window_Load(Flag)
{

if (Flag == 0)
{

  parent.document.all['Loading'].style.display = 'block';
  parent.document.all['Loading'].style.width = '500';
   parent.document.all['Loading'].style.height = '60';
  //show the window
}
else
{
  parent.document.all['Loading'].style.display = 'none';
  
  //hide the window
}
}
//-->
</script>
	</HEAD>
		<body rightmargin="0" leftmargin="0" topmargin="0" onload="Window_Load(1);">
	
		<form id="Form1" method="post" runat="server" onsubmit="Window_Load(0);">
<table width="100%" height="550" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
<div class="top">
          <table width="100%" align="center" cellpadding="0" cellspacing="0" background="img/labelbg.gif" bgcolor="#EDF6FF">
            <tr>
		      <td width="4%" height="30" class="tl"></td>
		      <td width="91%" class="tm"><span class="tt">评论/留言 &gt;&gt; 
                <asp:Label ID="lbTitle" Runat="server">店铺评论回复管理</asp:Label>
            </span></td>
		      <td width="0%" class="tm2"><span class="tt"></span></td>
		<td width="5%" class="tr"></td>
	</tr>
</table>
</div>
        <div class="mframe"> <br>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
              <td class="ml"><br>
              </td>
    <td  class="mm" align="left" valign="top">
<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                  <tr>
                    <td bgcolor="#FFFFFF" valign="top" > 
                      <table width="95%" align="center" cellpadding="0"  cellspacing="0">
                        <tr>
		<td class="ml1"></td>
		<td class="mm1">
			<table cellSpacing="0" cellPadding="0" width="100%" align="center"
				border="0">
				<tr>
					<td height="23" class="forumRowHighlight">
						<asp:Button id="btnDelete" CssClass="btn1" runat="server" Text="删除回复"></asp:Button>
                       &nbsp;<br />
						<asp:datagrid id="dgReviews" runat="server" AllowPaging="True" PagerStyle-Mode="NumericPages"
							AutoGenerateColumns="False" DataKeyField="ID" Width="100%" HorizontalAlign="Center"
							HeaderStyle-CssClass="summary-title" BorderColor="#E0E0E0" BorderWidth="1px" OnItemDataBound="dgReviews_ItemDataBound" >
							<HeaderStyle Font-Bold="True" CssClass="head" BackColor="#EDF6FF" Height="35px"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn>
									<HeaderTemplate>
										<input type="checkbox" id="checkDel" onClick="CheckDelBox(this)" />
									</HeaderTemplate>
									<ItemTemplate>
										<asp:CheckBox id="deleteCheckbox" runat="server" AutoPostBack="False"></asp:CheckBox>
                                       
									</ItemTemplate>
                                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                        Font-Underline="False" HorizontalAlign="Center" />
                                    <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                        Font-Underline="False" HorizontalAlign="Center" />
								</asp:TemplateColumn>
									<asp:TemplateColumn Visible="False">
								
									<ItemTemplate>
                                        <asp:Label ID="proid" runat="server" Text=<%# GetProductID(DataBinder.Eval(Container.DataItem, "rid").ToString()) %>></asp:Label>
									</ItemTemplate>
                                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" HorizontalAlign="Center" />
                                        <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                            Font-Underline="False" HorizontalAlign="Center" />
								</asp:TemplateColumn>
								<asp:TemplateColumn Visible="False">
								
									<ItemTemplate>
                                        <asp:TextBox ID="tb" runat="server" Text=<%# GetProductID(DataBinder.Eval(Container.DataItem, "rid").ToString()) %>></asp:TextBox>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="对应的店铺">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="70px"></ItemStyle>
									<ItemTemplate>
										<a href='../company/company_<%# GetProductID(DataBinder.Eval(Container.DataItem, "rid").ToString()) %>.html' target=_blank>
											<%# GetProductN(DataBinder.Eval(Container.DataItem, "rid").ToString())%>
										</a>
									</ItemTemplate>
								</asp:TemplateColumn>
							
								<asp:TemplateColumn HeaderText="对应的评论内容">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left"></ItemStyle>
									<ItemTemplate>
											<%# GetProductPL(DataBinder.Eval(Container.DataItem, "rid").ToString())%>
									</ItemTemplate>
									
								</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="回复内容">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left"></ItemStyle>
									<ItemTemplate>
											<%# DataBinder.Eval(Container.DataItem, "hnr")%>
									</ItemTemplate>
									
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="用户名">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left" Width="180px"></ItemStyle>
									<ItemTemplate>
										
										对应会员：<%# GetMemberName(DataBinder.Eval(Container.DataItem, "mid").ToString()) %>
						           
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="其它信息">
									<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left" Width="120px"></ItemStyle>
									<ItemTemplate>
										时间：<%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "AddTime").ToString()).ToString("yyyy-MM-dd") %>
										
									</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"></PagerStyle>
                            <ItemStyle Height="25px" />
						</asp:datagrid>
					</td>
				</tr>
			</table>
		</td>
		<td class="mr1"></td>
	</tr>
</table>
                    </td>
  </tr>
</table>


<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>
</td>
    <td  class="mr"></td>
  </tr>
</table>
<table width="100%" align="center" cellspacing="0" cellpadding="0">
	<tr>
		<td class="bl"></td>
		<td class="bm">&nbsp;</td>
		<td class="br"></td>
	</tr>
</table>

</div>
    </td>
  </tr>
</table>
		</form>
	</body>
</HTML>
