| | |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| | | <title>北玻</title> |
| | | <script src="../js/jquery-3.4.1.js"></script> |
| | | <script src="../js/jquery-3.4.1.min.js"></script> |
| | | <link rel="stylesheet" href="../css/quanxiang.css"> |
| | | <link rel="shortcut icon" href="../img/3.ico" /> |
| | | <script> |
| | |
| | | |
| | | |
| | | <%@include file="mysqlconnect.jsp"%> |
| | | <body style='background-color:#D5EAFF'> |
| | | <body style='background-color:#D5EAFF;overflow-y:hidden'> |
| | | <!--主页面左侧菜单栏实现--> |
| | | |
| | | <div class="menu" > |
| | |
| | | Connection con=DriverManager.getConnection( urlglass,user,password); |
| | | |
| | | CallableStatement cs = con.prepareCall("{call mokuai(?,?,?)}"); |
| | | id="A001"; |
| | | id=request.getParameter("adminid"); |
| | | cn="cn"; |
| | | cs.setString(1, id); |
| | | cs.setString(2, cn); |
| | |
| | | while(rs.next()) |
| | | { |
| | | |
| | | |
| | | mid=rs.getInt(1); |
| | | String mokuainame=rs.getString(2); |
| | | out.println("<div class='menu_title'>"+mokuainame+"<span class='indicator' id='indicator'>▼</span></div><ul class='test'>"); |
| | |
| | | String caidanname=rss.getString(1); |
| | | String yemian=rss.getString(2); |
| | | //out.println("<li><a onclick='tiaoz('"+yemian+"')' >"+caidanname+"</a></li>"); |
| | | out.println("<li onclick="+"tiaoz('"+yemian+"')"+" >"+caidanname+"</li>"); |
| | | out.println("<li onclick="+"tiaoz('"+yemian+"',"+mid+")"+" >"+caidanname+"</li>"); |
| | | out.println("<li class='item_divider'></li>"); |
| | | } |
| | | out.println("</ul>"); |
| | |
| | | |
| | | </div> |
| | | <script> |
| | | |
| | | function tiaoz(n){ |
| | | n=n+'&'+window.parent.location.search.substr(1); |
| | | |
| | | window.open(n);} |
| | | window.onload=function(){ |
| | | if(localStorage.getItem("newPage")!=null){ |
| | | let url=localStorage.getItem("newPage"); |
| | | url=url+'&'+window.parent.location.search.substr(1); |
| | | window.parent.document.getElementById("main").src = url; |
| | | } |
| | | |
| | | } |
| | | function tiaoz(n,mid){ |
| | | if(mid!=90){ |
| | | localStorage.setItem("newPage",n); |
| | | } |
| | | |
| | | n=n+'&'+window.parent.location.search.substr(1); |
| | | |
| | | |
| | | if (mid==90) { |
| | | window.open(n, '_blank'); // 在新窗口中打开指定 URL |
| | | }else{ |
| | | window.parent.document.getElementById("main").src = n; |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |