| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <%@ include file="/include/head.jsp"%>
- <%@ page contentType="text/html;charset=GBK"%>
- <%
- String[][] views = (String[][])request.getAttribute("views");
- String roles = (String)request.getAttribute("roles");
- String[][] pindaos = (String[][])request.getAttribute("pindaos");
- String selectFlag="选择";
- %>
- <html>
- <head>
- <title>菜单编辑</title>
- <LINK rel="stylesheet" type="text/css" href="/shares/resources/css/type1.css" />
- <SCRIPT LANGUAGE="JavaScript">
- function submitForm(){
- //var re=window.confirm("您要将提交当前的页面吗?");
- s1=theForm.PinDao.options(theForm.PinDao.options.selectedIndex).text;
- if (s1=="<%=selectFlag%>") {
- window.alert("频道不能为空");return("");
- }
- // if (theForm.Childs.options(theForm.Childs.options.selectedIndex).text=="<%=selectFlag%>")
- // {
- // window.alert("级别数不能为空");return("");
- //}
- if (theForm.Layers.options(theForm.Layers.options.selectedIndex).text=="<%=selectFlag%>")
- {
- window.alert("子数不能为空");return("");
- }
- if (theForm.MenuName.value=="") {window.alert("菜单名不能为空");return("");}
- if (theForm.MenuURL.value=="") {window.alert("菜单URL不能为空");return("");}
- if (theForm.Pos.value=="") {
- window.alert("位置不能为空");return("");
- }
- s1=theForm.Role.options(theForm.Role.options.selectedIndex).text;
- if (s1=="<%=selectFlag%>") {
- window.alert("角色不能为空");return("");
- }
- theForm.submit();
- }
- </SCRIPT>
- </head>
- <body>
- <form name="theForm" method="POST" action="SubmitMenu.do?new=0">
- <%@ include file="/include/top.jsp"%>
- <!-- AncestorID 当选择频道后由系统带出 -->
- <input type="hidden" name="AncestorID">
- <table border="0" width="100%" cellspacing="1">
- <tr>
- <td ><label>书册</label></td>
- <td >
- <select name="PinDao" class="formselect">
- <option><%=selectFlag%></option>
- <%
- if (pindaos!= null){
- for(int i=0;i<pindaos.length;i++) {
- %>
- <option value=<%=pindaos[i][1]%>><%=pindaos[i][0]%></option>
- <%
- }
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td ><label>级别数</label></td>
- <td >
- <select type="text" name="Layers" class="formselect">
- <option><%=selectFlag%></option>
- <option value=0>最上层</option>
- <option>1</option>
- <option>2</option>
- <option>3</option>
- <option>4</option>
- </select>
- </td>
- </tr>
- <tr>
- <td ><label>子数</label></td>
- <td >
- <select name="Childs" class="formselect">
- <option><%=selectFlag%></option>
- <option value=0>有子项</option>
- <option value=1>无子项</option>
- </select></td>
- </tr>
- <tr>
- <td ><label>菜单名</label></td>
- <td ><input type="text" name="MenuName" size="80" ></td>
- </tr>
- <tr>
- <td ><label>菜单URL</label></td>
- <td ><input type="text" name="MenuURL" size="80" value="\viewengine.do" ></td>
- </tr>
- <tr>
- <td ><label>视图关系</label></td>
- <td >
- <select name="ViewAppName" class="formselect">
- <option selected><%=selectFlag%></option>
- <%
- if (views!= null){
- for(int i=0;i<views.length;i++) {
- %>
- <option><%=views[i][0]%></option>
- <%
- }
- }
- %>
- </select>
- </td>
- </tr>
- <tr>
- <td ><label>请求参数表达式</label></td>
- <td ><input type="text" name="Parameter" size="80" value="" ></td>
- </tr>
- <tr>
- <td ><label>图标</label></td>
- <td ><input type="text" name="Image" size="80" value="\images\tree\vwicn019.gif" ></td>
- </tr>
- <tr>
- <td ><label>位置</label></td>
- <td ><input type="text" name="Pos" size="2" ></td>
- </tr>
- <tr>
- <td ><label>角色</label></td>
- <td >
- <select name="Role" class="formselect">
- <%=roles%>
- </select></td>
- </tr>
- </table>
- <p>
- <input class="small" type="button" value="下一步骤" name="B1" onclick="submitForm()">
- </form>
- </body>
- </html>
|