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

📄 top.jsp

📁 基于J2EE的办公自动化系统。实现流程定义流程办理等。运用了hibernate+struts+spring框架综合运用的系统。
💻 JSP
字号:

<%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.Date"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link href="${pageContext.request.contextPath}/Css_file/oa.css" rel="stylesheet" type="text/css" />
<%SimpleDateFormat simple = new SimpleDateFormat("yyyy-MM-dd");
			String datetime = simple.format(new Date());

			%>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
}
-->
</style>

<script>
   var oPopup = window.createPopup();
	var popTop=50;
	var checkvalue=0;
	function popmsg(){
		var affair="${hint.affairname}";
		var meeting="${hint.meetingname}";
		var email="${hint.emailname}";
		var anum = "${hint.affairnumber}";
		var mnum = "${hint.meetingnumber}";
		var emnum = "${hint.emailnumber}";
		var winstr="<table style=\"border:0 solid  #cccccc\"  width=\"241\" height=\datetimeorder=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor='#E1F4EE'>";
			winstr+="<tr><td height=\"100%\">小贴士提醒您:</td></tr><tr><td><table width=\"100%\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
			winstr+="<tr><td align=\"center\" style=\"font-size:14px; color: #268edf; face: 宋体\">"+affair+"&nbsp;&nbsp;<a  id='affair' href='#' >"+anum+"</a></td></tr>";
			winstr+="<tr><td align=\"center\" style=\"font-size:14px; color: #268edf; face: 宋体\">"+meeting+"&nbsp;&nbsp;<a id='meeting' href='#' >"+mnum+"</a></td></tr>";
			winstr+="<tr><td align=\"center\" style=\"font-size:14px; color: #268edf; face: 宋体\">"+email+"&nbsp;&nbsp;<a id='email' href='#' >"+emnum+"</a></td></tr>";
			winstr+="</table></td></tr>";
			winstr+="<tr><td align=\"center\" style=\"font-size:16px; color: #268edf; face: 宋体\"><a id='sethint' href='#' >设 置</a></td></tr>"
			winstr+="</table>";
		oPopup.document.body.innerHTML = winstr;
		popshow();
		popTop=50;
	
		if(oPopup.document.getElementById("affair") != null){
			oPopup.document.getElementById("affair").onclick=function(){
				window.top.mainFrame.location="${pageContext.request.contextPath}/${hint.affairpath}";
			}
		}
	
		if(oPopup.document.getElementById("meeting") != null){
			oPopup.document.getElementById("meeting").onclick=function(){
				window.top.mainFrame.location="${pageContext.request.contextPath}/${hint.meetingpath}";
			}
		}
	
		if(oPopup.document.getElementById("email") != null){
			oPopup.document.getElementById("email").onclick=function(){
				window.top.mainFrame.location="${pageContext.request.contextPath}/${hint.emailpath}";
			}
		}
		
		if(oPopup.document.getElementById("sethint") != null){
			oPopup.document.getElementById("sethint").onclick=function(){
				window.top.mainFrame.location="${pageContext.request.contextPath}/hint.do?method=editshow";
			}
		}
	}
	function popshow(){
		window.status=popTop;
		if(popTop>1720){
			clearTimeout(mytime);
			oPopup.hide();
			popTop=50;
			return;
		}else if(popTop>1520&&popTop<1720){
		
			oPopup.show(screen.width-260,screen.height+30,241,1720-popTop-20);
		}else if(popTop>1500&&popTop<1720){
		
			oPopup.show(screen.width-260,screen.height+30+(popTop-1720),241,152);
		}else if(popTop<180){
	
			oPopup.show(screen.width-260,screen.height+30,241,popTop-20);
		}else if(popTop<220){
	
			oPopup.show(screen.width-260,screen.height+30-popTop,241,152);
		}
		popTop+=10;
		var mytime=setTimeout("popshow();",20);
	}
	if(checkvalue==0){
		window.setTimeout("popmsg();",500);
		checkvalue=1;	
	}

	 window.setInterval("renovate();",${hint.interval});

	function renovate(){
		
		location.href ="${pageContext.request.contextPath}/login.do?method=settop";
	}
	
  </script>
<table width="100%" class="myTable" bgcolor="#B3E7F9" cellpadding="0" cellspacing="0">
	<tr>
		<td height="92">
			<img src="${pageContext.request.contextPath}/Img_file/top.gif" width="1024" height="92" /></td>
	</tr>
	<tr>
		<td height="28" background="${pageContext.request.contextPath}/Img_file/back2.jpg">
			&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/login.do?method=main" target="mainFrame">首页</a>
			&nbsp;&nbsp;<a href="${pageContext.request.contextPath}/login.do?method=close" >退出</a>
			 &nbsp;&nbsp;[${sessionScope.user.uname}],欢迎您登录!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<%=datetime%>
	  </td>
	</tr>
</table>

⌨️ 快捷键说明

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