📄 changeroot.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="con" scope="page" class="numb1.com.db"/>
<jsp:useBean id="ht" scope="page" class="numb1.com.Dohtml"/>
<%
String root=(String)session.getAttribute("root");root=ht.donull(root);
String user_id=request.getParameter("id");user_id=ht.donull(user_id);
if(root.compareTo("")==0){root="0";}
int step=Integer.parseInt(root);
if(step<4 || user_id.compareTo("")==0){
out.print("<meta http-equiv=\"refresh\" content=\"2;URL=../index.jsp\"><center><font color=#FF0000>对不起,本页面您无权进入</font></center>");
}else{
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>改变权限</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function checkselect(theform){
if (theform.mast.value=="-")
{
alert("请选择权限值");
theform.mase.focus();
return false;
}
}
-->
</script>
</head>
<body>
<form name="form1" method="post" action="actadminroot.php" onSubmit="return checkselect(this)"><br>
<table width="266" border="0" align="center" cellspacing="1" bgcolor="#7188e0">
<tr bgcolor="#f8f8f8">
<td colspan="2"><table width="100%" border="0" cellspacing="1">
<tr>
<th bgcolor="#7188e0"><span class="style1">改 变 权 限 值</span></th>
</tr>
</table></td>
</tr>
<tr bgcolor="#f8f8f8">
<td colspan="2"> </td>
</tr>
<tr bgcolor="#f8f8f8">
<td width="108"><div align="right">版面名称:</div></td>
<td width="151"><select name="root" id="root">
<option value="-" selected>----</option>
<option value="1">1</option>
<option value="3">3</option>
<% if(step ==5 || step==6){%>
<option value="4">4</option>
<% } if(step==6){ %>
<option value="5">5</option>
<option value="6">6</option>
<% }%>
</select>
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td colspan="2"> </td>
</tr>
<tr bgcolor="#f8f8f8">
<th colspan="2"><input name="imageField" type="image" src="../img/ok1.gif" onMouseOut="this.src='../img/ok1.gif'" onMouseOver="this.src='../img/ok2.gif'" width="60" height="22" border="0">
<input name="id" type="hidden" id="id" value="<%=user_id%>">
<img src="../img/close1.gif" onMouseOut="this.src='../img/close1.gif'" onMouseOver="this.src='../img/close2.gif'" width="60" height="22" style="cursor:hand" onClick="window.close();"></th>
</tr>
</table>
</form>
</body>
</html>
<%
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -