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

📄 index.jsp

📁 辅助办公系统,具有发布公告、站内邮箱、日程安排、日志查看等功能
💻 JSP
字号:
<%@page contentType="text/html;charset=GB2312"
	import="com.x3408.notice.NoticeInfo,com.x3408.notice.NoticeADO,
	com.x3408.download.FileInfo,com.x3408.download.DownLoadADO,
	com.x3408.employees.UserInfo,com.x3408.employees.UserADO,
	com.x3408.mail.MailADO,java.util.Vector,com.x3408.office.Constants"%>
<html>
	<head>
		<title>X3408辅助办公系统</title>
	</head>
	<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" >
		<jsp:include page="<%=Constants.S_INDEXHEADER_JSP%>" />
<%
	String employeeID=(String)session.getAttribute("employeeID");
	UserInfo userInfo = UserADO.userQuery(employeeID);
	FileInfo fileInfo=null;
	Vector fileList=null;
	NoticeInfo noticeInfo=null;
	Vector noticeList=null;
	fileList=DownLoadADO.allFileQuery();
	noticeList=NoticeADO.allNoticeQuery();
%>
<script language="javascript">
<!--
	function ok(select){
	    if(select.options[select.selectedIndex].value!='#') {
	        window.open(select.options[select.selectedIndex].value,'_blank');
	        }
	}
