<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Review_ReviewManage, QianboCMS" EnableEventValidation="false" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="Qianbo.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>评论管理</title>
<link rel="stylesheet" href="../Css/layout.css" type="text/css" />
</head>

<body>
<form id="form1" runat="server">
  <table width="99%" cellspacing="1" cellpadding="0" class="wzdh" align="center">
    <tr>
      <td style="padding-left: 10px;"><img src="../Images/Skin/Default/you.gif" align="absmiddle" /> 您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; 用户评论管理</td>
    </tr>
  </table>
  <table width="99%" cellspacing="1" cellpadding="0" class="border" align="center">
    <tr class="wzlist">
      <td><a href="ReviewManage.aspx?ModelId=<%=ModelId %>">待审核的评论</a> | <a href="ReviewManage.aspx?ModelId=<%=ModelId %>&IsCheck=true">已审核的评论</a>
        <asp:DropDownList ID="ddlModel" runat="server" onchange="location.href='ReviewManage.aspx?ModelId='+this.value"></asp:DropDownList></td>
    </tr>
  </table>
  <table cellpadding="0" cellspacing="1" class="border" width="99%" align="center">
  <asp:Repeater ID="repInfo" runat="server" OnItemDataBound="repInfo_ItemDataBound" OnItemCommand="Repeater1_ItemCommand">
    <ItemTemplate>
      <tr class="title">
        <td align="left"><asp:HiddenField ID="hidId" runat="server" Value='<%# Eval("Id") %>' />
          <a href="DetailReView.aspx?Id=<%# Eval("Id") %>&ModelId=<%#ModelId %>"><%# Eval("Title") %></a></td>
        <td colspan="3" align="right"><asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%# Eval("Id") %>' OnClientClick="return confirm('是否确定删除此信息的所有评论？')">删除此文章的所有评论</asp:LinkButton></td>
      </tr>
      <asp:Repeater ID="repReview" runat="server" OnItemCommand="Repeater2_ItemCommand">
        <ItemTemplate>
          <tr class="tdbg">
            <td style="word-warp: break-word; word-break: break-all; text-align: left;"><%# Function.UbbToHtml(Eval("ReviewContent").ToString())%></td>
            <td width="180px"><%# GetName(Eval("UserNum").ToString())%></td>
            <td width="120px"><%# Eval("ReviewTime","{0:yyyy-MM-dd}")%></td>
            <td width="60px"><asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%# Eval("Id") %>' OnClientClick="return confirm('是否确定删除此评论？')">删除</asp:LinkButton></td>
          </tr>
        </ItemTemplate>
      </asp:Repeater>
      </table>
      </td>
      </tr>
    </ItemTemplate>
  </asp:Repeater>
  </table>
  <table cellpadding="0" cellspacing="1" class="border" align="center" width="99%">
    <tr class="wzlist">
      <td><webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="10" HorizontalAlign="Right" PrevPageText="上一页" ShowInputBox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left" Width="99%" LayoutType="Table" CustomInfoSectionWidth="10%"></webdiyer:AspNetPager></td>
    </tr>
  </table>
</form>
</body>
</html>