⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.jsp

📁 公务员管理系统
💻 JSP
字号:
<%@page contentType="text/html;charset=gb2312"%>
<jsp:useBean id="jcypurview" class="com.vstsoft.jcypurview" scope = "session" />
<%@ page import = "com.vstsoft.std.*" %>
<%  vststd tra = new vststd();

if (jcypurview.checkLogin() == false)
   {
%>   
	<Script Language=javascript>
		alert("用户已断线或未正常登录,请重新登录!")
		window.open("index.htm","_top")
	</Script>
<%  
    return;}
%>
<%
String usercode = jcypurview.getUsercode();     //取当前用户编号
String username = jcypurview.getUserName(); //取当前用户名称
String userszdw = jcypurview.getUserSzdw(); //取当前用户所在单位
String usergroup = jcypurview.getUserGroup(); //取当前用户角色

%>

<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link rel="stylesheet" href="style.css" type="text/css">
<BODY text=#003366 bottomMargin=0 vLink=#000000 aLink=#000000 link=#000000 
bgColor=#ffffff leftMargin=0 topMargin=0 rightMargin=0 MARGINWIDTH="0" 
MARGINHEIGHT="0" background="images/login2-6.gif">
<style type=text/css>
.sec_menu {
	BORDER-RIGHT: white 0px solid; BACKGROUND: #FFFFFF; OVERFLOW: hidden; BORDER-LEFT: white 0px solid; BORDER-BOTTOM: white 0px solid
}
</style>
<script language=javascript>

function menuShow(obj,maxh,obj2)
{
  if(obj.style.pixelHeight<maxh)
  {
    obj.style.pixelHeight+=maxh/20;
    obj.filters.alpha.opacity+=5;
    obj2.background="images/login2-4.gif";
    if(obj.style.pixelHeight==maxh/10)
      obj.style.display='block';
	myObj=obj;
	myMaxh=maxh;
	myObj2=obj2;
	setTimeout('menuShow(myObj,myMaxh,myObj2)','1');
  }
}
function menuHide(obj,maxh,obj2)
{
  if(obj.style.pixelHeight>0)
  {
    if(obj.style.pixelHeight==maxh/20)
      obj.style.display='none';
    obj.style.pixelHeight-=maxh/20;
    obj.filters.alpha.opacity-=5;
    obj2.background="images/login2-4.gif";
    myObj=obj;
    myMaxh=maxh
    myObj2=obj2;
    setTimeout('menuHide(myObj,myMaxh,myObj2)','1');
  }
  else
    if(whichContinue)
      whichContinue.click();
}
function menuChange(obj,maxh,obj2)
{
  if(obj.style.pixelHeight)
  {
    menuHide(obj,maxh,obj2);
    whichOpen='';
    whichcontinue='';
  }
  else
    if(whichOpen)
    {
      whichContinue=obj2;
      whichOpen.click();
    }
    else
    {
      menuShow(obj,maxh,obj2);
      whichOpen=obj2;
      whichContinue='';
    }
}
</script>
<script language=javascript>
var whichOpen='';
var whichContinue='';
var oldObj = null;
function linkShow(obj)
{
	if(oldObj != null)	oldObj.src='images/menu_back.gif';
	obj.src = "images/xjxpj126.gif";
	oldObj = obj;
}
</script>
<script language="javascript">
<!--
function showHide()
{
	
	if (parent.firstSet.rows != "0,*") //没有最大化
	{
		parent.parent.firstSet.rows="0,*";
			
		//隐藏userInfo, menu帧
//		parent.parent.secondSet.cols="0,*";
	}
	else
	{
		parent.parent.firstSet.rows="134,*";
	}

}
//-->
</script>
<table bordercolor=#111111 height=300 cellspacing=0 cellpadding=0 width="180" border=0 align="center">
  <tbody> 
  <tr> 
    <td width="5">&nbsp;</td>
    <td valign=top align=middle> <br>
      <table width="100" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td width="142" height="87" background="images/login2-2.gif"> 
            <table width="98%" border="0" cellspacing="0" cellpadding="0" height="87" class="unnamed1">
              <tr> 
                <td colspan="2">
                <table width="24" border="0" cellspacing="0" cellpadding="0" align="right">
				  	<tr>
						<td style="align:left; width:14; height:14; background-image:url(./images/max0.gif); background-repeat:no-repeat; cursor:hand" onclick="showHide();">
						</td>
                    </tr>
				  </table>
                </td>
              </tr>
              <tr> 
                  <td width="42%" align="right"> 
                    <div align="left">&nbsp;&nbsp;用户ID:</div></td>
                <td width="58%"><font color="#003399"><%=usercode%></font></td>
              </tr>
              <tr> 
                  <td width="42%" align="right"> 
                    <div align="left">&nbsp;&nbsp;用户名:</div></td>
                <td width="58%"><font color="#003399"><%=username%></font></td>
              </tr>
                <tr> 
                  <td width="42%" align="right"> 
                    <div align="left">&nbsp;&nbsp;单&nbsp;&nbsp;位:</div></td>
                <td width="58%"><font color="#000099"><%=userszdw%></font></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td><a href="logout.jsp"><img src="images/login2-3.gif" width="142" height="24" border="0"></a></td>
        </tr>
      </table>
      <br>


<% 
int is = 0;
String smessage = "";
String sx = "";
String surl = "";
String siid = "";
int ii = 20;
String snr = "";
String shead = "";
String Sqxtab = "";
String sjw = "";
String scount = "1";

sun.jdbc.rowset.CachedRowSet sinf = tra.getResultBySelect("select id,message,url,iid,lever,sx from qx_tree_inf where lever = 0 order by sx");
while(sinf.next()){
    sun.jdbc.rowset.CachedRowSet xinf = tra.getResultBySelect("select id,message,url,iid,lever,sx from qx_tree_inf where lever = " + sinf.getString(1) + " order by sx");
	while(xinf.next()){
		  if (jcypurview.purviewVerdict(xinf.getString(4)) == true)
		  {
			smessage = xinf.getString(2);
			surl = xinf.getString(3);				
			  snr += "<tr> <td height='20'><a href='"+surl+"' target='mainFrame' onClick='linkShow(i"+scount+")'><font color='#666699'>"+smessage+"</font></a></td> <td align='center'><img id=i"+scount+" src='images/menu_back.gif' width='20' height='14'></td></tr>";
			  is = 1;
			  ii += 20;
			  scount += 1;
		  } 
	}
    if (is == 1)
	{
		smessage = sinf.getString(2);
		sx = sinf.getString(6);

      shead = "<table cellspacing=0 cellpadding=0 width=165 align=center><tbody> <tr> <td id=menuTitle" + sx + " onClick=menuChange(menu"+sx+","+ ii +",menuTitle"+sx+"); bgcolor='#66CCFF' style='cursor:hand' height=25 background='images/login2-4.gif'>  <div align='center'><b><font color='#FFFFFF'>"+smessage+"</font></b></div> </td>        </tr> <tr> <td> <div class=sec_menu id=menu"+sx+" style='DISPLAY: none; FILTER: alpha(Opacity=0); WIDTH: 160px; HEIGHT: 0px'> <table style='POSITION: relative; TOP: 10px' cellspacing=0 cellpadding=0 width=150 align=center><tbody> ";

	  sjw = "<tr> <td height=10 align='center'>===============</td></tr></tbody></table></div></td></tr></tbody> </table>";
	 }
	is = 0;
	Sqxtab = shead + snr + sjw;
	out.print(Sqxtab);
	shead = "";
	snr = "";
	sjw = "";
    ii = 80;
}
%>           

</td></tr></tbody></table></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -