forum_auditpost.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:4k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.auditpost" Codebehind="forum_auditpost.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="uc1" TagName="AjaxPostInfo" Src="../UserControls/AjaxPostInfo.ascx" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html>
  6. <head>
  7. <title>审核帖子</title>
  8. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  9. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" /> 
  10. <script type="text/javascript" src="../js/common.js"></script>
  11. <script type="text/javascript" src="../js/AjaxHelper.js"></script>
  12. <script type="text/javascript">
  13. function  LoadInfo(istopic,pid,tid)
  14. {
  15. AjaxHelper.Updater('../UserControls/AjaxPostInfo','AjaxPostInfo','istopic='+istopic+'&pid='+pid+'&tid='+tid);
  16. document.getElementById('PostInfo').style.display = "block";
  17. }
  18. function Check(form)
  19. {
  20. CheckAll(form);
  21. checkedEnabledButton(form,'pid','SelectPass','SelectDelete');
  22. }
  23. </script>
  24. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  25. </head>
  26. <body>
  27. <form id="Form1" method="post" runat="server">
  28. <table width="100%">
  29. <tr><td class="item_title" colspan="2">当前帖子表</td></tr>
  30. <tr>
  31. <td class="vtop rowform">
  32. <cc1:DropDownList id="postlist" runat="server"></cc1:DropDownList>
  33. </td>
  34. <td class="vtop"></td>
  35. </tr>
  36. </table>
  37. <cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
  38. <Columns>
  39. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall'>">
  40. <HeaderStyle Width="20px" />
  41. <ItemTemplate>
  42. <input id="pid" type="checkbox" onclick="checkedEnabledButton(this.form,'pid','SelectPass','SelectDelete')" value="<%# DataBinder.Eval(Container, "DataItem.pid").ToString() %>|<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>" name="pid" />
  43. </ItemTemplate>
  44. </asp:TemplateColumn>
  45. <asp:BoundColumn DataField="pid" SortExpression="pid" HeaderText="帖子ID" Visible="false"></asp:BoundColumn>
  46.  <asp:TemplateColumn HeaderText="标题">
  47. <ItemStyle HorizontalAlign="Left" />
  48. <ItemTemplate>
  49. <a href="javascript:void(0);" onclick="javascript:LoadInfo('false','<%# DataBinder.Eval(Container, "DataItem.pid").ToString() %>','<%# DataBinder.Eval(Container, "DataItem.tid").ToString().Trim() %>');">
  50. <%# DataBinder.Eval(Container, "DataItem.title").ToString().Trim() == "" ? "(无标题)" : DataBinder.Eval(Container, "DataItem.title").ToString().Trim()%></a>
  51. </ItemTemplate>
  52. </asp:TemplateColumn>
  53. <asp:BoundColumn DataField="postdatetime" SortExpression="postdatetime" HeaderText="发布日期"></asp:BoundColumn>
  54. <asp:TemplateColumn HeaderText="发帖人">
  55. <itemtemplate>
  56. <%# (DataBinder.Eval(Container, "DataItem.posterid").ToString() != "-1") ? "<a href='../../userinfo.aspx?userid=" + DataBinder.Eval(Container, "DataItem.posterid").ToString() + "' target='_blank'>" + DataBinder.Eval(Container, "DataItem.poster").ToString() + "</a>" : DataBinder.Eval(Container, "DataItem.poster").ToString()%>
  57. </itemtemplate>
  58. </asp:TemplateColumn>
  59. <asp:TemplateColumn HeaderText="帖子状态">
  60. <itemtemplate>
  61. <%# GetPostStatus(DataBinder.Eval(Container, "DataItem.invisible").ToString())%>
  62. </itemtemplate>
  63. </asp:TemplateColumn>
  64. <asp:BoundColumn DataField="attachment" SortExpression="attachment" HeaderText="附件数"></asp:BoundColumn>
  65. <asp:BoundColumn DataField="rate" SortExpression="rate" HeaderText="评分分数"></asp:BoundColumn>
  66. <asp:BoundColumn DataField="ratetimes" SortExpression="ratetimes" HeaderText="评分次数"></asp:BoundColumn>
  67. </Columns>
  68. </cc1:datagrid>
  69. <p style="text-align:right;">
  70. <cc1:Button id="SelectPass" runat="server" Text=" 通 过 " Enabled="false"></cc1:Button>&nbsp;&nbsp;
  71. <cc1:Button id="SelectDelete" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选未审核帖子吗?')) return false;"></cc1:Button>
  72. </p>
  73. <div id="AjaxPostInfo" style="OVERFLOW-Y: auto;" valign="top">
  74. <uc1:AjaxPostInfo id="AjaxPostInfo1" runat="server"></uc1:AjaxPostInfo>
  75. </div>
  76. <div id="Div1" style="display:none">
  77. <tr>
  78. <td bgColor="#f8f8f8" colSpan="2"><asp:literal id="msg" runat="server" Text="没有等待审核新主题" Visible="False"></asp:literal></td>
  79. </tr>
  80. </div>
  81. </form>
  82. <%=footer%>
  83. </body>
  84. </html>