<%@page import="com.zky.util.jdbc.HashFmlBufResultSetHandler"%> <%@page import="com.zky.util.PageQuery"%> <%@page import="java.sql.Connection"%> <%@ page import="com.zky.pub.*"%> <%@ page import="com.zky.manager.*"%> <%@ page import="java.util.*"%> <%@ page language="java" contentType="text/html;charset=utf-8"%> <% String ls_url1 = "",outstr1 = ""; Login login_obj = (Login)session.getAttribute("login"); //验证session是否过期 if(login_obj == null) { ls_url1 = "/error.jsp?errorinfo=" + "<table><tr><td><font size='3' color='red'>"+Common.toGb("您尚未登录或已经过期!")+"</font></td></tr><tr><td align='center'> <a href='/login.jsp' target='_parent'>"+Common.toGb("重新登录")+"</a></td></tr></table>"; //outstr1 = new String(ls_url1.getBytes("gb2312"),"iso8859-1"); outstr1 = Common.GbConvertIso(ls_url1); response.sendRedirect(outstr1); return; } //验证口令是否验证通过 if(login_obj.checkPasstag() == false) { ls_url1 = "/error.jsp?errorinfo=" + Common.toGb("您没有成功登录!")+"<br> <a href='/login.jsp' target='_parent'>"+Common.toGb("重新登录")+"</a>"; //outstr1 = new String(ls_url1.getBytes("gb2312"),"iso8859-1"); outstr1 = Common.GbConvertIso(ls_url1); response.sendRedirect(outstr1); return; } %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>管理页面</title> <script src="js/prototype.lite.js" type="text/javascript"></script> <script src="js/moo.fx.js" type="text/javascript"></script> <script src="js/moo.fx.pack.js" type="text/javascript"></script> <style> body { font:12px Arial, Helvetica, sans-serif; color: #000; background-color: #EEF2FB; margin: 0px; } #container { width: 182px; } H1 { font-size: 12px; margin: 0px; width: 182px; cursor: pointer; height: 30px; line-height: 20px; } H1 a { display: block; width: 182px; color: #000; height: 30px; text-decoration: none; moz-outline-style: none; background-image: url(images/menu_bgs.gif); background-repeat: no-repeat; line-height: 30px; text-align: center; margin: 0px; padding: 0px; } .content{ width: 182px; height: 16px; } .MM ul { list-style-type: none; margin: 0px; padding: 0px; display: block; } .MM li { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 26px; color: #333333; list-style-type: none; display: block; text-decoration: none; height: 26px; width: 182px; padding-left: 0px; } .MM { width: 182px; margin: 0px; padding: 0px; left: 0px; top: 0px; right: 0px; bottom: 0px; clip: rect(0px,0px,0px,0px); } .MM a:link { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 26px; color: #333333; background-image: url(images/menu_bg1.gif); background-repeat: no-repeat; height: 26px; width: 182px; display: block; text-align: center; margin: 0px; padding: 0px; overflow: hidden; text-decoration: none; } .MM a:visited { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 26px; color: #333333; background-image: url(images/menu_bg1.gif); background-repeat: no-repeat; display: block; text-align: center; margin: 0px; padding: 0px; height: 26px; width: 182px; text-decoration: none; } .MM a:active { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 26px; color: #333333; background-image: url(images/menu_bg1.gif); background-repeat: no-repeat; height: 26px; width: 182px; display: block; text-align: center; margin: 0px; padding: 0px; overflow: hidden; text-decoration: none; } .MM a:hover { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 26px; font-weight: bold; color: #006600; background-image: url(images/menu_bg2.gif); background-repeat: no-repeat; text-align: center; display: block; margin: 0px; padding: 0px; height: 26px; width: 182px; text-decoration: none; } </style> </head> <body> <% Connection conn = null; conn = DbConn.getConn(); //StringBuffer sql = new StringBuffer("select a.submenuname,count(distinct a.submenuname) from tab_menu a left join tab_menuitem b on a.submenuid=b.uplevel group BY a.submenuname "); StringBuffer sql=new StringBuffer("SELECT a.menuitemname from tab_menuitem a WHERE a.menuitemname='辅助业务管理系统'"); PageQuery pageQuery = new PageQuery(conn,sql.toString(),new HashFmlBufResultSetHandler(),request); HashFmlBuf buf=(HashFmlBuf)pageQuery.query(100); StringBuffer sql1=new StringBuffer("select b.jobname,a.menuitem from tab_jobmenu a LEFT JOIN tab_job b ON a.jobcode=b.jobcode LEFT JOIN tab_menuitem c ON a.menuitem=c.menuitem WHERE c.menuitem='6776'"); // StringBuffer sql2=new StringBuffer("SELECT a.menuitem,a.menuitemname,a.menuname,a.menuid,a.uplevel,a.menulevel from tab_menuitem a LEFT JOIN tab_jobmenu b ON a.menuitem=b.menuitem LEFT JOIN tab_job c ON b.jobcode=c.jobcode WHERE a.menulevel='1'AND a.menuitemname=' // buf.fchg("menuitemname", pos, value)+'"); PageQuery pageQuery2= new PageQuery(conn,sql.toString(),new HashFmlBufResultSetHandler(),request); HashFmlBuf buf2=(HashFmlBuf)pageQuery.query(100); %> <table width="100%" height="280" border="0" cellpadding="0" cellspacing="0" bgcolor="#EEF2FB"> <tr> <td width="182" valign="top"><div id="container"> <% for(int i=0;i<buf.getRowCount();i++){ %> <h1 class="type"><a href="javascript:void(0)"><%=buf.fget("submenuname",i) %></a></h1> <div class="content"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/menu_topline.gif" width="182" height="5" /></td> </tr> </table> <% String tempEmpid = buf.fget("submenuname",i); StringBuffer sql1 = new StringBuffer("select a.submenuname,b.menuname,c.web_workobject from tab_menu a left join tab_menuitem b on a.submenuid=b.uplevel LEFT JOIN tab_funcmodu c ON b.menuid=c.funcmoducode ") .append("where 1=1 and a.submenuname="+"'"+tempEmpid+"'"); PageQuery pageQuery1 = new PageQuery(conn,sql1.toString(),new HashFmlBufResultSetHandler(),request); HashFmlBuf buf1=(HashFmlBuf)pageQuery1.query(100); %> <% for(int j=0;j<buf1.getRowCount();j++){ %> <ul class="MM"> <li><a href="<%=buf1.fget("web_workobject", j) %>" target="mainFrame"><%=buf1.fget("menuname", j) %></a></li> </ul> <%} %> </div> <%} %> <script type="text/javascript"> var contents = document.getElementsByClassName('content'); var toggles = document.getElementsByClassName('type'); var myAccordion = new fx.Accordion( toggles, contents, {opacity: true, duration: 400} ); myAccordion.showThisHideOpen(contents[0]); </script> </td> </tr> </table> </body> </html>