?? outlookleft.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 + -