admin_type.jsp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:16k
- <%@ page contentType="text/html;charset=UTF-8"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <html>
- <head>
- <title>分类管理</title>
- <meta http-equiv="Content-Type" content="text/html;charset=gb2312">
- <meta http-equiv="Content-Language" Content="zh-CN">
- <meta name="Keywords" Content="">
- <meta name="Description" Content="">
- <link type="text/css" rel="stylesheet" href="/yf_article/Style/Style.css">
- <Script Language="JavaScript" src="Include/Function.js"></Script>
- <Script Language="JavaScript" src="Include/PopText.js"></Script>
- <Script Language="JavaScript">
- <!--
- function addSo_As() {
- if (document.addform.so_addname.value==""&&document.addform.as_addname.value==""){
- alert("类别名称不能为空!");
- return false;
- }
- }
- function editSo_As() {
- if((document.editform.edit_name.value=="")||document.editform.so_name.value==""&&document.editform.as_name.value==""){
- alert("类别名称不能为空!");
- return false;
- }
- }
- //-->
- </Script>
- <Script language="JavaScript">
- <!--
- function MakeVisible(cur,which) {
- if (which==0)
- cur.filters.alpha.opacity=100
- else
- cur.filters.alpha.opacity=20
- }
- //-->
- </Script>
- </head>
- <body bgcolor="#FFFFFF" topmargin="10" leftmargin="10">
- <form name="addform" method="post" action="sort.do?method=soas_add"
- onSubmit="return addSo_As();">
- <table align="center" border="0" cellpadding="0" cellspacing="1" width="600"
- height="10" bgcolor="#CEEFE7">
- <tr>
- <td width="600" height="30" background="Images/Admin_T_Bg1.gif"
- align="center" colspan="3">
- <font class="BlackS12"><b>类 别 分 类 管 理</b> </font>
- </td>
- </tr>
- <tr>
- <td width="600" height="10" bgcolor="#FFFFFF" colspan="3"></td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">类别名称</font>
- </td>
- <td width="276" height="28" bgcolor="#FFFFFF">
-
- <input type="text" name="so_addname" maxlength="12" value=""
- class="Admin_InputText"
- style="width: 110; background-color: #EAFBF5;">
-
- </td>
- <td width="240" height="28" bgcolor="#FFFFFF">
-
- <span id="JS_M_SoAS_Name" class="BlackV12">填写类别的名称</span>
- </td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">子类别名称</font>
- </td>
- <td width="276" height="28" bgcolor="#FFFFFF">
-
- <input type="text" name="as_addname" maxlength="12" value=""
- class="Admin_InputText"
- style="width: 110; background-color: #EAFBF5;">
-
- <select name="so_addid">
- <c:forEach items="${sort_list}" var="so">
- <option value="${so.so_id }">${so.so_name }</option>
- </c:forEach>
- </select>
- </td>
- <td width="240" height="28" bgcolor="#FFFFFF">
-
- <span id="JS_M_SoAS_Name" class="BlackV12">填写子类别的名称(选择类别名称)</span>
-
- </td>
-
- </tr>
- <tr>
- <td width="80" height="38" bgcolor="#FFFFFF">
- </td>
- <td width="518" height="38" bgcolor="#FFFFFF" colspan="2">
-
- <input type="submit" value="" name="submit"
- class="Admin_Button_Add">
-
- <input type="reset" value="" name="cancel"
- class="Admin_Button_Reset">
- </td>
- </tr>
- </table>
- </form>
- <form name="editform" method="post" action="sort.do?method=soas_edit"
- onSubmit="return editSo_As();">
- <table align="center" border="0" cellpadding="0" cellspacing="1" width="600"
- height="10" bgcolor="#CEEFE7">
- <tr>
- <td width="600" height="10" bgcolor="#FFFFFF" colspan="3"></td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">类别名称</font>
- </td>
- <td width="276" height="28" bgcolor="#FFFFFF">
-
- <input type="text" name="so_name" maxlength="12" value="${so_name}"
- class="Admin_InputText"
- style="width: 110; background-color: #EAFBF5;" disabled="disabled">
-
- </td>
- <td width="240" height="28" bgcolor="#FFFFFF">
-
- <span id="JS_M_SoAS_Name" class="BlackV12">原类别的名称</span>
- </td>
- </tr>
-
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">子类别名称</font>
- </td>
- <td width="276" height="28" bgcolor="#FFFFFF">
-
- <input type="text" name="as_name" maxlength="12" value="${as_name}"
- class="Admin_InputText"
- style="width: 110; background-color: #EAFBF5;" disabled="disabled">
-
- </td>
- <td width="240" height="28" bgcolor="#FFFFFF">
-
- <span id="JS_M_SoAS_Name" class="BlackV12">原子类别的名称</span>
- </td>
- </tr>
- <tr>
- <td width="80" height="28" bgcolor="#FFFFFF" align="center">
- <font class="BlackS12">修改名称</font>
- </td>
- <td width="276" height="28" bgcolor="#FFFFFF">
-
- <input type="text" name="edit_name" value=""
- class="Admin_InputText"
- style="width: 110; background-color: #EAFBF5;" maxlength="12">
- </td>
- <td width="240" height="28" bgcolor="#FFFFFF">
-
- <span id="JS_M_SoAS_Order" class="BlackS12">填写修改类别(分类)的名称</span>
- </td>
- </tr>
- <tr>
- <td width="80" height="38" bgcolor="#FFFFFF">
- </td>
- <td width="518" height="38" bgcolor="#FFFFFF" colspan="2">
-
- <input type="submit" value="" name="submit"
- class="Admin_Button_Modify">
-
- <input type="reset" value="" name="cancel"
- class="Admin_Button_Reset">
- </td>
- </tr>
- </table>
- </form>
- <br>
- <form name="Admin_Sort_List" method="post" action="sort.do?method=soas_deleall">
- <table align="center" border="0" cellpadding="0" cellspacing="0" width="600"
- height="10">
- <tr>
- <c:forEach items="${sort_list}" var="sort" varStatus="status">
- <c:choose>
- <c:when test="${status.count % 2 == 0}">
- <td height="10" width="300" bgcolor="#FFFFFF" valign="top"
- align="">
- <table border="0" cellpadding="0" cellspacing="0" width="298"
- height="10" bgcolor="#CEEFE7"
- 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;">
- <tr>
- <td height="10" width="298" bgcolor="#EAFBF5">
- <table border="0" cellpadding="0" cellspacing="0"
- width="296" height="25">
- <tr>
- <td width="168">
-
- <font class="BlackS12">【${sort.so_name}】</font>
- </td>
- <td width="128" align="right">
- <a
- href="sort.do?method=soas_dele&so_id=${sort.so_id }"
- class="SilverW14"><img
- src="/article/Images/Admin_Button_Delete2.gif"
- border="0" width="14" height="10"
- style="filter: alpha(opacity = 20)"
- onMouseOver="MakeVisible(this,0)"
- onclick="JavaScript:return confirm('将同时删除所选择的类别及以下的所有相关内容...nn确定删除吗?');"
- onMouseOut="MakeVisible(this,1)" title="删除"> </a>
- <a href="sort.do?method=toSoAs_edit&so_id=${sort.so_id }"
- class="SilverW14"><img
- src="/article/Images/Admin_Button_Modify2.gif"
- border="0" width="14" height="10"
- style="filter: alpha(opacity = 20)"
- onMouseOver="MakeVisible(this,0)"
- onMouseOut="MakeVisible(this,1)" title="编辑"> </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <c:forEach items="${sort.assort_list}" var="assort">
- <c:if test="${empty sort.assort_list}">
- <tr><td>没有相应的子类别</td></tr>
- </c:if>
- <tr>
- <td height="10" width="298" bgcolor="#FFFFFF">
- <table border="0" cellpadding="0" cellspacing="0"
- width="296" height="24">
- <tr bgcolor="#FFFFFF"
- onMouseOver="this.style.backgroundColor='#EAFBF5'"
- onMouseOut="this.style.backgroundColor='#FFFFFF'">
- <td width="168">
-
- <input type="checkbox" name="dele_id"
- id="GuAsSortID_1" value="${assort.as_id }">
- <label for="GuAsSortID_1">
- <font class="BlackS12">${assort.as_name }</font>
- </label>
- </td>
- <td width="128" align="right">
- <a
- href="sort.do?method=soas_dele&as_id=${assort.as_id }"
- class="SilverW14"><img
- src="/article/Images/Admin_Button_Delete2.gif"
- border="0" width="14" height="10"
- style="filter: alpha(opacity = 20)"
- onMouseOver="MakeVisible(this,0)"
- onclick="JavaScript:return confirm('将同时删除所选择的类别及以下的所有相关内容...nn确定删除吗?')"
- onMouseOut="MakeVisible(this,1)" title="删除"> </a>
- <a href="sort.do?method=toSoAs_edit&as_id=${assort.as_id }"
- class="SilverW14"><img
- src="/article/Images/Admin_Button_Modify2.gif"
- border="0" width="14" height="10"
- style="filter: alpha(opacity = 20)"
- onMouseOver="MakeVisible(this,0)"
- onMouseOut="MakeVisible(this,1)" title="编辑"> </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </c:forEach>
- </table>
- </td>
- <tr>
- <td>
- </td>
- </tr>
- </c:when>
- <c:otherwise>
- <td height="10" width="300" bgcolor="#FFFFFF" valign="top"
- align="">
- <table border="0" cellpadding="0" cellspacing="0" width="298"
- height="10" bgcolor="#CEEFE7"
- 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;">
- <tr>
- <td height="10" width="298" bgcolor="#EAFBF5">
- <table border="0" cellpadding="0" cellspacing="0"
- width="296" height="25">
- <tr>
- <td width="168">
-
- <font class="BlackS12">【${sort.so_name}】</font>
- </td>
- <td width="128" align="right">
- <a
- href="sort.do?method=soas_dele&so_id=${sort.so_id }"
- class="SilverW14"><img
- src="/article/Images/Admin_Button_Delete2.gif"
- border="0" width="14" height="10"
- style="filter: alpha(opacity = 20)"
- onMouseOver="MakeVisible(this,0)"
- onclick="JavaScript:return confirm('将同时删除所选择的类别及以下的所有相关内容...nn确定删除吗?')"
- onMouseOut="MakeVisible(this,1)" title="删除"> </a>
- <a href="sort.do?method=toSoAs_edit&so_id=${sort.so_id }"
- class="SilverW14"><img
- src="/article/Images/Admin_Button_Modify2.gif"
- border="0" width="14" height="10"
- style="filter: alpha(opacity = 20)"
- onMouseOver="MakeVisible(this,0)"
- onMouseOut="MakeVisible(this,1)" title="编辑"> </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <c:forEach items="${sort.assort_list}" var="assort">
- <tr>
- <td height="10" width="298" bgcolor="#FFFFFF">
- <table border="0" cellpadding="0" cellspacing="0"
- width="296" height="24">
- <tr bgcolor="#FFFFFF"
- onMouseOver="this.style.backgroundColor='#EAFBF5'"
- onMouseOut="this.style.backgroundColor='#FFFFFF'">
- <td width="168">
-
- <input type="checkbox" name="dele_id"
- id="GuAsSortID_1" value="${assort.as_id }">
- <label for="GuAsSortID_1">
- <font class="BlackS12">${assort.as_name }</font>
- </label>
- </td>
- <td width="128" align="right">
- <a
- href="sort.do?method=soas_dele&as_id=${assort.as_id }"
- class="SilverW14"><img
- src="/article/Images/Admin_Button_Delete2.gif"
- border="0" width="14" height="10"
- style="filter: alpha(opacity = 20)"
- onMouseOver="MakeVisible(this,0)"
- onclick="JavaScript:return confirm('将同时删除所选择的类别及以下的所有相关内容...nn确定删除吗?')"
- onMouseOut="MakeVisible(this,1)" title="删除"> </a>
- <a href="sort.do?method=toSoAs_edit&as_id=${assort.as_id }"
- class="SilverW14"><img
- src="/article/Images/Admin_Button_Modify2.gif"
- border="0" width="14" height="10"
- style="filter: alpha(opacity = 20)"
- onMouseOver="MakeVisible(this,0)"
- onMouseOut="MakeVisible(this,1)" title="编辑"> </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </c:forEach>
- </table>
- </td>
- </c:otherwise>
- </c:choose>
- </c:forEach>
- </tr>
- </table>
- <table border="0" width="600" height="20" cellpadding="0"
- cellspacing="0" bgcolor="#CEEFE7"
- 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;">
- <tr>
- <td width="600" height="38" bgcolor="#FFFFFF" align="right">
- <input type="hidden" name="GuComm" value="ASDE">
- <input
- onClick="{if(confirm('将同时删除该分类下的所有相关内容...nn确定删除吗?')){this.document();return true;}return false;}"
- type="submit" value="" name="Admin_AsSort_Delete"
- class="Admin_Button_Delete">
-
- <input type="button" name="Admin_Button_SelectAll"
- class="Admin_Button_SelectAll"
- onclick="JavaScript:GuSelectAll(document.Admin_Sort_List.dele_id);">
-
- <input type="button" name="Admin_Button_SelectReverse"
- Class="Admin_Button_SelectReverse"
- onclick="JavaScript:GuSelectReverse(document.Admin_Sort_List.dele_id);">
-
- <input type="button" name="Admin_Button_SelectClear"
- class="Admin_Button_SelectClear"
- onclick="JavaScript:GuSelectClear(document.Admin_Sort_List.dele_id);">
-
- </td>
- </tr>
- </table>
- </form>
- <br>
- </body>
- </html>