<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="CommentList.aspx.cs" Inherits="PPFOR.Admin.ContentArea.Comment.CommentList" Title="评论列表" %>
<%@ Register Src="~/Admin/Ascx/PageBar.ascx" TagName="PageBar" TagPrefix="page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<link href="/Admin/Css/comment.css" rel="stylesheet" type="text/css" />
<script src="../../JS/gridview.js" type="text/javascript"></script>  
<form id="form1" action="CommentList.aspx" method="post" runat="server">
<asp:Label ID="PPFOR_groupId" runat="server" Enabled="false" Visible="false"></asp:Label>
<asp:Label ID="PPFOR_groupBelongMenuId" runat="server" Enabled="false" Visible="false"></asp:Label>
<asp:Label ID="PPFOR_groupLanguageId" runat="server" Enabled="false" Visible="false"></asp:Label> 
<div class="table-ppfor">
	<i></i><u></u>
	<ul>		 
	  <li class="right">
			审核状态：<asp:DropDownList ID="PPFOR_isAuditedList" runat="server" OnSelectedIndexChanged="PPFOR_isAuditedListChanged" AutoPostBack="true" Width="86px" AppendDataBoundItems="true" >
            <asp:ListItem Value="0" >全部评论</asp:ListItem>
        </asp:DropDownList>
        </li>
	</ul>
</div>   
    <asp:GridView ID="PPFOR_showCommentList" runat="server" CssClass="forgridview" OnRowDeleting="PPFOR_showCommentList_RowDeleting" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="ID"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="还没有添加评论">
           <Columns>                
             <asp:TemplateField ShowHeader="False" HeaderText="" HeaderStyle-HorizontalAlign="Center">
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectComment" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectComment" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="ID" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="评论内容" HeaderStyle-Font-Bold="false" ItemStyle-Width="60%" ItemStyle-HorizontalAlign="Left"/>                         
             <asp:BoundField HeaderText="审核状态" HeaderStyle-Font-Bold="false"/>         
             <asp:TemplateField HeaderText="操作" HeaderStyle-Font-Bold="false">
                <ItemTemplate>
                    <%#PPFOR_getLinkActions(Eval("ID"))%> 
                    <asp:LinkButton ID="PPFOR_deleteComment" runat="server" CausesValidation="False" CommandName="Delete"
                        Text="删除" OnClientClick="return confirm('删除评论后不能恢复,确认要删除吗？');"></asp:LinkButton>
                </ItemTemplate>
             </asp:TemplateField>
            </Columns>
             <FooterStyle BackColor="#990000" ForeColor="White" /> 
             <RowStyle Wrap="False" HorizontalAlign="Center" Font-Bold="false" BackColor="#ffffff"/> 
             <HeaderStyle HorizontalAlign="Center" BackColor="#F5F5F5" Font-Bold="false" ForeColor="#000000" />
             <AlternatingRowStyle BackColor="#F5F5F5" />
        </asp:GridView>
      <br />
        <page:PageBar ID="PPFOR_pageBar" runat="server" />
      <br />
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
        <tr>
          <td>
              <asp:Button ID="PPFOR_updateCommentBatch" CssClass="inputbutton" runat="server" Text="审核" OnClick="PPFOR_updateCommentBatchClick"/>
              <asp:Button ID="PPFOR_cancelCommentBatch" CssClass="inputbutton" runat="server" Text="取消审核" OnClick="PPFOR_cancelCommentBatchClick"/>
              <asp:Button ID="PPFOR_deleteCommentBatch" CssClass="inputbutton" runat="server" Text="删除" OnClick="PPFOR_deleteCommentBatchClick"/>
              <input name="reset" type="reset" id="reset1" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" onclick="SelectAllRows('<%=form1.ClientID%>',false)"/>
                <script type="text/javascript">
                    if("<%=PPFOR_displayRecordOption %>"!='none'){
                        addButtonArray("<%= PPFOR_updateCommentBatch.ClientID %>","<%= PPFOR_cancelCommentBatch.ClientID %>","<%= PPFOR_deleteCommentBatch.ClientID %>","reset1");
                    }
                </script>  
            </td>
        </tr>
      </table>      
</form>        
</asp:Content>
