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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.postgrid" Codebehind="forum_postgrid.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. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  11. </head>
  12. <body>
  13. <form id="Form1" method="post" runat="server">
  14. <cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" >
  15. <Columns>
  16. <asp:BoundColumn DataField="pid" SortExpression="pid" HeaderText="帖子ID" Visible="false" ></asp:BoundColumn>
  17. <asp:BoundColumn DataField="title" HeaderText="显示顺序"></asp:BoundColumn>
  18.  <asp:TemplateColumn HeaderText="标题">
  19. <ItemTemplate>
  20. <a href="../../showtopic.aspx?topicid=<%=Request["tid"]%>"  target="_blank"><%# DataBinder.Eval(Container, "DataItem.title").ToString()%></a>
  21. </ItemTemplate>
  22. </asp:TemplateColumn>
  23. <asp:BoundColumn DataField="postdatetime"  HeaderText="发布日期"></asp:BoundColumn>
  24. <asp:BoundColumn DataField="poster"  HeaderText="发帖人" ></asp:BoundColumn>
  25.  <asp:TemplateColumn HeaderText="标题">
  26. <ItemTemplate>
  27. <%# Invisible(DataBinder.Eval(Container, "DataItem.invisible").ToString())%>
  28. </ItemTemplate>
  29. </asp:TemplateColumn>
  30. <asp:BoundColumn DataField="attachment" HeaderText="附件数"></asp:BoundColumn>
  31. <asp:BoundColumn DataField="rate" HeaderText="评分分数"></asp:BoundColumn>
  32. <asp:BoundColumn DataField="ratetimes" HeaderText="评分次数"></asp:BoundColumn>
  33. </Columns>
  34. </cc1:datagrid>
  35. <br />
  36. </form>
  37. <%=footer%>
  38. </body>
  39. </html>