📄 moduleadd.jsp
字号:
<%--
Created by IntelliJ IDEA.
User: Songzou
Date: 2007-04-08
Time: 11:48:00
--%>
<%@ page language="java" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/jsp/inc/taglib.jsp"%>
<%@ include file="/WEB-INF/jsp/inc/css.jsp"%>
<%@ include file="/WEB-INF/jsp/inc/js.jsp"%>
<script type="text/javascript" src="js/frame/module.js"></script>
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<title></title>
<base target="_self"/>
</head>
<body onload="selectAddSuperModule(getObject('father')<c:forEach var="module" items="${moduleList}"><c:if test="${module.menulevel=='2'}">,'${module.menuid}'</c:if></c:forEach>)">
<div align="center">
<form action="moduleAction.do?method=moduleAddSave" name="moduleInfo" method="post">
<table class="inputTable" width="700">
<tr class="inputTableHead"><td colspan="4"><b>模块信息添加</b></td></tr>
<tr>
<td width="70">模块名称</td>
<td width="280"><input type="text" class="char" name="menuname" maxlength="50" style="width:100%"></td>
<td width="80">上级模块</td>
<td width="270">
<select id="father" class="select" name="fatherid" onchange="selectAddSuperModule(getObject('father')<c:forEach var="module" items="${moduleList}"><c:if test="${module.menulevel=='2'}">,'${module.menuid}'</c:if></c:forEach>)">
<option value="0" <c:if test="${fatherid=='0'}">selected</c:if> ><c:out value="${systemName}"/></option>
<c:forEach var="module" items="${moduleList}">
<option value="${module.menuid}" <c:if test="${fatherid==module.menuid}">selected</c:if>><c:if test="${module.menulevel=='1'}"> </c:if><c:if test="${module.menulevel=='2'}"> </c:if><c:out value="${module.menuname}"/></option>
</c:forEach>
</select>
</td>
</tr>
<tr>
<td>模块类型</td>
<td height="22">
<c:if test="${fatherid=='0'}">
<table cellpadding="0" cellspacing="0"><tr>
<td id="modulekind1"><input type="radio" name="menutype" value="1" checked style="vertical-align:middle;" onclick="selectModuleKind(this)">有下级模块 </td>
<td id="modulekind2" style="display:none"><input type="radio" name="menutype" value="2" style="vertical-align:middle;" onclick="selectModuleKind(this)">执行模块 </td>
<td id="modulekind3" style="display:none"><input type="radio" name="menutype" value="3" style="vertical-align:middle;" onclick="selectModuleKind(this)">分隔线</td>
</tr></table>
</c:if>
<c:if test="${fatherid!='0'}">
<table cellpadding="0" cellspacing="0"><tr>
<td id="modulekind1"><input type="radio" name="menutype" value="1" style="vertical-align:middle;" onclick="selectModuleKind(this)">有下级模块 </td>
<td id="modulekind2"><input type="radio" name="menutype" value="2" checked style="vertical-align:middle;" onclick="selectModuleKind(this)">执行模块 </td>
<td id="modulekind3"><input type="radio" name="menutype" value="3" style="vertical-align:middle;" onclick="selectModuleKind(this)">分隔线</td>
</tr></table>
</c:if>
</td>
<td>备注</td>
<td><input type="text" name="menudescribe" class="char" maxlength="100" style="width:100%"></td>
</tr>
<tr id="scriptid" <c:if test="${fatherid=='0'}">style="display:none"</c:if>>
<td>执行脚本</td>
<td colspan="3"><input type="text" name="menuurl" maxlength="100" class="char" style="width:100%"></td>
</tr>
</table>
<br>
<table id="actionid" class="inputTable" width="700" <c:if test="${fatherid=='0'}">style="display:none"</c:if>>
<tr class="inputTableHead">
<td width="250" align="center">请求动作</td>
<td width="350" align="center">动作说明</td>
<td width="100" align="center">操作</td>
</tr>
<tr>
<td align="center"><a href="javascript:void(0);" onclick="addAction()">添加动作</a></td>
<td></td>
<td align="center"><a href="javascript:void(0);" onclick="clearAction()">清除动作</a></td>
</tr>
</table>
<br>
<input type="button" value="返回" style="width:70" class="btn" imageType="return" onclick="link('moduleAction.do?method=moduleList&fatherid=${fatherid}')">
<input type="button" value="保存" style="width:70" class="btn" imageType="ok" onclick="checkModuleForm();">
</form>
</div>
<table id="explain1" cellpadding="5" <c:if test="${fatherid=='0'}">style="display:block"</c:if><c:if test="${fatherid!='0'}">style="display:none"</c:if>>
<tr><td><li><b>模块设置说明</b></li></td></tr>
<tr><td><li>根模块必须有子模块</li></td></tr>
</table>
<table id="explain2" cellpadding="5" <c:if test="${supermodule=='0'}">style="display:none"</c:if><c:if test="${supermodule!='0'}">style="display:block"</c:if>>
<tr><td><li><b>模块设置说明</b></li></td></tr>
<tr><td><li>根模块的下级模块可以有子模块,也可以没有子模块</li></td></tr>
<tr><td><li>模块类型分为:1.有下级模块,2.可执行模块,3.分隔线三类</li></td></tr>
<tr><td><li>选择模块类型为:可执行模块,将显示模块动作的输入框</li></td></tr>
<tr><td><li>模块的执行脚本是菜单点击执行的动作,通常为moduleAction.do?method=gogo;特殊情况特殊处理</li></td></tr>
<tr><td><li>模块的执行脚本可以是javascript函数,但暂不支持带'或"的</li></td></tr>
<tr><td><li>模块的请求动作包含模块的入口动作以及模块中的其它各种请求动作</li></td></tr>
<tr><td><li>模块的请求动作必须设置完整,是权限判断的依据,如果设置不完整将不能访问请求动作</li></td></tr>
<tr><td><li>模块的请求动作使用相对路径,需要分发方法的参数,如:moduleAction.do?method=gogo</li></td></tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -