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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.forumsgrid" Codebehind="forum_forumsgrid.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="uc1" TagName="PageInfo" Src="../UserControls/PageInfo.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. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  12. </head>
  13. <body>
  14. <form id="Form1" method="post" runat="server">
  15. <uc1:PageInfo id="info1" runat="server" Icon="warning"
  16.  Text="该功能为手动修改版块数据, 这将对论坛版块表中的版块名称, 子版数等相关内容进行调整. 操作务必谨慎!"></uc1:PageInfo>
  17. <cc1:datagrid id="DataGrid1" runat="server" IsFixConlumnControls="true" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" >
  18. <Columns>
  19. <asp:TemplateColumn HeaderText="版块ID">
  20. <ItemTemplate>
  21. <%# DataBinder.Eval(Container, "DataItem.fid").ToString()%>
  22. <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.fid").ToString())%>
  23. </ItemTemplate>
  24. </asp:TemplateColumn>
  25. <asp:BoundColumn DataField="fid" HeaderText="版块ID" Visible="false" ></asp:BoundColumn>
  26. <asp:BoundColumn DataField="name" HeaderText="版块名称"></asp:BoundColumn>
  27. <asp:BoundColumn DataField="layer" HeaderText="显示层数" ReadOnly="true"></asp:BoundColumn>
  28. <asp:BoundColumn DataField="parentidlist" HeaderText="父列表" ReadOnly="true"></asp:BoundColumn>
  29. <asp:BoundColumn DataField="subforumcount" HeaderText="子版数" ></asp:BoundColumn>
  30. <asp:BoundColumn DataField="displayorder" HeaderText="显示顺序"></asp:BoundColumn>
  31. <asp:BoundColumn DataField="status" HeaderText="状态" ReadOnly="true"></asp:BoundColumn>
  32. <asp:BoundColumn DataField="topics" HeaderText="主题总数" ReadOnly="true"></asp:BoundColumn>
  33. <asp:BoundColumn DataField="posts" HeaderText="回帖总数" ReadOnly="true"></asp:BoundColumn>
  34. <asp:BoundColumn DataField="todayposts" HeaderText="今天回帖数" ReadOnly="true"></asp:BoundColumn>
  35. <asp:BoundColumn DataField="lastposter" HeaderText="最后回帖人" ReadOnly="true"></asp:BoundColumn>
  36. </Columns>
  37. </cc1:datagrid>
  38. <br />
  39. <p style="text-align:right;">
  40. <cc1:Button id="SaveForum" runat="server" Text="保存版块修改"></cc1:Button>
  41. </p>
  42. </form>
  43. <%=footer%>
  44. </body>
  45. </html>