严智鑫
2025-03-14 c41e1c8b82b8f4c7b149e0576c9a37bc5b2dbb85
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<%@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>