//-->
</script>
<table  width="778" border="0" align="center" cellpadding="0"
	cellspacing="0" class="tb1">
	<tr>
		<td width="180" height="200" valign="top" class="blb">
			<table width="100%" border="0" cellspacing="1" cellpadding="0" >
				<tr>
					<td height="20" align="center" class="blm">
						用户信息
					</td>
				</tr>
				<tr>
					<td align="center" valign="top">
						<Marquee direction=up onmouseover=this.stop()
							onmouseout=this.start() scrollamount=1 scrollDelay=4 width=180
							Height=60>
							<table border=0>
								<tr>
									<td>
										<%=userInfo.getName() %>
										欢迎你来到X3408工作室
									</td>
								</tr>
							</table>
						</Marquee>
				<tr>
					<td align="center" valign="middle">
						<a href=<%=Constants.C_LOGIN_JAVA %>?action=exit>[点击这里退出]</a>
					</td>
				</tr>
			</table>
			<%if(userInfo.getAdmin()){%>
			<table width="100%" border="0" cellspacing="1" cellpadding="0">
				<tr class="blm">
					<td width="100%" height="20" align="center" valign="middle">
						管理功能
					</td>
				</tr>
				<tr>
					<td height="23" align="center" valign="middle">
						<A href=/OfficeSystem/Passed/Admin/FTPManage/UpLoad.jsp>上 传 文 件</A>
					</td>
				</tr>
				<tr>
					<td height="20" align="center" valign="middle">
						<A href="<%=Constants.C_NOTICEADD_JSP %>">添 加 公 告</A>
					</td>
				</tr>
			</table>
			<%}else{%>
			<table width="100%" border="0" cellspacing="1" cellpadding="0">
				<tr class="blm">
					<td width="100%" height="20" align="center" valign="middle">
						用户功能
					</td>
				</tr>
				<tr>
					<td height="23" align="center" valign="middle">
						<A href="<%=Constants.C_MAIL_JSP%>">新 邮 件(<%=MailADO.newMailCount(employeeID)%>)</A>
					</td>
				</tr>
				<tr>
					<td height="20" align="center" valign="middle">
						<A href="<%=Constants.C_NOTICE_JAVA%>?action=allNoticeQuery">新 公 告(<%=NoticeADO.newNoticeCount()%>)</A>
					</td>
				</tr>
				<tr>
					<td height="20" align="center" valign="middle">
						<A href="<%=Constants.C_DOWNLOAD_JAVA%>?action=allFileQuery">新 下 载(<%=DownLoadADO.newFileCount()%>)</A>
					</td>
				</tr>
				<tr>
					<td height="20" align="center" valign="middle">
						<A href=/OfficeSystem/Passed/User/Help/Help.jsp>使 用&nbsp;帮 助</A>
					</td>
				</tr>
			</table>
			<%} %>
			<table  width="100%" border="0" cellspacing="1"
				cellpadding="0" bgcolor="#ffffff">
				<FORM name=form1 action="" method=post>
				<TR>
					<TD height=5 bgcolor="#ffffff"></TD>
				</TR>
				<TR>
					<TD align=middle height=20 bgcolor="#ffffff">
						<SELECT class=selectColor onchange=ok(menu1) name=menu1>
							<OPTION selected>
								------校内链接------
							</OPTION>
							<OPTION value=http://www.jxnu.edu.cn>
								&nbsp;※&nbsp;江西师范大学
							</OPTION>
							<OPTION value=http://jwc.jxnu.edu.cn />
								&nbsp;※&nbsp;江西师范大学教务处
							</OPTION>
							<OPTION value=http://www.jxnu.edu.cn/xgw/souye.asp>
								&nbsp;※&nbsp;江西师范大学学工处
							</OPTION>
							<OPTION value=http://210.35.164.11/index.asp>
								&nbsp;※&nbsp;江西师范大学图书馆
							</OPTION>
						</SELECT>
					</TD>
				</TR>
				<TR>
					<TD height=10 bgcolor="#ffffff"></TD>
				</TR>
				<TR>
					<TD align=middle height=20 bgcolor="#ffffff">
						<SELECT class=selectColor onchange=ok(menu2) name=menu2>
							<OPTION selected>
								------校外链接------
							</OPTION>
							<OPTION value=http://www.jxgj.com>
								&nbsp;※&nbsp;江西高教网
							</OPTION>
							<OPTION value=http://www.jict.org>
								&nbsp;※&nbsp;江西省计算技术研究所
							</OPTION>
							<OPTION value=http://www.ceiaec.org>
								&nbsp;※&nbsp;信息产业部电子教育中心
							</OPTION>
							<OPTION value=http://www.51cmm.com>
								&nbsp;※&nbsp;软件工程专家网
							</OPTION>
							<OPTION value=http://www.csdn.net>
								&nbsp;※&nbsp;中国最大IT社区
							</OPTION>
							<OPTION value=http://sse.tongji.edu.cn>
								&nbsp;※&nbsp;同济大学软件学院
							</OPTION>
							<OPTION value=http://software.nju.edu.cn />
								&nbsp;※&nbsp;南京大学软件学院
							</OPTION>
							<OPTION value=http://www.ss.pku.edu.cn>
								&nbsp;※&nbsp;北京大学软件学院
							</OPTION>
							<OPTION value=http://www.thss.tsinghua.edu.cn>
								&nbsp;※&nbsp;清华大学软件学院
							</OPTION>
							<OPTION value=http://www.ios.ac.cn>
								&nbsp;※&nbsp;中科院软件研究所
							</OPTION>
							<OPTION value=http://www.buptsse.cn>
								&nbsp;※&nbsp;北京邮电大学软件学院
							</OPTION>
						</SELECT>
					</TD>
				</TR>
				<TR>
					<TD height=156 width="180">
						<IMG src="/OfficeSystem/Passed/User/CommonImages/scene.gif">
					</TD>
				</TR>
			</form>
			</table>
		</td>
		<td width="3"></td>
		<td width="595" valign="top" background="/OfficeSystem/Passed/User/CommonImages/02.jpg">
			<table class="tdb1" cellspacing="0" cellpadding="0" width="590"
				border="0">
				<tr>
					<td align="middle" width="251" height="180">
						<script language="JavaScript" type="text/javascript">
