📄 downloadmore.jsp
字号:
<%@page contentType="text/html;charset=GBK"
import="com.x3408.office.Constants,com.x3408.employees.UserInfo,com.x3408.employees.UserADO,
com.x3408.mail.MailADO,com.x3408.notice.NoticeADO,com.x3408.download.DownLoadADO,
java.util.Vector,com.x3408.download.FileInfo"%>
<html>
<head>
<title>X3408辅助办公系统</title>
<%
String employeeID=(String)session.getAttribute("employeeID");
UserInfo userInfo = UserADO.userQuery(employeeID);
String pageCount=(String)request.getAttribute("pageCount");
String recordCount=(String)request.getAttribute("recordCount");
int showPage=request.getAttribute("showPage")==null?1:Integer.parseInt((String)request.getAttribute("showPage"));
%>
<Script language=JavaScript>
<!--
function CheckPerDel()
{
var str = "您确定要删除该文件吗?";
if ( confirm( str ) == false )
return false;
else
{
return true;
}
}
//-->
</script>
</head>
<body>
<body topmargin="0" leftmargin="0"
rightmargin="0" bottommargin="0">
<jsp:include page="<%=Constants.S_INDEXHEADER_JSP%>" />
<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>使 用 帮 助</A>
</td>
</tr>
</table>
<%} %>
<table width="100%" border="0" cellspacing="1"
cellpadding="0" bgcolor="#ffffff">
<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>
※ 江西师范大学
</OPTION>
<OPTION value=http://jwc.jxnu.edu.cn />
※ 江西师范大学教务处
</OPTION>
<OPTION value=http://www.jxnu.edu.cn/xgw/souye.asp>
※ 江西师范大学学工处
</OPTION>
<OPTION value=http://210.35.164.11/index.asp>
※ 江西师范大学图书馆
</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>
※ 江西高教网
</OPTION>
<OPTION value=http://www.jict.org>
※ 江西省计算技术研究所
</OPTION>
<OPTION value=http://www.ceiaec.org>
※ 信息产业部电子教育中心
</OPTION>
<OPTION value=http://www.51cmm.com>
※ 软件工程专家网
</OPTION>
<OPTION value=http://www.csdn.net>
※ 中国最大IT社区
</OPTION>
<OPTION value=http://sse.tongji.edu.cn>
※ 同济大学软件学院
</OPTION>
<OPTION value=http://software.nju.edu.cn />
※ 南京大学软件学院
</OPTION>
<OPTION value=http://www.ss.pku.edu.cn>
※ 北京大学软件学院
</OPTION>
<OPTION value=http://www.thss.tsinghua.edu.cn>
※ 清华大学软件学院
</OPTION>
<OPTION value=http://www.ios.ac.cn>
※ 中科院软件研究所
</OPTION>
<OPTION value=http://www.buptsse.cn>
※ 北京邮电大学软件学院
</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD height=156 width="180">
<IMG src="/OfficeSystem/Passed/User/CommonImages/scene.gif">
</TD>
</TR>
</table>
</td>
<td width="595" valign="top" background="Images/LightBGColor.jpg">
<table cellSpacing=0 cellPadding=0 width=595 border=0 height="30">
<tr align="center">
<td width="40%" height="30" class="tb3" background="Images/BGColor.jpg">
文件列表
</td>
<td width="40%" class="tb3" background="Images/BGColor.jpg">
内容
</td>
<%if(userInfo.getAdmin()){%>
<td background="Images/BGColor.jpg" width="20%" class="tb3">
删除
</td>
<%} %>
</tr>
</table>
<table cellSpacing=0 cellPadding=0 width=595 border=0>
<%
String msg = (String) request.getAttribute("msg");
if (msg != null) {
response.setHeader("refresh", "3;URL=" + Constants.C_INDEX_JSP);
%>
<script>
alert("<%=msg%>");
</script>
<%
}
Vector fileList = (Vector) request.getAttribute("fileList");
for (int i = 0; fileList!=null&&i < fileList.size(); i++) {
FileInfo fileInfo = (FileInfo) fileList.elementAt(i);
String fileQueryLink = Constants.C_DOWNLOAD_JAVA
+ "?action=fileQuery&fileID="
+ fileInfo.getFileID();
%>
<tr align="center" <%=i%2==0?"BGcolor=white":""%> height="25">
<td class="tb3" width="40%">
<a href="<%=fileQueryLink%>"><%=fileInfo.getName()%> </a>
</td>
<td class="tb3" width="40%">
<a href="<%=fileQueryLink%>"><%=fileInfo.getCaption()%> </a>
</td>
<%if(userInfo.getAdmin()){ %>
<td class="tb3" width="20%">
<a onclick="return CheckPerDel()"
href="<%=Constants.C_FTPMANAGE_JAVA%>?action=fileDel&fileID=<%=fileInfo.getFileID()%>">删除</a>
</td>
<%} %>
</tr>
<%
}
%>
</table>
<%if(pageCount!=null){ %>
<form name="pageFrm" action="<%=Constants.C_DOWNLOAD_JAVA %>" method="post" >
<input name="action" value="allFileQuery" type="hidden">
<input name="showPage" value="" type="hidden">
</form>
<table class="contactlist" border="0" cellpadding="0" cellspacing="0" width="100%" align="center" valign="bottom">
<tr bgcolor="#eff7ff" align="center">
<td width="35%"> </td>
<td><b><a href="javascript:pageFrm.showPage.value='1';pageFrm.submit();">首 页</a></b></td>
<td><b><a href="javascript:pageFrm.showPage.value='<%=showPage-1 %>';pageFrm.submit();">上一页</a></b></td>
<td><b><a href="javascript:pageFrm.showPage.value='<%=showPage+1%>';pageFrm.submit();">下一页</a></b></td>
<td><b><a href="javascript:pageFrm.showPage.value='<%=pageCount%>';pageFrm.submit();">尾 页</a></b></td>
<td width="35%" align="right">
第 <font color="#3399FF"><b><%=showPage %></b></font> 页 共 <font color="#3399FF"><b><%=pageCount %></b></font> 页
</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 + -