📄 officemain.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="to.model.Login.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="to.model.Inform.*"%>
<%@ page import="to.model.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>欢迎使用教师办公管理系统</title>
<style type="text/css">
table{font-size:13px}
<!--
a:link { text-decoration: none;color: black}
a:active { text-decoration:blink;}
a:hover {text-decoration: underline;position: relative; top: 3px; left: 3px; color: red}
a:visited { text-decoration:none;color: black}
-->
</style>
</head>
<body topMargin="0" leftMargin="0">
<!--这是总的表格的表格-->
<table width="1002" height="568" border="0" cellspacing="0" cellpadding="0">
<!--这是上半部份表格开始-->
<tr valign="middle">
<td colspan="2" height="40">
<img src="image/top.gif" height="90" width="1002"/>
</td>
</tr>
<!--这是上半部份表格结束-->
<%
loginItem li=(loginItem)session.getAttribute("user");
if(li==null)
{
response.sendRedirect("OfficeLogin.jsp");
}
%>
<!--这是下半部份表格开始-->
<tr>
<td height="528" width="180" valign="top">
<!--这是下半部左框架表格开始-->
<table cellpadding="0" cellspacing="0" bgcolor="#4f7ec9" width="180" border="0">
<tr valign="top">
<td height="1" width="184" valign="top"><hr/></td>
</tr>
<tr>
<td height="25" width="184" align="center"><font color="red">系 统 设 置</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayCollege.jsp" target="child"/><font color="white">学院配置</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayDepartment.jsp" target="child"/><font color="white">部门配置</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayRole.jsp" target="child"/><font color="white">角色配置</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayRight.jsp" target="child"/><font color="white">权限配置</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayPeople.jsp" target="child"/><font color="white">人员配置</font></td>
</tr>
<tr>
<td height="1" width="184" align="center"><hr/></td>
</tr>
<tr>
<td height="25" width="184" align="center"><font color="Red">通 知 通 告</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="newInform.jsp" target="child"/><font color="white">通知发布</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="FindInform.jsp?id=<%=li.getPeopleID()%>" target="child"/><font color="white">通知浏览</font></td>
</tr>
<tr>
<td height="1" width="184" align="center"><hr/></td>
</tr>
<tr>
<td height="25" width="184" align="center"><font color="Red">领 导 信 箱</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="newEmail.jsp" target="child"/><font color="white">写 信</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayEmail.jsp" target="child"/><font color="white">收 件 箱</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayFaJianXiang.jsp" target="child"/><font color="white">发 件 箱</font></td>
</tr>
<tr>
<td height="1" width="184" align="center"><hr/></td>
</tr>
<tr>
<td height="25" width="184" align="center"><font color="Red">我 公 文 包</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayMessage.jsp" target="child"/><font color="white">通 讯 录</font></td>
</tr>
<tr>
<td height="1" width="184" align="center"><hr/></td>
</tr>
<tr>
<td height="25" width="184" align="center"><font color="Red">文 件 中 心</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="upload.jsp" target="child"/><font color="white">文件上传</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="displayFile.jsp" target="child"/><font color="white">文件下载</font></td>
</tr>
<tr>
<td height="25" width="184" align="center"><img src="image/arr.gif"/><a href="OfficeLogin.jsp"/><font color="white">重新登录</font></td>
</tr>
<tr>
<td height="25" width="184"> </td>
</tr>
<tr>
<td height="25" width="184"> </td>
</tr>
<tr>
<td height="25" width="184"> </td>
</tr>
</table>
<!--这是下半部左框架表格开始-->
</td>
<!--这是右框架的表格开始-->
<td height="528" width="822" valign="top" align="left">
<table border="0" cellpadding="0" cellspacing="0" width="822">
<tr bgcolor="#89cb10">
<td width="150" height="25"> <img src="image/icon.gif"/> 当前用户:<%=li.getPeopleName()%></td>
<%
java.text.SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd");
String date=format.format(new java.util.Date());
%>
<td width="431" align="center" height="25">
<script language="JavaScript">
//此方法获取当前的年月日
function Year_Month()
{
//获取当前日期类对象
var now = new Date();
//利用日期类对象分别分别获取年,月,日
date =(now.getYear()) + "年" + (now.getMonth() + 1 ) + "月" + now.getDate() + "日";
return(date);
}
//此方法获取当前日期是星期几
function Day_of_Today()
{
//获取当前日期类对象
var now = new Date();
//分别判断日期,以获得是星期几
if(now.getDay()==0) day = "星期日"
if(now.getDay()==1) day = "星期一"
if(now.getDay()==2) day = "星期二"
if(now.getDay()==3) day = "星期三"
if(now.getDay()==4) day = "星期四"
if(now.getDay()==5) day = "星期五"
if(now.getDay()==6) day = "星期六"
return(day);
}
//此方法获取当前的时间
function CurentTime()
{
//获取当前日期类对象
var now = new Date();
//利用日期类获取当前的小时
var hours=now.getHours();
//利用日期类获取当前的分钟
var minutes=now.getMinutes();
//利用日期类获取当前的秒
var seconds=now.getSeconds();
//定义一个变量,判断是上午还是下午
var noon="AM";
if(hours>12)
{
noon="PM";
//如果是下午13点,让其显示为1点
hours=hours-12;
}
//测试如果是零点就显示为12点
if(hours==0)
{
hours=12;
}
if(minutes<=9)
{
minutes="0"+minutes;
}
if(seconds<=9)
{
seconds="0"+seconds;
}
var clock=hours+":"+minutes+":"+seconds+" "+noon;
return(clock);
}
//设置刷新方法
function refreshCalendarClock()
{
document.all.calendarClock1.innerHTML = Year_Month();
document.all.calendarClock2.innerHTML = Day_of_Today();
document.all.calendarClock3.innerHTML = CurentTime();
}
//设置获取数值的格式,让它在表格中进行显示
document.write('<table><tr>');
document.write('<td><font id="calendarClock1"></font></td>');
document.write('<td> </td>')
document.write('<td><font id="calendarClock2"></font></td>');
document.write('<td> </td>')
document.write('<td><font id="calendarClock3"></font></td>');
document.write('</tr></table>');
//让获取日期时间的脚本每一秒刷新一次,达到时时刷新的目的
setInterval('refreshCalendarClock()',1000);
</script>
</td>
<td width="138" align="center" height="25">[<a href="FindPeopleAction.do?id=<%=li.getPeopleID()%>" target="child">个人信息</a>|<a href="EditPeopleAction.do?id=<%=li.getPeopleID()%>" target="child">修改</a>]</td>
</tr>
<tr>
<td colspan="3" height="1" width="822"><img src="image/1.png" width="822"/></td>
</tr>
<tr>
<td colspan="3" height="575" valign="top" align="left">
<iframe id="child" style="WIDTH: 822px; HEIGHT: 575px" name="child" marginWidth="0" hspace="0"
vspace="0" marginHeight="0" src="child.jsp" frameBorder="2" noResize scrolling="yes" offsetLeft="0"
offsetTop="0"></iframe>
</td>
</tr>
<tr>
<td height="25" bgcolor="#89cb10" colspan="3" align="center">版权所有:吉林大学远程教育学院计算机分院 0231班 刘志良</td>
</tr>
</table>
</td>
<!--这是右框架的表格结束-->
</tr>
<!--这是下半部份表格结束-->
</table>
</body>
</html>
<html>
<body/>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -