xw_addNews.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:5k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" validateRequest="false"  CodeFile="xw_addNews.aspx.cs" Inherits="linminchao_xw_addNews" %>
  2. <%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" >
  5. <head>
  6.     <title>无标题页</title>  
  7. <style type="text/css"> 
  8. div.RoundedCorner{background: #5AAE18} 
  9. b.rtop, b.rbottom{display:block;background: #FFF} 
  10. b.rtop b, b.rbottom b{display:block;height: 1px;overflow: hidden; background: #5AAE18} 
  11. b.r1{margin: 0 4px} 
  12. b.r2{margin: 0 3px} 
  13. b.r3{margin: 0 2px} 
  14. b.rtop b.r4, {margin: 0 1px;height: 1px}
  15. .style1 {
  16. font-size: 13px;
  17. color: #FFFFFF;
  18. font-weight: bold;
  19. </style>
  20. <script type="text/javascript" language="JavaScript">
  21. <!--
  22. function check() {
  23. if (document.getElementById("zhuti").value=="") {
  24. window.alert ("请您输入主题 !")
  25. document.getElementById("zhuti").focus()
  26. return false
  27. }
  28. if (document.getElementById("zhuti").value.length>30) {
  29. window.alert ("主题需要30位以内字符 !")
  30. document.getElementById("zhuti").focus()
  31. return false
  32. }
  33. if (document.getElementById("FreeTextBox1").value=="") {
  34. window.alert ("请您输入内容 !")
  35. return false
  36. }
  37. if (document.getElementById("FreeTextBox1").value.length>2000) {
  38. window.alert ("标题需要2000位以内字符 !")
  39. return false
  40. }
  41. return true
  42. }
  43. //-->
  44. </script>
  45. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
  46. <link href="../../css/link.css" rel="stylesheet" type="text/css"/>
  47. <link href="../../css/input.css" rel="stylesheet" type="text/css"/>
  48. <style type="text/css">
  49. <!--
  50. .style2 {
  51. color: #CC6633;
  52. font-weight: bold;
  53. }
  54. .style1 {
  55. color: #FFFFFF;
  56. font-weight: bold;
  57. }
  58. .style6 {font-size: 12px}
  59. .style9 {color: #000000}
  60. body {
  61. margin-top: 2px;
  62. }
  63. -->
  64. </style>
  65. <script  type="text/javascript" language="JavaScript">
  66. <!--
  67. function dis()
  68. {
  69. document.form1.submit.value=' 发布..'
  70. document.form1.submit.disabled=true;
  71. return true;
  72. }
  73. //-->
  74. </script>
  75. <script type="text/javascript" language="JavaScript">
  76. <!--
  77. function dis1()
  78. {
  79. document.form11.submit.value=' 查询..'
  80. document.form11.submit.disabled=true;
  81. return true;
  82. }
  83. //-->
  84. </script>
  85. </head>
  86. <body>
  87. <div align="center">
  88. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  89. <tr>
  90. <td>
  91. <form action="#" method="post" name="form11" id="form11" onsubmit="return dis1()">
  92. <table width="96%" border="0" cellspacing="0" cellpadding="0">
  93. <tr>
  94. <td width="32%" valign="middle">&nbsp;</td>
  95. <td width="47%" valign="middle">
  96. <div align="right">
  97. <input name="q" type="text" id="q" />
  98. <input name="submit" type="submit" id="submit" style="FONT-SIZE: 12px; HEIGHT: 24px" value=" 查 询 " />
  99. </div>
  100. </td>
  101. <td width="4%">
  102. <div align="right">
  103. <span class="style4">
  104. <img alt="" src="../img/txl/16.gif" width="16" height="16"/>
  105. </span>
  106. </div>
  107. </td>
  108. <td width="7%">
  109. <a href="#"  >浏览新闻</a>
  110. </td><td width="2%">
  111. <img alt="" src="../img/txl/12.gif" width="16" height="16"/></td>
  112. <td width="8%"><div align="center" ><a href="#">新闻管理</a> </div>
  113. </td></tr></table></form></td></tr></table><div class="RoundedCorner"> 
  114. <div align="center"><b class="rtop">
  115. <b class="r1"></b><b class="r2"></b>
  116. <b class="r3"></b>
  117. <b class="r4"></b>
  118. </b> <span class="style1">发 布 新 闻</span></div></div>
  119. <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18"><tr>
  120. <td height="167" bgcolor="#FFFFFF">
  121. <form name="form1" runat="server" method="post" action="#" onsubmit="return dis()()">
  122. <table width="100%"  border="0" cellpadding="2" cellspacing="0">
  123. <tr bgcolor="#FFFFFF">
  124. <td height="12" colspan="2"></td></tr>
  125. <tr bgcolor="#FFFFFF"><td width="11%" style="height: 27px">  主 题:</td>
  126. <td width="89%" style="height: 27px">
  127. <input runat="server" name="zhuti" type="text" id="zhuti" size="50" maxlength="30"/></td></tr>
  128. <tr bgcolor="#FFFFFF"><td>
  129. <table width="11" border="0" cellpadding="0" cellspacing="0">
  130. <tr>
  131. <td> 内 容:</td></tr>
  132. <tr>
  133. <td><img alt="" src="../img/1.gif" height="46" /></td></tr></table></td>
  134. <td>
  135. <FTB:FreeTextBox ID="FreeTextBox1" runat="server"></FTB:FreeTextBox>
  136. </td></tr>
  137. <tr bgcolor="#FFFFFF">
  138. <td height="23"></td>
  139. <td height="23">
  140.     <input name="submit" runat="server" type="submit" id="submit1" style="FONT-SIZE: 12px; HEIGHT: 27px" onclick="return check()"  value= " 发 布 " onserverclick="submit1_ServerClick" />
  141.     <input name="按钮" type="button" style="FONT-SIZE: 12px; HEIGHT: 27px"   onclick="javascript:history.go(-1)" value= " 取 消 " />
  142. </td>
  143. </tr>
  144. </table>
  145. </form>
  146. </td>
  147. </tr>
  148. </table>
  149. <br /><img alt="" src='../img/up.gif' width='17' height='12'/><a href='javascript:history.go(-1)'>返 回 </a>
  150. </div>
  151. </body>
  152. </html>