<%@page import="javax.swing.text.html.HTML"%>
|
<%@ page language="java" import="java.sql.*" contentType="text/html; charset=UTF-8"
|
pageEncoding="UTF-8"%>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<html>
|
<head>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<title>设置权限</title>
|
|
<link rel="shortcut icon" href="${ctx}/img/3.ico" />
|
</head>
|
<style>
|
* {
|
margin: 0px;
|
padding: 0px;
|
}
|
|
html{
|
width:100%;
|
height:100%;
|
background-color:#D5EAFF;
|
}
|
|
body{
|
width:100%;
|
height:100%;
|
}
|
|
#zong{
|
display: flex;
|
flex-direction:row;
|
/* margin-top:20px; */
|
height:100%;
|
width:100%;
|
|
}
|
#zuo{
|
width:15%;
|
height:100%;
|
}
|
#you{
|
width:85%;
|
height:100%;
|
}
|
</style>
|
<%@include file="../mysqlconnect.jsp"%>
|
<body style='background-color:#D5EAFF'>
|
<%
|
String id1=request.getParameter("id");
|
|
String anquanma=request.getParameter("anquanma");
|
System.out.println(id1);
|
String cn="cn";
|
int mid=0;
|
Class.forName(driverClass);{
|
Connection con=DriverManager.getConnection( urlglass,user,password);
|
|
//通过connection数据库链接对象 创建一个statement对象数据库操作对象
|
Statement stmts=con.createStatement();
|
//执行sql语句
|
String anquan="select * from anquanbiao where anquanma = '"+request.getParameter("anquanma")+"' ";
|
ResultSet rss = stmts.executeQuery(anquan);
|
int coun=0;
|
while(rss.next())
|
{
|
coun++;
|
}
|
if(coun==0){
|
|
out.print("<script type='text/javascript'>alert('请先登录后操作');window.parent.location.href='../index.jsp'; </script>");
|
}
|
con.close();
|
}
|
|
|
|
%>
|
|
|
|
|
<%
|
out.println("<div id='zong'>");
|
out.println("<div id='zuo'><iframe id='quanxuan' src='shezhi1.jsp?adminid="+id1+"&yuyan="+cn+"&anquanma="+anquanma+"' frameborder='0' height='100%' ></iframe></div>");
|
out.println("<div id='you'><iframe id='gongneng' frameborder='0' height='100%' width='95%' ></iframe></div>");
|
out.println("</div>");
|
%>
|
</body>
|
</html>
|