<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="CommentDetail.aspx.cs" Inherits="PPFOR.Admin.ContentArea.Comment.CommentDetail" 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>  
<script src="/CustomAction/JS/face.js" type="text/javascript"></script>  
<script type="text/javascript">
 function scrollToReplyArea(){
    window.location.hash='#aReplyArea';    
    var obj=document.getElementById('divReplyArea');
    if(obj!=null){            
       obj.scrollIntoView();
    }
 }
</script>
<form id="form1" action="CommentDetail.aspx" method="post" runat="server">
<asp:Label ID="PPFOR_commentId" 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> 
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="fortable">
    <thead>   
        <tr>
            <td colspan="4" align="center">评论详细信息</td>
        </tr>    
    </thead>              
    <tr>
         <td class="rtitle">评论组：</td>
         <td class="rcontent"><asp:Label ID="PPFOR_groupName" runat="server"></asp:Label>&nbsp;</td>
         <td class="rtitle">审核状态：</td>
         <td class="rcontent">
            <asp:Label ID="PPFOR_status" runat="server"></asp:Label>&nbsp;
            <asp:Button ID="PPFOR_setAudited" ValidationGroup="Audited" Text="审核评论" CssClass="blueinput" runat="server" OnClick="PPFOR_setAuditedClick" />
            <asp:Button ID="PPFOR_cancelAudited" ValidationGroup="Audited" Text="取消审核" CssClass="blueinput" runat="server" OnClick="PPFOR_cancelAuditedClick" />
         </td>
   </tr>  
   <tr>
        <td class="rtitle">评论人名称：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_name" runat="server"></asp:Label>&nbsp;</td>  
        <td class="rtitle">评论人邮箱：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_email" runat="server"></asp:Label>&nbsp;</td>
   </tr>
    <tr>
        <td class="rtitle">评论人地址：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_address" runat="server"></asp:Label>&nbsp;</td>  
        <td class="rtitle">评论人网址：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_website" runat="server"></asp:Label>&nbsp;</td>
   </tr>
    <tr>
        <td class="rtitle">评论人电话：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_phone" runat="server"></asp:Label>&nbsp;</td> 
        <td class="rtitle">其他联系方式：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_chat" runat="server"></asp:Label>&nbsp;</td>
   </tr>   
    <tr>
        <td class="rtitle">评论提交时间：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_submitTime" runat="server"></asp:Label>&nbsp;</td> 
        <td class="rtitle">审核通过时间：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_auditedTime" runat="server"></asp:Label></td>
   </tr>
    <tr>
        <td class="rtitle">评论主题：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_subject" runat="server"></asp:Label>&nbsp;</td>
        <td class="rtitle">评论对象：</td>
        <td class="rcontent"><asp:Label ID="PPFOR_object" runat="server"></asp:Label>&nbsp;</td>
   </tr>
    <tr>
        <td class="rtitle">评论内容：</td>
        <td class="rcontent" colspan="3"><asp:Label ID="PPFOR_content" runat="server"></asp:Label>&nbsp;</td>
   </tr>
   <tr>
        <td class="rtitle">回复内容：</td>
        <td class="rcontent" colspan="3">
            <asp:Label ID="PPFOR_faceList" runat="server"></asp:Label>
            <asp:TextBox ID="PPFOR_replyContent" runat="server" TextMode="MultiLine" Wrap="true" Height="100px" Width="98%" MaxLength="1000"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="PPFOR_replyContent" runat="server" Display="Dynamic" SetFocusOnError="true"><br />回复内容不能为空</asp:RequiredFieldValidator>     
        </td>       
   </tr>
</table>
<br />
<a name="aReplyArea" style="display:none;"></a>
<div class="table-ppfor" id="divReplyArea">
	<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_showReplyList" runat="server" CssClass="forgridview" OnRowDeleting="PPFOR_showReplyList_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_selectReply" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectReply" 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-Wrap="true" 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_deleteReply" 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_reply" CssClass="inputbutton" runat="server" Text="回复评论" OnClick="PPFOR_replyClick"/>
              <asp:Button ID="PPFOR_updateReplyBatch" CssClass="inputbutton" runat="server" Text="审核回复" OnClick="PPFOR_updateReplyBatchClick"/>
              <asp:Button ID="PPFOR_deleteReplyBatch" CssClass="inputbutton" runat="server" Text="删除回复" OnClick="PPFOR_deleteReplyBatchClick"/>
              <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">
                    addButtonArray("<%= PPFOR_reply.ClientID %>");
                    if("<%=PPFOR_displayRecordOption %>"!='none'){
                        addButtonArray("<%= PPFOR_updateReplyBatch.ClientID %>","<%= PPFOR_deleteReplyBatch.ClientID %>");
                    }
                    addButtonArray("reset1");
                </script>  
            </td>
        </tr>
      </table>      
</form>        
</asp:Content>
