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