ChildMenuManage.jsp~108~
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:7k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
- <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
- <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
- <html>
- <head>
- <title>ChildMenuManage</title>
- <script type="text/javascript">
- function ShowIndexContorl(index){
- if(index != '0' && index != ""){
- document.getElementById("showIndex").style.display = "";
- }else{
- document.getElementById("showIndex").style.display = "none";
- }
- }
- function DeleteMenu(){
- if(confirm("如果删除该菜单,与其对应的所有信息都将被删除,确定要这么做吗?")){
- var form = document.getElementById("form1");
- form.action = "";
- }
- }
- window.onload = function(){
- ShowIndexContorl('<c:out value="${menu.men_Type}" />')
- <c:if test="${menu.men_Type != null}">
- document.getElementById("type").value = <c:out value="${menu.men_Type}" />
- </c:if>
- }
- </script>
- <link href="<%=request.getContextPath() %>/Manage/Css/skinv2.0.css" rel="stylesheet" type="text/css" />
- </head>
- <body bgcolor="#ffffff">
- <form id="form1" method="post" action="<%=request.getContextPath() %>/Manage/Menu.do?todo=EditMenu" enctype="multipart/form-data">
- <table cellspacing="0" cellpadding="0" width="100%" border="0">
- <tr bgcolor="#cfdbe8">
- <td style="WIDTH: 20px" width="20" bgcolor="#cfdbe8" height="19"> <img height="10" src="<%=request.getContextPath() %>/Manage/images/icon.gif" width="12" alt="" /></td>
- <td valign="middle" bgcolor="#cfdbe8" colspan="2"> 网站栏目管理</td>
- </tr>
- <tr>
- <td style="HEIGHT: 31px" valign="top" align="left" height="80"> </td>
- <td style="HEIGHT: 31px" valign="middle" align="left" colspan="2">
- <img src="<%=request.getContextPath() %>/Manage/images/edit.gif" align="middle" alt="" /> 顶级栏目管理
- </td>
- </tr>
- <tr>
- <td style="HEIGHT: 1px" valign="top" align="left"></td>
- <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
- <td style="HEIGHT: 1px; width: 144px;" valign="top" align="left"></td>
- </tr>
- <tr>
- <td style="HEIGHT: 381px" valign="top" align="left"></td>
- <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
- <br/>
- <table align="left" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1" width="98%">
- <tr bgcolor="#ffffff">
- <td style="height: 25px; width: 117px;">
- 栏目名称:
- </td>
- <td style="height: 23px">
- <input type="text" id="txtCatName" name="name" value='<c:out value="${menu.men_Name}" />' />
- <input type="submit" id="btnSaveCategory" value="保存" />
- <input type="hidden" name="id" value='<c:out value="${menu.men_ID}" />' />
- <input type="hidden" name="superiorID" value='<c:out value="${param.superiorID}" />' />
- <input type="hidden" name="language" value='<c:out value="${param.language}" />' />
- </td>
- </tr>
- <tr bgcolor="#ffffff">
- <td style="height: 25px; width: 117px;">
- 栏目排序:
- </td>
- <td style="height: 23px">
- <input type="text" id="txtCatName" name="order" value='<c:out value="${menu.men_Order}" />' />
- </td>
- </tr>
- <tr bgcolor="#ffffff">
- <td style="height: 25px; width: 117px;">
- 展示形式:
- </td>
- <td style="height: 23px">
- <select name="type" id="type" onchange="ShowIndexContorl(this.value);">
- <option value="0" selected="selected">单篇信息</option>
- <option value="1">多篇信息一型</option>
- <option value="2">多篇信息二型</option>
- <option value="3">多篇信息三型</option>
- <option value="4">多篇信息四型</option>
- </select>
- <div id="showIndex" style="display:none">
- <c:if test="${menu.men_Index == 1}">
- <input type="checkbox" name="index" value="1" checked="checked" />钩选表示在首页显示
- </c:if>
- <c:if test="${menu.men_Index != 1}">
- <input type="checkbox" name="index" value="1" />钩选表示在首页显示
- </c:if>
- </div>
- </td>
- </tr>
- <tr bgcolor="#ffffff">
- <td style="height: 25px; width: 117px;">
- 现有栏目:
- </td>
- <td style="height: 23px">
- <table width="480" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td height="25" width="200" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>栏目名</strong></td>
- <td width="100" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>类型</strong></td>
- <td width="160" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
- </tr>
- </table>
- <div id="divList">
- <c:forEach var="menu" items="${list}" varStatus="status">
- <table width="480" border="0" cellpadding="0" cellspacing="0" class="table_Left">
- <tr>
- <td width="200" class="table_Right" height="25">
- <c:out value="${menu.men_Name}" />
- </td>
- <td width="100" class="table_Right" align="center">
- <c:if test="${menu.men_Type == 0}">
- 单篇信息
- </c:if>
- <c:if test="${menu.men_Type == 1}">
- 多篇信息一型
- </c:if>
- <c:if test="${menu.men_Type == 2}">
- 多篇信息二型
- </c:if>
- <c:if test="${menu.men_Type == 3}">
- 多篇信息三型
- </c:if>
- <c:if test="${menu.men_Type == 4}">
- 多篇信息四型
- </c:if>
- </td>
- <td width="160" align="center" class="table_Right">
- <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>
- |
- <a href='javascript:DeleteMenu();'>删除</a>
- |
- <c:if test="${menu.men_Type == 0}">
- <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=OpenInformation&menID=<c:out value="${menu.men_ID}" />'>信息</a>
- </c:if>
- <c:if test="${menu.men_Type != 0}">
- <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=OpenInformationList&menuID=<c:out value="${menu.men_ID}" />'>信息</a>
- </c:if>
- </td>
- </tr>
- </table>
- </c:forEach>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>