<%@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=" + "
"+Common.toGb("您尚未登录或已经过期!")+"
"+Common.toGb("重新登录")+"
"; //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("您没有成功登录!")+"
"+Common.toGb("重新登录")+""; //outstr1 = new String(ls_url1.getBytes("gb2312"),"iso8859-1"); outstr1 = Common.GbConvertIso(ls_url1); response.sendRedirect(outstr1); return; } %> 管理页面 <% 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(20); 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(20); %>
<% for(int i=0;i

<%=buf.fget("submenuname",i) %>

<% 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 <%} %>
<%} %>