?? index.jsp
字號(hào):
<%@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輔助辦公系統(tǒng)</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() %>
歡迎你來(lái)到X3408工作室
</td>
</tr>
</table>
</Marquee>
<tr>
<td align="center" valign="middle">
<a href=<%=Constants.C_LOGIN_JAVA %>?action=exit>[點(diǎn)擊這里退出]</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>使 用 幫 助</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>
------校內(nèi)鏈接------
</OPTION>
<OPTION value=http://www.jxnu.edu.cn>
※ 江西師范大學(xué)
</OPTION>
<OPTION value=http://jwc.jxnu.edu.cn />
※ 江西師范大學(xué)教務(wù)處
</OPTION>
<OPTION value=http://www.jxnu.edu.cn/xgw/souye.asp>
※ 江西師范大學(xué)學(xué)工處
</OPTION>
<OPTION value=http://210.35.164.11/index.asp>
※ 江西師范大學(xué)圖書館
</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>
※ 江西高教網(wǎng)
</OPTION>
<OPTION value=http://www.jict.org>
※ 江西省計(jì)算技術(shù)研究所
</OPTION>
<OPTION value=http://www.ceiaec.org>
※ 信息產(chǎn)業(yè)部電子教育中心
</OPTION>
<OPTION value=http://www.51cmm.com>
※ 軟件工程專家網(wǎng)
</OPTION>
<OPTION value=http://www.csdn.net>
※ 中國(guó)最大IT社區(qū)
</OPTION>
<OPTION value=http://sse.tongji.edu.cn>
※ 同濟(jì)大學(xué)軟件學(xué)院
</OPTION>
<OPTION value=http://software.nju.edu.cn />
※ 南京大學(xué)軟件學(xué)院
</OPTION>
<OPTION value=http://www.ss.pku.edu.cn>
※ 北京大學(xué)軟件學(xué)院
</OPTION>
<OPTION value=http://www.thss.tsinghua.edu.cn>
※ 清華大學(xué)軟件學(xué)院
</OPTION>
<OPTION value=http://www.ios.ac.cn>
※ 中科院軟件研究所
</OPTION>
<OPTION value=http://www.buptsse.cn>
※ 北京郵電大學(xué)軟件學(xué)院
</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('公司簡(jiǎn)介') + '</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('風(fēng)雨球場(chǎng)') + '</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¬iceID=<%=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">
站內(nèi)下載
</td>
<td width="86">
->
<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>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -