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

📄 outlookleft.jsp

📁 医药管理
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>医药公司管理系统菜单</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">
		<style type="text/css">
.titleStyle {
	background-color: #0E6AAF;
	color: #ffffff;
	border-top: 1px solid #FFFFFF;
	font-size: 9pt;
	cursor: hand;
}

.contentStyle {
	background-color: #ffffff;
	color: #0E6AAF;
	font-size: 9pt;
}

a {
	color: blue;
}

body {
	font-size: 9pt;
}
</style>
	</head>

	<body>

		<script language="JavaScript"> 
<!-- 
var layerTop=0; //菜单顶边距 
var layerLeft=5; //菜单左边距 
var layerWidth=140; //菜单总宽 
var titleHeight=42; //标题栏高度 
var contentHeight=300; //内容区高度 
var stepNo=10; //移动步数,数值越大移动越慢 

var itemNo=0;runtimes=0; 
document.write('<span id=itemsLayer style="position:absolute;overflow:hidden;border:1px solid #008800;left:'+layerLeft+';top:'+layerTop+';width:'+layerWidth+';">'); 

function addItem(itemTitle,itemContent){ 
itemHTML='<div id=item'+itemNo+' itemIndex='+itemNo+' style="position:relative;left:0;top:'+(-contentHeight*itemNo)+';width:'+layerWidth+';"><table width=100% cellspacing="0" cellpadding="0">'+ 
'<tr><td height='+titleHeight+' onclick=changeItem('+itemNo+') class="titleStyle" align=center>'+itemTitle+'</td></tr>'+ 
'<tr><td height='+contentHeight+' class="contentStyle">'+itemContent+'</td></tr></table></div>'; 
document.write(itemHTML); 
itemNo++; 
} 
//添加菜单标题和内容,可任意多项,注意格式: 
addItem('欢迎','<BR>  感谢使用<br>  医药公司管理系统!'); 
addItem('管理员管理','<center><a href="modpass.jsp" target="mainFrame">修改密码</a> <BR><BR><a href="user_add.jsp" target="mainFrame">添加用户</a> <BR><BR><a href="<%=request.getContextPath() %>/login.do?method=findAll" target="mainFrame">用户管理</a><BR><BR></center>'); 
addItem('类别管理','<center><a href="addclass.jsp" target="mainFrame">添加类别</a> <BR><BR><a href="<%=request.getContextPath() %>/class.do?method=findAll" target="mainFrame">类别管理</a> <BR><BR></center>'); 
addItem('处方管理','<center><a href="recipe.jsp" target="mainFrame">添加处方</a> <BR><BR><a href="<%=request.getContextPath()%>/recipe.do?method=findAll" target="mainFrame">处方管理</a> <BR><BR></center>'); 
addItem('药品管理','<center><a href="<%=request.getContextPath()%>/class.do?method=iniDrugAdd" target="mainFrame">添加药品</a> <BR><BR><a href="<%=request.getContextPath()%>/drug.do?method=findAll" target="mainFrame">药品管理</a> <BR><BR></center>'); 
addItem('药品查询','<center><a href="<%=request.getContextPath() %>/drug.do?method=findByForcastNumber" target="mainFrame">库存预警</a><br><br><a href="<%=request.getContextPath() %>/drug.do?method=findByDate" target="mainFrame">过期药品预警</a><br><br></center>'); 
addItem('使用帮助','<center><a href="sys_help.html" target="mainFrame">查看帮助</a></center>'); 

document.write('</span>') 
document.all.itemsLayer.style.height=itemNo*titleHeight+contentHeight; 

toItemIndex=itemNo-1;onItemIndex=itemNo-1; 

function changeItem(clickItemIndex){ 
toItemIndex=clickItemIndex; 
if(toItemIndex-onItemIndex>0) moveUp(); else moveDown(); 
runtimes++; 
if(runtimes>=stepNo){ 
onItemIndex=toItemIndex; 
runtimes=0;} 
else 
setTimeout("changeItem(toItemIndex)",10); 
} 

function moveUp(){ 
for(i=onItemIndex+1;i<=toItemIndex;i++) 
eval('document.all.item'+i+'.style.top=parseInt(document.all.item'+i+'.style.top)-contentHeight/stepNo;'); 
} 

function moveDown(){ 
for(i=onItemIndex;i>toItemIndex;i--) 
eval('document.all.item'+i+'.style.top=parseInt(document.all.item'+i+'.style.top)+contentHeight/stepNo;'); 
} 
changeItem(0); 
//--> 
</script>
</body>
</html>

⌨️ 快捷键说明

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