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

SCSI/ASPI

开发平台:

Others

  1. <%@ Register TagPrefix="uc1" TagName="OnlineEditor" Src="../UserControls/OnlineEditor.ascx" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Page language="c#" Inherits="Discuz.Web.Admin.addannounce" Codebehind="global_addannounce.aspx.cs" %>
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  5. <html>
  6. <head>
  7. <title>添加公告</title>
  8. <link href="../styles/default.css" rel="stylesheet" type="text/css" id="css" />
  9. <link href="../styles/editor.css" rel="stylesheet" type="text/css" id="Link1" />
  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 validate(theform)
  16. {
  17. alert("here");
  18. if(document.getElementById("title").value == "")
  19. {
  20. alert("公告标题不能为空");
  21. document.getElementById("title").focus();
  22. return false;
  23. }
  24. return true;
  25. }
  26. </script>
  27. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  28. </head>
  29. <body >
  30. <div class="ManagerForm">
  31. <form id="Form1" runat="server" onsubmit="return validate(this);">
  32. <fieldset>
  33. <legend style="background:url(../images/icons/icon33.jpg) no-repeat 6px 50%;">添加公告</legend>
  34. <table width="100%">
  35. <tr><td class="item_title" colspan="2">显示顺序</td></tr>
  36. <tr>
  37. <td class="vtop rowform">
  38.  <cc1:TextBox ID="displayorder" runat="server" RequiredFieldType="数据校验" CanBeNull="必填" Text="0" MaxLength="6" Size="3"></cc1:TextBox>
  39. </td>
  40. <td class="vtop"></td>
  41. </tr>
  42. <tr><td class="item_title" colspan="2">公告标题</td></tr>
  43. <tr>
  44. <td class="vtop rowform">
  45.   <cc1:TextBox ID="title" runat="server" CanBeNull="必填" RequiredFieldType="暂无校验" MaxLength="249" Size="60"></cc1:TextBox>
  46. </td>
  47. <td class="vtop"></td>
  48. </tr>
  49. <tr><td class="item_title" colspan="2">起始时间</td></tr>
  50. <tr>
  51. <td class="vtop rowform">
  52.   <cc1:TextBox ID="starttime" runat="server" CanBeNull="必填" RequiredFieldType="日期时间" Width="200"></cc1:TextBox>
  53. </td>
  54. <td class="vtop">格式:2005-5-5 13:22:02</td>
  55. </tr>
  56. <tr><td class="item_title" colspan="2">结束时间</td></tr>
  57. <tr>
  58. <td class="vtop rowform">
  59.  <cc1:TextBox ID="endtime" runat="server" CanBeNull="必填" RequiredFieldType="日期时间" Width="200"></cc1:TextBox>
  60. </td>
  61. <td class="vtop">格式:2005-5-5 13:22:02</td>
  62. </tr>
  63. <tr><td class="item_title" colspan="2">公告内容:</td></tr>
  64. <tr>
  65. <td class="vtop" colspan="2">
  66.   <uc1:OnlineEditor ID="message" runat="server" controlname="message" postminchars="0" postmaxchars="200"></uc1:OnlineEditor>
  67. </td>
  68. </tr>
  69. </table>
  70. <div style="display:none">
  71. <tr><td class="item_title" colspan="2">发布者用户名</td></tr>
  72. <tr>
  73. <td class="vtop" colspan="2">
  74.   <cc1:TextBox id="poster" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" MaxLength="20" Enabled="false"></cc1:TextBox>
  75. </td>
  76. </tr>
  77. </div>
  78. <div class="Navbutton">
  79. <cc1:Button id="AddAnnounceInfo" runat="server" Text=" 提 交 " ValidateForm="true"></cc1:Button>&nbsp;&nbsp;
  80. <button type="button" class="ManagerButton" id="Button3" onclick="window.history.back();"><img src="../images/arrow_undo.gif"/> 返 回 </button>
  81. </div>
  82. </fieldset>
  83. </form>
  84. </div>
  85. <%=footer%>
  86. </body>
  87. </html>