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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.auditnewtopic" Codebehind="forum_auditnewtopic.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.  
  19.  function Check(form)
  20.  {
  21. CheckAll(form);
  22. checkedEnabledButton(form,'tid','SelectPass','SelectDelete');
  23.  }
  24. </script>
  25. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  26. </head>
  27. <body>
  28. <form id="Form1" method="post" runat="server">
  29. <cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" >
  30. <Columns>
  31.  <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  32. <HeaderStyle Width="20px" />
  33. <ItemTemplate>
  34. <input id="tid" type="checkbox" onclick="checkedEnabledButton(this.form,'tid','SelectPass','SelectDelete')" value="<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>" name="tid" />
  35. </ItemTemplate>
  36. </asp:TemplateColumn>
  37. <asp:BoundColumn DataField="tid" SortExpression="tid"  HeaderText="tid [递增]" Visible="false"></asp:BoundColumn>
  38. <asp:TemplateColumn HeaderText="标题">
  39. <ItemStyle HorizontalAlign="Left" />
  40. <ItemTemplate>
  41.  <a href="javascript:void(0);" onclick="javascript:LoadInfo('true','0','<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>');">
  42.  <%# DataBinder.Eval(Container, "DataItem.title").ToString() %></a>
  43. </ItemTemplate>
  44. </asp:TemplateColumn>
  45. <asp:TemplateColumn HeaderText="作者">
  46. <ItemTemplate>
  47. <%# (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()%>
  48. </ItemTemplate>
  49. </asp:TemplateColumn>
  50. <asp:TemplateColumn HeaderText="主题类型">
  51. <ItemTemplate>
  52. <%# GetTopicType(DataBinder.Eval(Container, "DataItem.special").ToString())%>
  53. </ItemTemplate>
  54. </asp:TemplateColumn>
  55. <asp:TemplateColumn HeaderText="主题状态">
  56. <ItemTemplate>
  57. <%# GetTopicStatus(DataBinder.Eval(Container, "DataItem.displayorder").ToString())%>
  58. </ItemTemplate>
  59. </asp:TemplateColumn>
  60. <asp:BoundColumn DataField="postdatetime" SortExpression="postdatetime" HeaderText="发布时间"></asp:BoundColumn>
  61. <asp:TemplateColumn HeaderText="是否含有附件">
  62. <ItemTemplate>
  63. <img src="../images/<%# (DataBinder.Eval(Container, "DataItem.attachment").ToString() == "0") ? "cancel" : "ok"%>.gif" />
  64. </ItemTemplate>
  65. </asp:TemplateColumn>
  66. <asp:TemplateColumn HeaderText="是否关闭">
  67. <ItemTemplate>
  68. <img src="../images/<%# (DataBinder.Eval(Container, "DataItem.closed").ToString() == "0") ? "cancel" : "ok"%>.gif" />
  69. </ItemTemplate>
  70. </asp:TemplateColumn>
  71. </Columns>
  72. </cc1:datagrid>
  73. <p style="text-align:right;">
  74. <cc1:Button id="SelectPass" runat="server" Text=" 通 过 " Enabled="false"></cc1:Button> &nbsp;&nbsp;
  75. <cc1:Button id="SelectDelete" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选未通过审核主题吗?')) return false;"></cc1:Button>
  76. </p>
  77. <div id="AjaxPostInfo" style="overflow-y: auto;" valign="top">
  78. <uc1:AjaxPostInfo id="AjaxPostInfo1" runat="server"></uc1:AjaxPostInfo>
  79. </div>
  80. <div id="Div1" style="display:none">
  81. <tr>
  82. <td bgcolor="#f8f8f8" colspan="2"><asp:literal id="msg" runat="server" Text="没有等待审核新主题" Visible="False"></asp:literal></td>
  83. </tr>
  84. </div>
  85. </form>
  86. <%=footer%>
  87. </body>
  88. </html>