<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="ProductComment.aspx.cs" Inherits="SocoShop.Web.Admin.ProductComment" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Import Namespace="SocoShop.Business" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script language="javascript" src="/Admin/js/calendar.js" type="text/javascript"></script>
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>商品评论列表</div>	
<ul class="search">
    <li>状态：<asp:DropDownList ID="Status" runat="server"><asp:ListItem Value="">所有</asp:ListItem><asp:ListItem Value="1">未处理</asp:ListItem><asp:ListItem Value="2">显示</asp:ListItem><asp:ListItem Value="3">不显示</asp:ListItem></asp:DropDownList> 
    商品名称：<asp:TextBox ID="Name" CssClass="input" runat="server" Height="20px" Width="100px" /> 评论标题：<asp:TextBox ID="Title" CssClass="input" runat="server" Height="20px" Width="100px" /> 
    评论时间：<SkyCES:TextBox CssClass="input" ID="StartPostDate" runat="server" RequiredFieldType="日期时间"  onfocus="cdr.show(this);"/> 到 <SkyCES:TextBox CssClass="input" ID="EndPostDate" runat="server" RequiredFieldType="日期时间"  onfocus="cdr.show(this);"/>
    <asp:Button CssClass="button" ID="SearchButton" Text=" 搜 索 " runat="server"  OnClick="SearchButton_Click" /></li>
</ul>
<ul class="listHead">
	<li style="width:5%">ID</li>
	<li style="width:30%; text-align:left;text-indent:8px;">评论标题</li>
	<li style="width:25%;text-align:left;text-indent:8px;">商品</li>  
	<li style="width:15%">时间</li>          
	<li style="width:10%">状态</li>  
	<li style="width:10%">管理</li>       
	<li style="width:5%">选择</li>        
</ul>
<asp:Repeater ID="RecordList" runat="server">
	<ItemTemplate>	     
        	<ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">
			<li style="width:5%"><%# Eval("ID") %></li>
			<li style="width:30%; text-align:left;text-indent:8px;"><%# Eval("Title") %></li>
			<li style="width:25%;text-align:left;text-indent:8px;"><%#Eval("Product.Name") %></li>  
	        <li style="width:15%"><%#Eval("PostDate") %></li>    
	        <li style="width:10%"><%# ProductCommentBLL.ReadCommentStatus(Convert.ToInt32(Eval("Status")))%></li> 
			<li style="width:10%;">
			    <a href="javascript:pop('ProductCommentAdd.aspx?ID=<%# Eval("ID") %>',800,600,'商品评论审核','ProductCommentAdd<%# Eval("ID") %>')"><img src="Style/Images/edit.gif" alt="商品评论审核" title="商品评论审核" /></a> 
			    <a href="javascript:popPageOnly('ProductReply.aspx?CommentID=<%#Eval("ID")%>',800,600,'评论回复列表','ProductReply<%# Eval("ID") %>')"><img src="Style/Images/list.gif" alt="评论回复列表" title="评论回复列表" /></a> 
			</li>
			<li style="width:5%"><input type="checkbox" name="SelectID" value="<%# Eval("ID") %>" /></li> 	        
		</ul>
        </ItemTemplate>
</asp:Repeater>
<div class="listPage"><SkyCES:CommonPager ID="MyPager" runat="server" /></div>
<div class="action">
    <asp:Button CssClass="button" ID="NoHandlerButton" Text=" 未处理 " OnClientClick="return checkSelect()" runat="server"  OnClick="NoHandlerButton_Click"/>&nbsp;
    <asp:Button CssClass="button" ID="NoShowButton" Text=" 不显示 " OnClientClick="return checkSelect()" runat="server"  OnClick="NoShowButton_Click"/>&nbsp;
    <asp:Button CssClass="button" ID="ShowButton" Text=" 显 示 " OnClientClick="return checkSelect()" runat="server"  OnClick="ShowButton_Click"/>&nbsp;
    <asp:Button CssClass="button" ID="DeleteButton" Text=" 删 除 " OnClientClick="return checkSelect()" runat="server"  OnClick="DeleteButton_Click"/>&nbsp;
    <input type="checkbox" name="All" onclick="selectAll(this)" />全选/取消
</div>
</asp:Content>
