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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.postgridmanage" Codebehind="forum_postgridmanage.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html>
  5. <head>
  6. <title>postgrid</title>
  7. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  8. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" /> 
  9. <script type="text/javascript" src="../js/common.js"></script>
  10. <script type="text/javascript">
  11. function Check(form)
  12. {
  13. CheckAll(form);
  14. checkedEnabledButton(form,'pid','SetPostInfo')
  15. }
  16. </script>
  17. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  18. </head>
  19. <body>
  20. <form id="Form1" method="post" runat="server"><br />
  21. <cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" PageSize="15">
  22. <Columns>
  23. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  24. <HeaderStyle Width="20px" />
  25. <ItemTemplate>
  26. <input id="pid" onclick="checkedEnabledButton(this.form,'pid','SetPostInfo')" type="checkbox" 
  27. value="<%# DataBinder.Eval(Container, "DataItem.pid").ToString() %>|<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>" name="pid" />
  28. </ItemTemplate>
  29. </asp:TemplateColumn>
  30. <asp:BoundColumn DataField="pid"  SortExpression="pid" HeaderText="帖子ID" Visible="false" ></asp:BoundColumn>
  31. <asp:TemplateColumn HeaderText="标题">
  32. <ItemTemplate>
  33. <a href="../../showtopic.aspx?topicid=<%# DataBinder.Eval(Container, "DataItem.tid").ToString() %>&postid=<%# DataBinder.Eval(Container, "DataItem.pid").ToString() %>" target="_blank">
  34. <%# DataBinder.Eval(Container, "DataItem.title").ToString() %>
  35. </a>
  36. </ItemTemplate>
  37. </asp:TemplateColumn>
  38. <asp:BoundColumn DataField="postdatetime" SortExpression="postdatetime" HeaderText="发布日期" ></asp:BoundColumn>
  39. <asp:TemplateColumn HeaderText="发帖人">
  40. <itemtemplate>
  41. <%# (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()%>
  42. </itemtemplate>
  43. </asp:TemplateColumn>
  44. <asp:TemplateColumn HeaderText="是否通过审批">
  45. <ItemTemplate>
  46. <%# Invisible(DataBinder.Eval(Container, "DataItem.invisible").ToString())%>
  47. </ItemTemplate>
  48. </asp:TemplateColumn>
  49. <asp:BoundColumn DataField="attachment" SortExpression="attachment" HeaderText="附件数"></asp:BoundColumn>
  50. <asp:BoundColumn DataField="rate" SortExpression="rate" HeaderText="评分分数"></asp:BoundColumn>
  51. <asp:BoundColumn DataField="ratetimes" SortExpression="ratetimes" HeaderText="评分次数"></asp:BoundColumn>
  52. </Columns>
  53. </cc1:datagrid>
  54. <p style="text-align:right;">
  55. <cc1:Button id="SetPostInfo" runat="server" Text=" 删除 " ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选帖子吗?')) return false;"></cc1:Button> 
  56. </p>
  57. </form>
  58. <%=footer%>
  59. </body>
  60. </html>