ChildMenuManage.jsp
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:7k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
  3. <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  4. <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
  5. <html>
  6. <head>
  7. <title>ChildMenuManage</title>
  8. <script type="text/javascript">
  9. function ShowIndexContorl(index){
  10.   if(index != '0' && index != ""){
  11.     document.getElementById("showIndex").style.display = "";
  12.   }else{
  13.     document.getElementById("showIndex").style.display = "none";
  14.   }
  15. }
  16. function DeleteMenu(menuID){
  17.   if(confirm("如果删除该菜单,与其对应的所有信息都将被删除,确定要这么做吗?")){
  18.     var form = document.getElementById("form1");
  19.     form.action = '<%=request.getContextPath() %>/Manage/Menu.do?todo=DeleteMenu&superiorID=<c:out value="${param.superiorID}" />&menuID=' + menuID;
  20.     form.submit();
  21.   }
  22. }
  23. window.onload = function(){
  24.   ShowIndexContorl('<c:out value="${menu.men_Type}" />')
  25.   <c:if test="${menu.men_Type != null}">
  26.   document.getElementById("type").value = <c:out value="${menu.men_Type}" />
  27.   </c:if>
  28. }
  29. </script>
  30. <link href="<%=request.getContextPath() %>/Manage/Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  31. </head>
  32. <body bgcolor="#ffffff">
  33. <form id="form1" method="post" action="<%=request.getContextPath() %>/Manage/Menu.do?todo=EditMenu" enctype="multipart/form-data">
  34. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  35.   <tr bgcolor="#cfdbe8">
  36.     <td style="WIDTH: 20px" width="20" bgcolor="#cfdbe8" height="19">&nbsp;<img height="10" src="<%=request.getContextPath() %>/Manage/images/icon.gif" width="12" alt="" /></td>
  37.     <td valign="middle" bgcolor="#cfdbe8" colspan="2">&nbsp; 网站栏目管理</td>
  38.   </tr>
  39.   <tr>
  40.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  41.     <td style="HEIGHT: 31px" valign="middle" align="left" colspan="2">
  42.       &nbsp;<img src="<%=request.getContextPath() %>/Manage/images/edit.gif" align="middle" alt="" />&nbsp;顶级栏目管理
  43.     </td>
  44.   </tr>
  45.   <tr>
  46.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  47.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  48.     <td style="HEIGHT: 1px; width: 144px;" valign="top" align="left"></td>
  49.   </tr>
  50.   <tr>
  51.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  52.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  53.       <br/>
  54.       <table align="left" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1" width="98%">
  55.         <tr bgcolor="#ffffff">
  56.           <td style="height: 25px; width: 117px;">
  57.           &nbsp; 栏目名称:
  58.           </td>
  59.           <td style="height: 23px">
  60.             <input type="text" id="txtCatName" name="name" value='<c:out value="${menu.men_Name}" />' />
  61.             <input type="submit" id="btnSaveCategory" value="保存" />
  62.             <input type="hidden" name="id" value='<c:out value="${menu.men_ID}" />' />
  63.             <input type="hidden" name="superiorID" value='<c:out value="${param.superiorID}" />' />
  64.             <input type="hidden" name="language" value='<c:out value="${param.Language}" />' />
  65.           </td>
  66.         </tr>
  67.         <tr bgcolor="#ffffff">
  68.           <td style="height: 25px; width: 117px;">
  69.           &nbsp; 栏目排序:
  70.           </td>
  71.           <td style="height: 23px">
  72.             <input type="text" id="txtCatName" name="order" value='<c:out value="${menu.men_Order}" />' />
  73.           </td>
  74.         </tr>
  75.         <tr bgcolor="#ffffff">
  76.           <td style="height: 25px; width: 117px;">
  77.           &nbsp; 展示形式:
  78.           </td>
  79.           <td style="height: 23px">
  80.             <select name="type" id="type" onchange="ShowIndexContorl(this.value);">
  81.               <option value="0" selected="selected">单篇信息</option>
  82.               <option value="1">多篇信息一型</option>
  83.               <option value="2">多篇信息二型</option>
  84.               <option value="3">多篇信息三型</option>
  85.               <option value="4">多篇信息四型</option>
  86.             </select>
  87.             <div id="showIndex" style="display:none">
  88.               <c:if test="${menu.men_Index == 1}">
  89.                 <input type="checkbox" name="index" value="1" checked="checked" />钩选表示在首页显示
  90.               </c:if>
  91.               <c:if test="${menu.men_Index != 1}">
  92.                 <input type="checkbox" name="index" value="1" />钩选表示在首页显示
  93.               </c:if>
  94.             </div>
  95.           </td>
  96.         </tr>
  97.         <tr bgcolor="#ffffff">
  98.           <td style="height: 25px; width: 117px;">
  99.           &nbsp; 现有栏目:
  100.           </td>
  101.           <td style="height: 23px">
  102.             <table width="480" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  103.               <tr>
  104.                 <td height="25" width="200" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>栏目名</strong></td>
  105.                 <td width="100" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>类型</strong></td>
  106.                 <td width="160" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  107.               </tr>
  108.             </table>
  109.             <div id="divList">
  110.               <c:forEach var="menu" items="${list}" varStatus="status">
  111.                 <table width="480" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  112.                   <tr>
  113.                     <td width="200" class="table_Right" height="25">
  114.                       &nbsp;<c:out value="${menu.men_Name}" />
  115.                     </td>
  116.                     <td width="100" class="table_Right" align="center">
  117.                       <c:if test="${menu.men_Type == 0}">
  118.                         单篇信息
  119.                       </c:if>
  120.                       <c:if test="${menu.men_Type == 1}">
  121.                         多篇信息一型
  122.                       </c:if>
  123.                       <c:if test="${menu.men_Type == 2}">
  124.                         多篇信息二型
  125.                       </c:if>
  126.                       <c:if test="${menu.men_Type == 3}">
  127.                         多篇信息三型
  128.                       </c:if>
  129.                       <c:if test="${menu.men_Type == 4}">
  130.                         多篇信息四型
  131.                       </c:if>
  132.                     </td>
  133.                     <td width="160" align="center" class="table_Right">
  134.                       <a href='<%=request.getContextPath() %>/Manage/Menu.do?todo=OpenMenu&menID=<c:out value="${menu.men_ID}" />&language=<c:out value="${param.language}" />&superiorID=<c:out value="${param.superiorID}" />'>编辑</a>
  135.                       &nbsp;|&nbsp;
  136.                       <a href='javascript:DeleteMenu(<c:out value="${menu.men_ID}" />);'>删除</a>
  137.                       &nbsp;|&nbsp;
  138.                       <c:if test="${menu.men_Type == 0}">
  139.                         <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=OpenInformation&menID=<c:out value="${menu.men_ID}" />'>信息</a>
  140.                       </c:if>
  141.                       <c:if test="${menu.men_Type != 0}">
  142.                         <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=OpenInformationList&menuID=<c:out value="${menu.men_ID}" />'>信息</a>
  143.                       </c:if>
  144.                     </td>
  145.                   </tr>
  146.                 </table>
  147.               </c:forEach>
  148.             </div>
  149.           </td>
  150.         </tr>
  151.       </table>
  152.     </td>
  153.   </tr>
  154. </table>
  155. </form>
  156. </body>
  157. </html>