function topimg(simg)
{
var strimg=simg;
var strimg1="";
var strimg2="";
var strimg3="";
var allstrimg="";
 if (strimg.length>30)
 {
 strimg1=strimg.substring(0, 30);
 allstrimg=strimg1 + "......";
 }
  if (strimg.length<=30)
 {
 allstrimg=strimg;
 }
return allstrimg;
}
var focus_width=220;
var focus_height=160;
var text_height=22;
var links="";
var pics="";
var texts="";
var imgUrl=new Array();
var imgLink=new Array();
var imgTz=new Array();
var adNum=0;
var kk = 1;
var swf_height = focus_height+text_height;
pics = '/OfficeSystem/Passed/User/CommonImages/1.jpg';
links = '';
texts = '<center>' + topimg('公司简介') + '</center>';
imgUrl[kk] = '|/OfficeSystem/Passed/User/CommonImages/2.jpg';
imgLink[kk] = '';
imgTz[kk] = '|<center>' + topimg('办公大楼') + '</center>';
kk++;
imgUrl[kk] = '|/OfficeSystem/Passed/User/CommonImages/3.jpg';
imgLink[kk] = '';
imgTz[kk] = '|<center>' + topimg('知行楼') + '</center>';
kk++;
imgUrl[kk] = '|/OfficeSystem/Passed/User/CommonImages/4.jpg';
imgLink[kk] = '';
imgTz[kk] = '|<center>' + topimg('交流中心') + '</center>';
kk++;
imgUrl[kk] = '|/OfficeSystem/Passed/User/CommonImages/5.jpg';
imgLink[kk] = '';
imgTz[kk] = '|<center>' + topimg('风雨球场') + '</center>';
kk++;
for (i=1;i<=4;i++) {
	 pics = pics + imgUrl[i];
	 links =links + imgLink[i];
	texts = texts + imgTz[i];
}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="CommonImages/Slideviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0EFEF">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="CommonImages/Slideviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0EFEF" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
    </script>
					</td>
					<td width="27">
						<img src="/OfficeSystem/Passed/User/CommonImages/news.jpg" alt="ee" width="27" height="180">
					</td>
					<td valign="top" width="312">
						<table height="180" cellspacing="0" cellpadding="5" width="100%"
							border="0">
							<tr>
								<td valign="top" height="180">
									<table border="0" cellpadding="0" cellspacing="0" width="100%"
										align="center">
										<tr>
											<td width="100%" height="20">
												<table width="100%" height="100%" cellpadding="0"
													cellspacing="0" border="0">
													<% for(int i=0;noticeList!=null&&i<noticeList.size()&&i<8;i++){
														noticeInfo=(NoticeInfo)noticeList.elementAt(i);
													%>
														<tr height="20">
															<TD >
																<IMG src="/OfficeSystem/Passed/User/CommonImages/arrow1_1.gif" width=9 border=0 >
															</TD>
							                                <td width="70">
								                                <center>
									                             <%=noticeInfo.getPublishTime().substring(0,10)%>
								                                  </center>
							                                </td>
															<td >
																<a href="Notice/Notice?action=noticeQuery&noticeID=<%=noticeInfo.getNoticeID()%>" target="_blank">
																	<%=noticeInfo.getCaption().length()>18?noticeInfo.getCaption().substring(0,16)+"...":noticeInfo.getCaption() %>
																</a>
															</td>
														</tr>
													<%
														}
													%>
									</table>
											</td>
										</tr>
										<tr>
											<td colspan="1" height="20" align="right">
												<a href="/OfficeSystem/Passed/User/Notice/NoticeMore.jsp" target="_blank"> <img
														src="/OfficeSystem/Passed/User/CommonImages/more.jpg" width="48" height="16"
														border="0">
												</a>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<table cellspacing="0" cellpadding="0" width="100%" border="0"
				background="/OfficeSystem/Passed/User/CommonImages/bmenu_back.jpg">
				<tr>
					<td width="27" height="25"></td>
					<td class="menu1" width="437">
						站内下载
					</td>
					<td width="86">
						-&gt;
						<a href="<%=Constants.C_DOWNLOAD_JAVA%>?action=allFileQuery" target=_blank>MORE</a>
					</td>
				</tr>
			</table>
			<table class="tdb1" height="90" cellspacing="0" cellpadding="5"
				width="100%" border="0">
				<tr>
					<td valign="top">
						<table border="0" cellpadding="0" cellspacing="0" width="100%"
							align="center">
							<tr>
								<td width="100%" height="20">
									<table width="100%" height="100%" cellpadding="0"
										cellspacing="0" border="0">
										<%
											for(int j=0;fileList!=null&&j<fileList.size()&&j<8;j++){
												fileInfo=(FileInfo)fileList.elementAt(j);
										 %>
										<tr>
											<TD height=20>
												<IMG src="CommonImages/arrow1_1.gif" width=9 border=0>
											</TD>
			                                <td width="70">
				                                <center>
					                            <%=fileInfo.getUpLoadTime().substring(0,10)%>
				                                </center>
			                                </td>
											<td>
												[<a href="<%=Constants.C_DOWNLOAD_JAVA%>?action=fileQuery&fileID=<%=fileInfo.getFileID()%>" target=_blank><%=fileInfo.getCaption()%></a>]
											</td>
										</tr>
										<% }%>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>

		<jsp:include page="<%=Constants.S_INDEXFOOTER_JSP%>" />
	</body>
</html>

⌨️ 快捷键说明

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