📄 login_ok.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!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">
<html>
<title>用户登陆成功</title>
<head>
<base href="<%=basePath%>">
<title>My JSP 'MyJsp.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<style type="text/css">
body {
}
a:link {
color: #FF0000;
text-decoration: none
} /* 未访问的链接 */
a:visited {
color: #00FF00;
text-decoration: none
} /* 已访问的链接 */
a:hover {
color: #FF00FF;
text-decoration: underline
} /* 鼠标在链接上 */
a:active {
color: #0000FF;
text-decoration: underline
} /* 激活链接 */
body.menu {
background: #383757;
margin: 0px;
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 8pt;
}
table.menu {
border: 0px;
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 8pt;
}
td.menu {
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 8pt;
}
img.menu {
vertical-align: bottom;
border: 0px;
}
a.menu {
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 8pt;
color: #215DC6;
text-decoration: none;
TEXT-DECORATION: none;
}
a:hover .menu {
font-size: 8pt;
color: #428EFF;
font-family: "Arial", "Helvetica", "sans-serif";
color: #ff00ff
}
.sec_menu {
border-left: 1px solid gray;
border-right: 1px solid gray;
border-bottom: 1px solid gray;
overflow: hidden;
background: #f8f8f8;
}
.menu_title {
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 8pt
}
.menu_title span {
position: relative;
top: 2px;
left: 8px;
color: #494949;
font-weight: bold;
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 8pt
}
.menu_title2 {
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 8pt
}
.menu_title2 span {
position: relative;
top: 2px;
left: 8px;
color: #428EFF;
font-weight: bold;
cursor: hand;
font-family: "Arial", "Helvetica", "sans-serif";
font-size: 8pt
}
</style>
<body background="images/4.jpg">
<table align=center cellpadding=0 cellspacing=0>
<tr>
<td valign=top>
<table cellpadding=0 cellspacing=0 width=250 align=center
class="menu">
<tr style="cursor: hand;">
<td height=25 class=menu_title
background=xpmenu/title_bg_hide.gif id=menuTitle1 class="menu">
<span>用户登录</span>
</td>
</tr>
<tr>
<td>
<div class=sec_menu id=menu1>
<table cellpadding=2 cellspacing=0 align=center width=250
style="position: relative; top: 10px;">
<tr>
<td align="center">
<img
src="${pageContext.request.contextPath}/xpmenu/icon_course.gif"
align="absmiddle" hspace="5" />
恭喜${requestScope.user.username},您登录成功!!
</td>
</tr>
<tr align="center">
<td colspan="2">
<img
src="${pageContext.request.contextPath}/xpmenu/mail_send_all.gif"
align="absmiddle" hspace="5" />
<a
href="${pageContext.request.contextPath}/findAll.do?usermethod=editPassword&id=${user.id}"
target="main">修改密码</a>
</td>
</tr>
<tr>
<td align="center">
<img
src="${pageContext.request.contextPath}/xpmenu/mail_send_all.gif"
align="absmiddle" hspace="5" />
<a
href="${pageContext.request.contextPath}/findAll.do?usermethod=edit&id=${user.id}"
target="main">修改资料</a>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<img
src="${pageContext.request.contextPath}/xpmenu/favorites.gif"
align="absmiddle" hspace="5" />
<a href="${pageContext.request.contextPath}" target="_top">退出登录</a>
</td>
</tr>
<tr>
<td height=20>
<!--spacer-->
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=250 align=center
class="menu">
<tr style="cursor: hand;">
<td height=25 class=menu_title
background=xpmenu/title_bg_hide.gif id=menuTitle2 class="menu">
<span>用户管理</span>
</td>
</tr>
<tr>
<td>
<div class=sec_menu id=menu2>
<table cellpadding=0 cellspacing=0 align=center width=250
style="position: relative; top: 10px;">
<tr>
<td align="center">
<img
src="${pageContext.request.contextPath}/xpmenu/project2.gif"
align="absmiddle" hspace="5" />
您的当前权限等级为${requestScope.user.popedom_id}级
</td>
</tr>
<tr>
<td align="center">
<img
src="${pageContext.request.contextPath}/xpmenu/news_catch_up.gif"
align="absmiddle" hspace="5" />
<a
href="${pageContext.request.contextPath}/findAll.do?usermethod=findAll"
target="main">查看列表</a>
</td>
</tr>
<c:if test="${requestScope.userPopedom.find==1}">
<tr>
<td align="center">
<img
src="${pageContext.request.contextPath}/xpmenu/news_catch_up.gif"
align="absmiddle" hspace="5" />
<a href="${pageContext.request.contextPath}/userlist.do"
target="main">分页列表</a>
</td>
</tr>
</c:if>
<c:if test="${requestScope.userPopedom.add==1}">
<tr>
<td align="center">
<img
src="${pageContext.request.contextPath}/xpmenu/news_catch_up.gif"
align="absmiddle" hspace="5" />
<a
href="${pageContext.request.contextPath}/userlist.do?add=true"
target="main">普通管理</a>
</td>
</tr>
</c:if>
<c:if test="${requestScope.userPopedom.delete==1}">
<tr>
<td align="center">
<img
src="${pageContext.request.contextPath}/xpmenu/news_catch_up.gif"
align="absmiddle" hspace="5" />
<a
href="${pageContext.request.contextPath}/userlist.do?add=true&delete=true"
target="main">高级管理</a>
</td>
</tr>
</c:if>
</tr>
</form>
</td>
</tr>
<tr>
<td height=20>
<!--spacer-->
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<!--Start XP Style Menu-->
<SCRIPT LANGUAGE="Javascript" DEFER="TRUE">
<!--
var menuinit=new Array(50),vers;//(don't change this)
for(i=0;i<51;i++)menuinit[i]=new Array(3);//(don't change this)
////////////////////////////////////////////////////////////////////////////////////////
//
vers="XP Style Menu SP2(V2002.12.10.1452 NEW_CORE_DEV_BETA build 69)";
//
//Improved by: swnet(swnet@263.net)
//Original by: Zhong Zhong
//
//Note: best work with MS IE5/6, also looks fine on Netscape/Mozilla but without
// visualized effect.
//
//*THIS CODE IS UNDER GUN GPL LICENCE*
////////////////////////////////////Setting Section////////////////////////////////////
//
var onemenu = 0; //open one menu at same time.1 is yes, 0 is no. default=1.
var speedmout = 100; //menu show speed(1~100;default=50) *the large the fast, but also come with more bump.
var speedmin = 100; //menu hide speed(1~100;default=50)
var developversion = true; //when false block all script error if any.
//setting of which menu should be showen. In this example you have 4 menu, which you can switch between "show" and "not show"
//if you want to add extra one, you should follow this order: "menuinit[n][1]=;" (in [a][b], b must be '1', a is the serial number of menu)
menuinit[1][1]="show";
menuinit[2][1]="show";
menuinit[3][1]="show";
menuinit[4][1]="show";
menuinit[5][1]="show";
menuinit[6][1]="show";
menuinit[7][1]="show";
menuinit[8][1]="show";
////////////////////////!!!DO NOT CHANGE BELOW THIS LINE!!!!/////////////////////////////
//
var da=new Date();
var browser=new BrowserDetectLite();
var fstrun=1;
var op="";
var whichContinue="";
var whichOpen="";
var opp=0;
var opd=0;
var opc=0;
var sc=1;sd=1;
var mnunum=0;
var cacheObj,cacheMaxh,cacheObj2;
//----------------------------------------------------------------------------------------
//--------向下显示内容--------
function menuShow(obj,maxh,obj2)
{
var da=new Date();
if(fstrun==1){
op="show";
mountmfunc(0,0,0);
obj2.background="xpmenu/title_bg_hide.gif";
obj.style.pixelHeight=2;
obj.style.display='block';
opc=6.18*(speedmout*0.01); //step length
opp=Math.round(opc); //rounded step length
opd=(maxh/opp)/100; //times
sc=1;sd=opd;
fstrun=0;
cacheObj=obj;cacheMaxh=maxh;cacheObj2=obj2;
}else{
if(op!="show") return false;
}
if(obj.style.pixelHeight<maxh-opp)
{
if(opd>1){//for slow speed
if(sd-sc<1){obj.filters.alpha.opacity+=1;sd+=opd;}
sc++;
}else{//for fast speed
obj.filters.alpha.opacity+=Math.ceil(1/opd);
}
obj.style.pixelHeight+=opp;
cacheObj=obj;cacheMaxh=maxh;cacheObj2=obj2;
setTimeout('menuShow(cacheObj,cacheMaxh,cacheObj2)','5');
}else{
obj.style.pixelHeight=maxh;
obj.filters.alpha.opacity=100;
fstrun=1;
op="";
sc=1;sd=1;
mountmfunc(1,1,1);
return true;
}
}
//----------------------------------------------------------------------------------------
//--------向上隐藏内容--------
function menuHide(obj,maxh,obj2)
{
da=new Date();
if(fstrun==1){
op="hide";
mountmfunc(0,0,0);
obj2.background="xpmenu/title_bg_show.gif";
opc=6.18*(speedmout*0.01); //step length
opp=Math.round(opc);
opd=((maxh-3)/opp)/100;
sc=1;sd=opd;
fstrun=0;
cacheObj=obj;cacheMaxh=maxh;cacheObj2=obj2;
}else{
if(op!="hide") return false;
}
if(obj.style.pixelHeight-opp>1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -