admin_add_article.jsp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:7k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <html>
  4. <head>
  5. <title>文章资源管理</title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=gb2312">
  7. <meta http-equiv="Content-Language" Content="zh-CN">
  8. <meta name="Keywords" Content="">
  9. <meta name="Description" Content="">
  10. <link type="text/css" rel="stylesheet" href="/yf_article/Style/Style.css">
  11. <Script Language="JavaScript" src="Include/Function.js"></Script>
  12. <Script Language="JavaScript" src="Include/PopText.js"></Script>
  13. <Script Language="JavaScript" src="Include/jquery.js"></Script>
  14. <Script Language="JavaScript" src="Include/verify.js"></Script>
  15. <Script Language="JavaScript">
  16. function addar(){
  17. if(document.Admin_Article.ar_name.value==""){
  18. alert("文章标题不能为空!");
  19. return false;
  20. }
  21. }
  22. </script>
  23. </head>
  24. <body bgcolor="#FFFFFF" leftMargin="10" topmargin="10">
  25. <form name="Admin_Article" method="post"
  26. action="article.do?method=admin_add_article&ar_id=${article.ar_id }"
  27. onSubmit="return addar();">
  28. <table align="center" border="0" cellpadding="0" cellspacing="1" width="600"
  29. height="100" bgcolor="#CEEFE7">
  30. <tr>
  31. <td width="600" height="28" background="Images/Admin_T_Bg1.gif"
  32. align="center" colspan="4">
  33. <font class="BlackS12"><b>文 章 详 细 信 息</b> </font>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td width="600" height="10" bgcolor="#FFFFFF" colspan="4"></td>
  38. </tr>
  39. <tr>
  40. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  41. <font class="BlackS12">文章标题</font>
  42. </td>
  43. <td width="518" height="28" bgcolor="#FFFFFF" colspan="3">
  44. &nbsp;
  45. <input type="text" name="ar_name" onFocus=""
  46. value="${article.ar_name }" Maxlength="100"
  47. style="width: 383; background-color: #EAFBF5; color: ;"
  48. class="Admin_Select">
  49. &nbsp; &nbsp;
  50. </td>
  51. </tr>
  52. <tr>
  53. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  54. <font class="BlackS12">文章分类</font>
  55. </td>
  56. <td width="218" height="28" bgcolor="#FFFFFF">
  57. &nbsp;
  58. <span id="Admin_List_Sort" style=""> <select
  59. id="SortID_Select" name="ar_sort_id" onChange="Sort_Select()"
  60. size="1" class="Admin_Select" style="background-color: #FFFFFF;">
  61. <c:forEach items="${ar_so_list}" var="sort">
  62. <c:choose>
  63. <c:when test="${sort.so_id==article.ar_sort_id}">
  64. <option value="${sort.so_id }" selected>
  65. ${sort.so_name }
  66. </option>
  67. </c:when>
  68. <c:otherwise>
  69. <option value="${sort.so_id }">
  70. ${sort.so_name }
  71. </option>
  72. </c:otherwise>
  73. </c:choose>
  74. </c:forEach>
  75. </select> </span>
  76. <span id="Admin_List_AsSort" style=""> <select
  77. name="AsSortID_Select" size="1" class="Admin_Select"
  78. style="background-color: #FFFFFF;">
  79. <option value="">
  80. 分类...
  81. </option>
  82. <c:forEach items="${ar_as_list}" var="assort">
  83. <c:choose>
  84. <c:when test="${assort.as_id==article.ar_assort_id}">
  85. <option value="${assort.as_id }" selected>
  86. ${assort.as_name }
  87. </option>
  88. </c:when>
  89. <c:otherwise>
  90. <option value="${assort.as_id }">
  91. ${assort.as_name }
  92. </option>
  93. </c:otherwise>
  94. </c:choose>
  95. </c:forEach>
  96. </select> </span>
  97. </td>
  98. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  99. <font class="BlackS12">&nbsp;</font>
  100. </td>
  101. <td width="218" height="28" bgcolor="#FFFFFF">
  102. &nbsp;
  103. </td>
  104. </tr>
  105. <tr>
  106. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  107. <font class="BlackS12">设置显示</font>
  108. </td>
  109. <td width="218" height="28" bgcolor="#FFFFFF">
  110. &nbsp;
  111. <select name="ar_commend" size="1" class="Admin_Select"
  112. style="background-color: #FFFFFF;">
  113. <c:choose>
  114. <c:when test="${article.ar_commend==1}">
  115. <option value="1" selected>
  116. 在列表中显示
  117. </option>
  118. <option value="0">
  119. 在列表中隐藏
  120. </option>
  121. </c:when>
  122. <c:otherwise>
  123. <option value="1">
  124. 在列表中显示
  125. </option>
  126. <option value="0" selected>
  127. 在列表中隐藏
  128. </option>
  129. </c:otherwise>
  130. </c:choose>
  131. </select>
  132. </td>
  133. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  134. <font class="BlackS12">设置推荐</font>
  135. </td>
  136. <td width="218" height="28" bgcolor="#FFFFFF">
  137. <font class="BlackS10">&nbsp;</font><font class="BlackS12">&nbsp;
  138. <c:choose>
  139. <c:when test="${article.ar_show==1}">
  140. <input type="checkbox" name="ar_show" id="Ar_CommendB"
  141. value="1" checked>
  142. </c:when>
  143. <c:otherwise>
  144. <input type="checkbox" name="ar_show" id="Ar_CommendB"
  145. value="1">
  146. </c:otherwise>
  147. </c:choose> <label for="Ar_CommendB" title="设置在首页推荐栏目显示">
  148. 首页推荐
  149. </label> </font>
  150. </td>
  151. </tr>
  152. <tr>
  153. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  154. <font class="BlackS12">文章作者</font>
  155. </td>
  156. <td width="218" height="28" bgcolor="#FFFFFF">
  157. &nbsp;
  158. <input type="text" name="ar_author" onFocus="Ar_Author.select();"
  159. Maxlength="50" class="Admin_InputText"
  160. style="width: 173; background-color: #FFFFFF;"
  161. value="${article.ar_author }">
  162. &nbsp;
  163. </td>
  164. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  165. <font class="BlackS12">作者邮箱</font>
  166. </td>
  167. <td width="218" height="28" bgcolor="#FFFFFF">
  168. &nbsp;
  169. <input type="text" name="ar_email" Maxlength="100"
  170. class="" style="width: 173; background-color: #FFFFFF;"
  171. value="${article.ar_email}">
  172. &nbsp;
  173. </td>
  174. </tr>
  175. <tr>
  176. <td width="80" height="163" bgcolor="#FFFFFF" valign="top">
  177. <table border="0" width="100%" height="10" cellspacing="0"
  178. cellpadding="0">
  179. <tr>
  180. <td height="28" align="center">
  181. <font class="BlackS12">文章内容</font>
  182. </td>
  183. </tr>
  184. </table>
  185. </td>
  186. <td bgcolor="#FFFFFF" colspan="3">
  187. <textarea name="ar_content" cols="60" rows="10">${article.ar_content }</textarea>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td width="80" height="38" bgcolor="#FFFFFF">
  192. <input type="hidden" name="GuComm" value="ArAdSa">
  193. </td>
  194. <td width="518" height="38" bgcolor="#FFFFFF" colspan="3">
  195. <input type="hidden" name="type" value="${type }">
  196. &nbsp;
  197. <c:choose>
  198. <c:when test="${type==1}">
  199. <input type="submit" value="" class="Admin_Button_Add">
  200. &nbsp;
  201. </c:when>
  202. <c:otherwise>
  203. <input type="submit" value="" class="Admin_Button_Modify">
  204. &nbsp;
  205. </c:otherwise>
  206. </c:choose>
  207. <input type="reset" value="" name="Admin_Button_Reset"
  208. class="Admin_Button_Reset">
  209. &nbsp;
  210. </td>
  211. </tr>
  212. </table>
  213. </form>
  214. <br>
  215. </body>
  216. </html>