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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.announceprivatemessage" Codebehind="announceprivatemessage.aspx.cs" %>
  2. <%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  4. <%@ Register TagPrefix="uc1" TagName="PageInfo" Src="../UserControls/PageInfo.ascx" %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html>
  7. <head>
  8. <title>过滤词列表</title>
  9. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  10. <script type="text/javascript" src="../js/common.js"></script>
  11. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  12. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  13. <script type="text/javascript" src="../js/modalpopup.js"></script>
  14. <script type="text/javascript">
  15. function Check(form)
  16. {
  17. CheckAll(form);
  18. checkedEnabledButton(form,'id','DelRec')
  19. }
  20. </script>
  21. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  22. </head>
  23. <body>
  24. <form id="Form1" method="post" runat="server">
  25. <cc1:DataGrid ID="DataGrid1" runat="server" IsFixConlumnControls="true" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
  26. <Columns>
  27. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  28. <HeaderStyle Width="20px" />
  29. <ItemTemplate>
  30. <input id="id" onclick="checkedEnabledButton(this.form,'id','DelRec')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.pmid").ToString() %>" name="id" />
  31. <%# DataGrid1.LoadSelectedCheckBox(DataBinder.Eval(Container, "DataItem.pmid").ToString())%>
  32. </ItemTemplate>
  33. </asp:TemplateColumn>
  34. <asp:BoundColumn DataField="pmid" SortExpression="pmid" HeaderText="pmid" Visible="false" />
  35. <asp:BoundColumn DataField="subject" SortExpression="subject" HeaderText="消息标题" readonly="true"/>
  36. <asp:BoundColumn DataField="message" SortExpression="message" HeaderText="消息内容" readonly="true"/>
  37. <asp:BoundColumn DataField="postdatetime" SortExpression="postdatetime" HeaderText="发布日期" readonly="true" />
  38. </Columns>
  39. </cc1:DataGrid>
  40. <p style="text-align:right;">
  41. <button type="button" class="ManagerButton" id="Button2" onclick="BOX_show('neworedit');"><img src="../images/add.gif"/> 新建公共消息 </button>&nbsp;&nbsp;
  42. <cc1:Button ID="DelRec" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选的公共消息吗?')) return false;"></cc1:Button>
  43. </p>
  44. <div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>
  45. <div id="neworedit" style="display: none; background :#fff; padding:10px; border:1px solid #999; width:350px;">
  46. <div class="ManagerForm">
  47. <fieldset>
  48. <legend style="background: url(../images/icons/icon48.jpg) no-repeat 6px 50%;">新建公共消息</legend>
  49. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  50. <tr>
  51. <td style="width: 80px;height:35px;">消息标题:</td>
  52. <td>
  53. <cc2:TextBox ID="subject" runat="server" RequiredFieldType="暂无校验" IsReplaceInvertedComma="true" MaxLength="254" Size="30"></cc2:TextBox>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td style="height:100px;">消息内容:</td>
  58. <td>
  59. <cc2:TextBox ID="message" runat="server" RequiredFieldType="暂无校验" TextMode="MultiLine" Rows="4" Cols="33"></cc2:TextBox>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td class="panelbox" colspan="2" align="center" style="height:35px;">
  64. <cc1:Button ID="AddNewRec" runat="server" Text=" 提 交 "></cc1:Button>&nbsp;&nbsp;
  65. <button type="button" class="ManagerButton" id="Button1" onclick="BOX_remove('neworedit');"><img src="../images/state1.gif"/> 取 消 </button>
  66. </td>
  67. </tr>
  68. </table>
  69. </fieldset>
  70. </div>
  71. </div>
  72. <cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  73. </form>
  74. <div id="setting" />
  75. <%=footer%>
  76. </body>
  77. </html>