top.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:5k
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.currency.*" %>
- <%@ page import="com.gforce.gfoa.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- int iUserID = m_session.GetInt("UserID");
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>顶部页面u2014u2014GForce OA 2.0</title>
- <link href="css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="/js/changestyle.js"></script>
- <style type="text/css">
- <!--
- TD {FONT-SIZE: 12px}
- .size12 {FONT-SIZE: 12px; LINE-HEIGHT: 17px}
- .size12h {FONT-SIZE: 12px; LINE-HEIGHT: 20px}
- .size14 {FONT-SIZE: 14px}
- .size14h {FONT-SIZE: 14px; LINE-HEIGHT: 18px}
- .size7 {
- background-image: url(images/top1.gif);
- background-repeat: no-repeat;
- background-position: right;
- }
- A:link {COLOR: #000000; TEXT-DECORATION: none}
- A:unknown {TEXT-DECORATION:}
- A:visited {COLOR: #000000; TEXT-DECORATION: none}
- A:active {TEXT-DECORATION: none}
- A:hover {COLOR: #ca0216; TEXT-DECORATION: underline}
- .tu {
- background-image: url(images/top2.jpg);
- background-repeat: no-repeat;
- background-position: left;
- }
- body {
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- background-color: #034E92;
- }
- -->
- </style>
- </head>
- <body leftmargin="0" topmargin="0" bgcolor="<%=m_session.GetString("TopBackColor")%>" onLoad="javascript: startclock();">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr background="images/zjm01.gif">
- <td background="images/zjm01.gif"><img src="images/logo.gif" width="366" height="43"></td>
- <td width="100" background="images/zjm01.gif"><table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td valign="top"><img src="images/zjm10.gif" name=a1 width="32" height="31"></td>
- <td><table border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="13"><a href="/LogOut.jsp" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('a1','','images/zjm10a.gif',1)"><img src="images/zjm11.gif" width="37" height="18" border="0"></a></td>
- </tr>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td bgcolor="#373737"><img src="images/point.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td bgcolor="#BABABA"><img src="images/point.gif" width="1" height="3"></td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellspacing="0">
- <tr align="center" valign="top" bgcolor="<%=m_session.GetString("TopBackColor")%>">
- <td colspan="2" align="center" valign="middle" height="25">
- <table width="95%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="top">
- <td width="13%" nowrap="nowrap">用户姓名:<%=UserManager.getPersonnelNameByUserID(iUserID)%></font> </td>
- <td width="15%" nowrap="nowrap">部门:<%=UserManager.getDepartmentNameByUserID(iUserID)%></font> </td>
- <td width="20%" nowrap="nowrap">职务:<%=UserManager.getPlaceNameByUserID(iUserID)%></font> </td>
- <td width="19%" nowrap="nowrap">角色:<%=UserManager.getRoleNameByUserID(iUserID)%></font> </td>
- <td width="33%" nowrap="nowrap">当前时间:<font id="clock"><%=StringNew.GetDateString(new Date(),"yyyy年MM月dd日 HH:mm:ss")%></font></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <script language="JavaScript">
- var timerID = null;
- var timerRunning = false;
- var timeaddsecond = 0;
- var localnow = new Date();
- var servernow = new Date(<%=StringNew.GetDateString(new Date(),"yyyy,MM-1,dd,HH,mm,ss,SSS")%>);
- var timediff = servernow.valueOf()-localnow.valueOf();
- function MakeArray(size) {
- this.length = size;
- for(var i = 1; i <= size; i++)
- {
- this[i] = "";
- }
- return this;
- }
- function stopclock (){
- if(timerRunning)
- clearTimeout(timerID);
- timerRunning = false
- }
- function showtime (){
- var now = new Date();
- now = new Date(now.valueOf() + timediff);
- var year = now.getYear();
- var month = now.getMonth() + 1;
- var date = now.getDate();
- var hours = now.getHours();
- var minutes = now.getMinutes();
- var seconds = now.getSeconds();
- var day = now.getDay();
- Day = new MakeArray(7);
- Day[0]="星期天";
- Day[1]="星期一";
- Day[2]="星期二";
- Day[3]="星期三";
- Day[4]="星期四";
- Day[5]="星期五";
- Day[6]="星期六";
- var timeValue = "";
- timeValue += year + "年";
- timeValue += ((month < 10) ? "0" : "") + month + "月";
- timeValue += date + "日 ";
- timeValue += (Day[day]) + " ";
- //timeValue += ((hours <= 12) ? hours : hours - 12);
- timeValue += hours;
- timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
- timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
- document.all.clock.innerText = timeValue;
- timerID = setTimeout("showtime()",1000);
- timerRunning = true
- }
- function startclock () {
- stopclock();
- showtime()
- }
- </script>
- </body>
- </html>