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

<!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>
<style type="text/css">
#quotepanel{
    border:solid 1px #e8e8e8;
    background-color:#fffff0;
    padding:12px;
    margin:10px 10px 10px 10px;
}
#quotetitle{
    font-size:12px;
    color:#666666;
}

</style>
	</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>
						<asp:datagrid id="dgReviews" runat="server" AllowPaging="True" PagerStyle-Mode="NumericPages"
							AutoGenerateColumns="False" DataKeyField="ReviewID" Width="100%" HorizontalAlign="Center"
							HeaderStyle-CssClass="summary-title" BorderColor="Gainsboro" BorderWidth="0px" PageSize="8" >
							<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" Width="6%" />
								</asp:TemplateColumn>
									<asp:TemplateColumn Visible="False">
								
									<ItemTemplate>
                                        <asp:Label ID="proid" runat="server" Text=<%# DataBinder.Eval(Container.DataItem, "hid") %>></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=<%# DataBinder.Eval(Container.DataItem, "ProductID") %>></asp:TextBox>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="对应主题(点击查看)">
									<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
									<ItemTemplate>
									       <a href="../Topic/<%# gethdwjj(DataBinder.Eval(Container.DataItem, "hid").ToString()) %>/index_1.html" target="_blank">
											<%# GetProductName(DataBinder.Eval(Container.DataItem, "hid").ToString()) %>
											</a>
										
									</ItemTemplate>
								</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="评论内容:">
									<HeaderStyle HorizontalAlign="Left" Width="39%"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left" Width="39%"></ItemStyle>
									<ItemTemplate>
									
											<%# Getbody(DataBinder.Eval(Container.DataItem, "Body").ToString()) %>
										
									</ItemTemplate>
								</asp:TemplateColumn>
						
								<asp:TemplateColumn HeaderText="用户名">
									<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left" Width="15%"></ItemStyle>
									<ItemTemplate>
								
										对应会员：<%# GetMemberName(DataBinder.Eval(Container.DataItem, "MemberID").ToString()) %><br>
										
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="其它信息">
									<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
									<ItemStyle HorizontalAlign="Left" Width="15%"></ItemStyle>
									<ItemTemplate>
										时间：<%# DateTime.Parse(DataBinder.Eval(Container.DataItem, "AddTime").ToString()).ToString("yyyy-MM-dd") %><br>
										IP地址：<%# DataBinder.Eval(Container.DataItem, "IP") %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="状态">
									<HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center" Width="5%"></ItemStyle>
									<ItemTemplate>
									
										<%# (DataBinder.Eval(Container.DataItem, "Status").ToString()) == "1" ? "<a href=?str=qx&id=" + DataBinder.Eval(Container.DataItem, "ReviewID") + "&hid=" + DataBinder.Eval(Container.DataItem, "hid") + "><font color=FF0000>已通过</font></a>" : "<a href=?str=tg&id=" + DataBinder.Eval(Container.DataItem, "ReviewID") + "&hid=" + DataBinder.Eval(Container.DataItem, "hid") + ">未通过</a>"%>
									</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>
                                    <HeaderStyle Width="5%" />
								</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>
