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

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">
  14. <!--
  15. function addSo_As() {
  16.   if (document.addform.so_addname.value==""&&document.addform.as_addname.value==""){
  17. alert("类别名称不能为空!");
  18. return false;
  19. }
  20. }
  21. function editSo_As() {
  22.   if((document.editform.edit_name.value=="")||document.editform.so_name.value==""&&document.editform.as_name.value==""){
  23. alert("类别名称不能为空!");
  24. return false;
  25. }
  26. }
  27. //-->
  28. </Script>
  29. <Script language="JavaScript">
  30. <!--
  31. function MakeVisible(cur,which) {
  32. if (which==0)
  33. cur.filters.alpha.opacity=100
  34. else
  35. cur.filters.alpha.opacity=20
  36. }
  37. //-->
  38. </Script>
  39. </head>
  40. <body bgcolor="#FFFFFF" topmargin="10" leftmargin="10">
  41. <form name="addform" method="post" action="sort.do?method=soas_add"
  42. onSubmit="return addSo_As();">
  43. <table align="center" border="0" cellpadding="0" cellspacing="1" width="600"
  44. height="10" bgcolor="#CEEFE7">
  45. <tr>
  46. <td width="600" height="30" background="Images/Admin_T_Bg1.gif"
  47. align="center" colspan="3">
  48. <font class="BlackS12"><b>类 别 分 类 管 理</b> </font>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td width="600" height="10" bgcolor="#FFFFFF" colspan="3"></td>
  53. </tr>
  54. <tr>
  55. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  56. <font class="BlackS12">类别名称</font>
  57. </td>
  58. <td width="276" height="28" bgcolor="#FFFFFF">
  59. &nbsp;
  60. <input type="text" name="so_addname" maxlength="12" value=""
  61. class="Admin_InputText"
  62. style="width: 110; background-color: #EAFBF5;">
  63. &nbsp;
  64. </td>
  65. <td width="240" height="28" bgcolor="#FFFFFF">
  66. &nbsp;
  67. <span id="JS_M_SoAS_Name" class="BlackV12">填写类别的名称</span>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  72. <font class="BlackS12">子类别名称</font>
  73. </td>
  74. <td width="276" height="28" bgcolor="#FFFFFF">
  75. &nbsp;
  76. <input type="text" name="as_addname" maxlength="12" value=""
  77. class="Admin_InputText"
  78. style="width: 110; background-color: #EAFBF5;">
  79. &nbsp;
  80. <select name="so_addid">
  81. <c:forEach items="${sort_list}" var="so">
  82. <option value="${so.so_id }">${so.so_name }</option>
  83. </c:forEach>
  84. </select>
  85. </td>
  86. <td width="240" height="28" bgcolor="#FFFFFF">
  87. &nbsp;
  88. <span id="JS_M_SoAS_Name" class="BlackV12">填写子类别的名称(选择类别名称)</span>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td width="80" height="38" bgcolor="#FFFFFF">
  93. </td>
  94. <td width="518" height="38" bgcolor="#FFFFFF" colspan="2">
  95. &nbsp;
  96. <input type="submit" value="" name="submit"
  97. class="Admin_Button_Add">
  98. &nbsp;
  99. <input type="reset" value="" name="cancel"
  100. class="Admin_Button_Reset">
  101. </td>
  102. </tr>
  103. </table>
  104. </form>
  105. <form name="editform" method="post" action="sort.do?method=soas_edit"
  106. onSubmit="return editSo_As();">
  107. <table align="center" border="0" cellpadding="0" cellspacing="1" width="600"
  108. height="10" bgcolor="#CEEFE7">
  109. <tr>
  110. <td width="600" height="10" bgcolor="#FFFFFF" colspan="3"></td>
  111. </tr>
  112. <tr>
  113. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  114. <font class="BlackS12">类别名称</font>
  115. </td>
  116. <td width="276" height="28" bgcolor="#FFFFFF">
  117. &nbsp;
  118. <input type="text" name="so_name" maxlength="12" value="${so_name}"
  119. class="Admin_InputText"
  120. style="width: 110; background-color: #EAFBF5;" disabled="disabled">
  121. &nbsp;
  122. </td>
  123. <td width="240" height="28" bgcolor="#FFFFFF">
  124. &nbsp;
  125. <span id="JS_M_SoAS_Name" class="BlackV12">原类别的名称</span>
  126. </td>
  127. </tr>
  128. <tr>
  129. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  130. <font class="BlackS12">子类别名称</font>
  131. </td>
  132. <td width="276" height="28" bgcolor="#FFFFFF">
  133. &nbsp;
  134. <input type="text" name="as_name" maxlength="12" value="${as_name}"
  135. class="Admin_InputText"
  136. style="width: 110; background-color: #EAFBF5;" disabled="disabled">
  137. &nbsp;
  138. </td>
  139. <td width="240" height="28" bgcolor="#FFFFFF">
  140. &nbsp;
  141. <span id="JS_M_SoAS_Name" class="BlackV12">原子类别的名称</span>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td width="80" height="28" bgcolor="#FFFFFF" align="center">
  146. <font class="BlackS12">修改名称</font>
  147. </td>
  148. <td width="276" height="28" bgcolor="#FFFFFF">
  149. &nbsp;
  150. <input type="text" name="edit_name" value=""
  151. class="Admin_InputText"
  152. style="width: 110; background-color: #EAFBF5;" maxlength="12">
  153. </td>
  154. <td width="240" height="28" bgcolor="#FFFFFF">
  155. &nbsp;
  156. <span id="JS_M_SoAS_Order" class="BlackS12">填写修改类别(分类)的名称</span>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td width="80" height="38" bgcolor="#FFFFFF">
  161. </td>
  162. <td width="518" height="38" bgcolor="#FFFFFF" colspan="2">
  163. &nbsp;
  164. <input type="submit" value="" name="submit"
  165. class="Admin_Button_Modify">
  166. &nbsp;
  167. <input type="reset" value="" name="cancel"
  168. class="Admin_Button_Reset">
  169. </td>
  170. </tr>
  171. </table>
  172. </form>
  173. <br>
  174. <form name="Admin_Sort_List" method="post" action="sort.do?method=soas_deleall">
  175. <table align="center" border="0" cellpadding="0" cellspacing="0" width="600"
  176. height="10">
  177. <tr>
  178. <c:forEach items="${sort_list}" var="sort" varStatus="status">
  179. <c:choose>
  180. <c:when test="${status.count % 2 == 0}">
  181. <td height="10" width="300" bgcolor="#FFFFFF" valign="top"
  182. align="">
  183. <table border="0" cellpadding="0" cellspacing="0" width="298"
  184. height="10" bgcolor="#CEEFE7"
  185. style="border-left-style: solid; border-left-width: 1px; border-left-color: #CEEFE7; border-right-style: solid; border-right-width: 1px; border-right-color: #CEEFE7; border-top-style: solid; border-top-width: 1px; border-top-color: #CEEFE7; border-bottom-style: solid; border-bottom-width: 0px;">
  186. <tr>
  187. <td height="10" width="298" bgcolor="#EAFBF5">
  188. <table border="0" cellpadding="0" cellspacing="0"
  189. width="296" height="25">
  190. <tr>
  191. <td width="168">
  192. &nbsp;
  193. <font class="BlackS12">【${sort.so_name}】</font>
  194. </td>
  195. <td width="128" align="right">
  196. <a
  197. href="sort.do?method=soas_dele&so_id=${sort.so_id }"
  198. class="SilverW14"><img
  199. src="/article/Images/Admin_Button_Delete2.gif"
  200. border="0" width="14" height="10"
  201. style="filter: alpha(opacity =               20)"
  202. onMouseOver="MakeVisible(this,0)"
  203. onclick="JavaScript:return confirm('将同时删除所选择的类别及以下的所有相关内容...nn确定删除吗?');"
  204. onMouseOut="MakeVisible(this,1)" title="删除"> </a>&nbsp;
  205. <a href="sort.do?method=toSoAs_edit&so_id=${sort.so_id }"
  206. class="SilverW14"><img
  207. src="/article/Images/Admin_Button_Modify2.gif"
  208. border="0" width="14" height="10"
  209. style="filter: alpha(opacity =               20)"
  210. onMouseOver="MakeVisible(this,0)"
  211. onMouseOut="MakeVisible(this,1)" title="编辑"> </a>&nbsp;
  212. </td>
  213. </tr>
  214. </table>
  215. </td>
  216. </tr>
  217. <c:forEach items="${sort.assort_list}" var="assort">
  218. <c:if test="${empty sort.assort_list}">
  219. <tr><td>没有相应的子类别</td></tr>
  220. </c:if>
  221. <tr>
  222. <td height="10" width="298" bgcolor="#FFFFFF">
  223. <table border="0" cellpadding="0" cellspacing="0"
  224. width="296" height="24">
  225. <tr bgcolor="#FFFFFF"
  226. onMouseOver="this.style.backgroundColor='#EAFBF5'"
  227. onMouseOut="this.style.backgroundColor='#FFFFFF'">
  228. <td width="168">
  229. &nbsp;
  230. <input type="checkbox" name="dele_id"
  231. id="GuAsSortID_1" value="${assort.as_id }">
  232. <label for="GuAsSortID_1">
  233. <font class="BlackS12">${assort.as_name }</font>
  234. </label>
  235. </td>
  236. <td width="128" align="right">
  237. <a
  238. href="sort.do?method=soas_dele&as_id=${assort.as_id }"
  239. class="SilverW14"><img
  240. src="/article/Images/Admin_Button_Delete2.gif"
  241. border="0" width="14" height="10"
  242. style="filter: alpha(opacity = 20)"
  243. onMouseOver="MakeVisible(this,0)"
  244. onclick="JavaScript:return confirm('将同时删除所选择的类别及以下的所有相关内容...nn确定删除吗?')"
  245. onMouseOut="MakeVisible(this,1)" title="删除"> </a>&nbsp;
  246. <a href="sort.do?method=toSoAs_edit&as_id=${assort.as_id }"
  247. class="SilverW14"><img
  248. src="/article/Images/Admin_Button_Modify2.gif"
  249. border="0" width="14" height="10"
  250. style="filter: alpha(opacity =               20)"
  251. onMouseOver="MakeVisible(this,0)"
  252. onMouseOut="MakeVisible(this,1)" title="编辑"> </a>&nbsp;
  253. </td>
  254. </tr>
  255. </table>
  256. </td>
  257. </tr>
  258. </c:forEach>
  259. </table>
  260. </td>
  261. <tr>
  262. <td>
  263. </td>
  264. </tr>
  265. </c:when>
  266. <c:otherwise>
  267. <td height="10" width="300" bgcolor="#FFFFFF" valign="top"
  268. align="">
  269. <table border="0" cellpadding="0" cellspacing="0" width="298"
  270. height="10" bgcolor="#CEEFE7"
  271. style="border-left-style: solid; border-left-width: 1px; border-left-color: #CEEFE7; border-right-style: solid; border-right-width: 1px; border-right-color: #CEEFE7; border-top-style: solid; border-top-width: 1px; border-top-color: #CEEFE7; border-bottom-style: solid; border-bottom-width: 0px;">
  272. <tr>
  273. <td height="10" width="298" bgcolor="#EAFBF5">
  274. <table border="0" cellpadding="0" cellspacing="0"
  275. width="296" height="25">
  276. <tr>
  277. <td width="168">
  278. &nbsp;
  279. <font class="BlackS12">【${sort.so_name}】</font>
  280. </td>
  281. <td width="128" align="right">
  282. <a
  283. href="sort.do?method=soas_dele&so_id=${sort.so_id }"
  284. class="SilverW14"><img
  285. src="/article/Images/Admin_Button_Delete2.gif"
  286. border="0" width="14" height="10"
  287. style="filter: alpha(opacity =               20)"
  288. onMouseOver="MakeVisible(this,0)"
  289. onclick="JavaScript:return confirm('将同时删除所选择的类别及以下的所有相关内容...nn确定删除吗?')"
  290. onMouseOut="MakeVisible(this,1)" title="删除"> </a>&nbsp;
  291. <a href="sort.do?method=toSoAs_edit&so_id=${sort.so_id }"
  292. class="SilverW14"><img
  293. src="/article/Images/Admin_Button_Modify2.gif"
  294. border="0" width="14" height="10"
  295. style="filter: alpha(opacity =               20)"
  296. onMouseOver="MakeVisible(this,0)"
  297. onMouseOut="MakeVisible(this,1)" title="编辑"> </a>&nbsp;
  298. </td>
  299. </tr>
  300. </table>
  301. </td>
  302. </tr>
  303. <c:forEach items="${sort.assort_list}" var="assort">
  304. <tr>
  305. <td height="10" width="298" bgcolor="#FFFFFF">
  306. <table border="0" cellpadding="0" cellspacing="0"
  307. width="296" height="24">
  308. <tr bgcolor="#FFFFFF"
  309. onMouseOver="this.style.backgroundColor='#EAFBF5'"
  310. onMouseOut="this.style.backgroundColor='#FFFFFF'">
  311. <td width="168">
  312. &nbsp;
  313. <input type="checkbox" name="dele_id"
  314. id="GuAsSortID_1" value="${assort.as_id }">
  315. <label for="GuAsSortID_1">
  316. <font class="BlackS12">${assort.as_name }</font>
  317. </label>
  318. </td>
  319. <td width="128" align="right">
  320. <a
  321. href="sort.do?method=soas_dele&as_id=${assort.as_id }"
  322. class="SilverW14"><img
  323. src="/article/Images/Admin_Button_Delete2.gif"
  324. border="0" width="14" height="10"
  325. style="filter: alpha(opacity = 20)"
  326. onMouseOver="MakeVisible(this,0)"
  327. onclick="JavaScript:return confirm('将同时删除所选择的类别及以下的所有相关内容...nn确定删除吗?')"
  328. onMouseOut="MakeVisible(this,1)" title="删除"> </a>&nbsp;
  329. <a href="sort.do?method=toSoAs_edit&as_id=${assort.as_id }"
  330. class="SilverW14"><img
  331. src="/article/Images/Admin_Button_Modify2.gif"
  332. border="0" width="14" height="10"
  333. style="filter: alpha(opacity = 20)"
  334. onMouseOver="MakeVisible(this,0)"
  335. onMouseOut="MakeVisible(this,1)" title="编辑"> </a>&nbsp;
  336. </td>
  337. </tr>
  338. </table>
  339. </td>
  340. </tr>
  341. </c:forEach>
  342. </table>
  343. </td>
  344. </c:otherwise>
  345. </c:choose>
  346. </c:forEach>
  347. </tr>
  348. </table>
  349. <table border="0" width="600" height="20" cellpadding="0"
  350. cellspacing="0" bgcolor="#CEEFE7"
  351. style="border-left-style: solid; border-left-width: 1px; border-left-color: #CEEFE7; border-right-style: solid; border-right-width: 1px; border-right-color: #CEEFE7; border-top-style: solid; border-top-width: 1px; border-top-color: #CEEFE7; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #CEEFE7;">
  352. <tr>
  353. <td width="600" height="38" bgcolor="#FFFFFF" align="right">
  354. <input type="hidden" name="GuComm" value="ASDE">
  355. <input
  356. onClick="{if(confirm('将同时删除该分类下的所有相关内容...nn确定删除吗?')){this.document();return true;}return false;}"
  357. type="submit" value="" name="Admin_AsSort_Delete"
  358. class="Admin_Button_Delete">
  359. &nbsp;
  360. <input type="button" name="Admin_Button_SelectAll"
  361. class="Admin_Button_SelectAll"
  362. onclick="JavaScript:GuSelectAll(document.Admin_Sort_List.dele_id);">
  363. &nbsp;
  364. <input type="button" name="Admin_Button_SelectReverse"
  365. Class="Admin_Button_SelectReverse"
  366. onclick="JavaScript:GuSelectReverse(document.Admin_Sort_List.dele_id);">
  367. &nbsp;
  368. <input type="button" name="Admin_Button_SelectClear"
  369. class="Admin_Button_SelectClear"
  370. onclick="JavaScript:GuSelectClear(document.Admin_Sort_List.dele_id);">
  371. &nbsp;
  372. </td>
  373. </tr>
  374. </table>
  375. </form>
  376. <br>
  377. </body>
  378. </html>