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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.announcegrid" Codebehind="global_announcegrid.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  4. <%@ Register TagPrefix="cc4" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  6. <html>
  7. <head>
  8. <title>公告列表</title>
  9. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  10. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/calendar.css" type="text/css" rel="stylesheet" />
  12. <script type="text/javascript" src="../js/common.js"></script>
  13. <script type="text/javascript">
  14. function Check(form)
  15. {
  16. CheckAll(form);
  17. checkedEnabledButton(form,'id','DelRec');
  18. }
  19. </script>
  20. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  21. </head>
  22. <body>
  23. <form id="Form1" method="post" runat="server">
  24. <div style="display: none">
  25. <table id="Table1" width="100%" cellspacing="1" cellpadding="4">
  26. <tr>
  27. <td colspan="2" class="td1"><b>公告搜索</b></td>
  28. </tr>
  29. <tr>
  30. <td width="50%" class="td2">作者:</td>
  31. <td class="td2">
  32. <cc2:TextBox ID="poster" runat="server" RequiredFieldType="暂无校验" Width="300"></cc2:TextBox>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td class="td1">标题:</td>
  37. <td class="td1">
  38. <cc2:TextBox ID="title" runat="server" RequiredFieldType="暂无校验" Width="300"></cc2:TextBox></td>
  39. </tr>
  40. <tr>
  41. <td class="td2">发布日期:</td>
  42. <td class="td2">
  43. 从<cc4:Calendar ID="postdatetimeStart" runat="server" ReadOnly="False" ScriptPath="../js/calendar.js"></cc4:Calendar>
  44. 到<cc4:Calendar ID="postdatetimeEnd" runat="server" ReadOnly="False" ScriptPath="../js/calendar.js"></cc4:Calendar>
  45. <br />
  46. </td>
  47. </tr>
  48. <tr>
  49. <td class="td1" align="right"></td>
  50. <td class="td1">
  51. <cc1:Button ID="Search" runat="server" Text="开始搜索" ButtonImgUrl="../images/search.gif"></cc1:Button>
  52. </td>
  53. </tr>
  54. </table>
  55. </div>
  56. <cc1:DataGrid ID="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
  57. <Columns>
  58. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  59. <HeaderStyle Width="20px" />
  60. <ItemTemplate>
  61. <input id="id" onclick="checkedEnabledButton(this.form,'id','DelRec')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>" name="id" />
  62. </ItemTemplate>
  63. </asp:TemplateColumn>
  64. <asp:TemplateColumn HeaderText="">
  65. <ItemTemplate>
  66. <a href="global_editannounce.aspx?id=<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>">编辑</a>
  67. </ItemTemplate>
  68. </asp:TemplateColumn>
  69. <asp:BoundColumn DataField="ID" SortExpression="id" HeaderText="公告ID [递增]" Visible="false" />
  70. <asp:BoundColumn DataField="poster" SortExpression="poster" HeaderText="发布者用户名" />
  71. <asp:BoundColumn DataField="title" SortExpression="title" HeaderText="公告标题" ItemStyle-HorizontalAlign="Left"/>
  72. <asp:BoundColumn DataField="displayorder" SortExpression="displayorder" HeaderText="显示顺序" />
  73. <asp:BoundColumn DataField="starttime" SortExpression="starttime" HeaderText="起始时间" />
  74. <asp:BoundColumn DataField="endtime" SortExpression="endtime" HeaderText="结束时间" />
  75. </Columns>
  76. </cc1:DataGrid>
  77. <p style="text-align:right;">
  78. <button type="button" class="ManagerButton" onclick="javascript:window.location.href='global_addannounce.aspx';">
  79. <img src="../images/add.gif" />添加公告
  80. </button>&nbsp;&nbsp;
  81. <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选的公告吗?')) return false;"></cc1:Button>
  82. </p>
  83. </form>
  84. <%=footer%>
  85. </body>
  86. </html>