| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <%@ include file="/include/head.jsp"%>
- <%@ page contentType="text/html;charset=GBK"%>
- <%
- String roles = (String)request.getAttribute("roles");
- String selectFlag="选择";
- %>
- <html>
- <head>
- <title>频道编辑</title>
- <SCRIPT LANGUAGE="JavaScript">
- function submitForm(){
- //var re=window.confirm("您要将提交当前的页面吗?");
- //if (re==false) { return("");}
- if (theForm.MenuID.value=="") {window.alert("菜单ID不能为空");return("");}
- if (theForm.MenuName.value=="") {window.alert("菜单名不能为空");return("");}
- if (theForm.MenuURL.value=="") {window.alert("菜单URL不能为空");return("");}
- if (theForm.Image.value=="") {window.alert("图象不能为空");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="SubmitPinDao.do?new=0">
- <%@ include file="/include/top.jsp"%>
- <table border="0" cellspacing="1" width="100%">
- <tr>
- <td class="caption" >频道ID</td>
- <td class="detail" ><input type="text" name="MenuID" size="80" ></td>
- </tr>
- <tr>
- <td class="caption" >频道名</td>
- <td class="detail" ><input type="text" name="MenuName" value="" size="80" ></td>
- </tr>
- <tr>
- <td class="caption" >URL</td>
- <td class="detail" ><input type="text" name="MenuURL" size="80" value="/menu.do"></td>
- </tr>
- <tr>
- <td class="caption" > </td>
- <td class="detail" >"/menu.do"表示qq菜单,"/pindao.do?mode=0"表示一个频道, "/pindao.do?mode=1"表示树型菜单</td>
- </tr>
- <tr>
- <td class="caption" >图象</td>
- <td class="detail" ><input type="text" name="Image" size="80" ></td>
- </tr>
- <tr>
- <td class="caption" >位置</td>
- <td class="detail" ><input type="text" name="Pos" size="20" ></td>
- </tr>
- <tr>
- <td class="caption" >角色</td>
- <td class="detail" ><select name="Role" >
- <%=roles%>
- </select></td>
- </tr>
- </table>
- <p><input class="small" type="button" value="下一步骤" name="B1" onclick="submitForm()">
- <input class="small" type="button" value="返回" name="B2" onclick="history.back()"></p>
- </form>
- </body>
- </html>
|