📄 download.jsp
字号:
<%@page contentType="text/html;charset=GBK"
import="com.x3408.office.Constants,com.x3408.download.FileInfo,java.util.Vector,
com.x3408.download.CommentInfo,com.x3408.employees.UserInfo,com.x3408.employees.UserADO;"%>
<html>
<head>
<%
FileInfo fileInfo=(FileInfo)request.getAttribute("fileInfo");
Vector commentList=(Vector)request.getAttribute("commentList");
CommentInfo commentInfo=null;
UserInfo userInfo=UserADO.userQuery((String)session.getAttribute("employeeID"));
String msg=(String)request.getAttribute("msg");
if(msg==null){
msg=(String)session.getAttribute("msg");
session.removeAttribute("msg");
}
if(msg!=null){
%>
<script>
alert("<%=msg%>");
</script>
<%
}
%>
<title>X3408辅助办公系统</title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"
background="Images/Grid.jpg">
<jsp:include page="<%=Constants.S_INDEXHEADER_JSP%>" />
<TABLE width="778" valign="top" cellSpacing=0 cellPadding=0 width=400
align=center border=0 background="Images/LightBGColor.jpg">
<tr>
<td height="50" background="Images/BGColor.jpg" align=center>
<font size=3><%=fileInfo==null?"":fileInfo.getCaption()%>
</font>
</td>
</tr>
<tr>
<td height="26" background="Images/BGColor.jpg" align="right">
下载文件名: <%=fileInfo==null?"":fileInfo.getName()%>
文件上传时间: <%=fileInfo==null?"":fileInfo.getUpLoadTime().substring(0,10)%>
</td>
</tr>
<tr height=50><td> </td></tr>
<tr>
<td>
<%=fileInfo==null?"":fileInfo.getIntroduce().replaceAll("\r\n","<br>") %>
</td>
</tr>
<tr height=50><td> </td></tr>
<tr>
<td>
<DIV class=fstdiv2>
<%
for(int i=0;commentList!=null&&i<commentList.size();i++){
commentInfo=(CommentInfo)commentList.elementAt(i);
%>
<DIV class=fstdiv1>
<DIV>
<B></B> - 由
<B><A href=""><%=commentInfo.getCommenter() %></A>
</B>评论于
<I><%=commentInfo.getCommentPubTime() %></I>
</DIV>
<DIV>
<FONT color=#008000> <%=commentInfo.getComment().replaceAll("\r\n","<br>")%></FONT>
</DIV>
</DIV>
<%if(userInfo.getAdmin()){ %>
<FORM action=<%=Constants.C_FTPMANAGE_JAVA %> method=post>
<INPUT type=hidden value=<%=commentInfo.getCommentID() %> name=commentID>
<input type=hidden value=commentDel name=action>
<INPUT type=submit value=删除此评论 onclick="if(confirm('你确实要删除该评论吗?')){return true;}else {return false;}">
</FORM>
<%
}
}
%>
<P></P>
<FORM name=commentFrm action=DownLoad method=post>
<DIV>
评论者: <%=userInfo.getName() %>
</DIV>
<DIV>
评论主题:
<INPUT name=caption maxLength=250 size=72 readonly value="<%=fileInfo.getCaption()%>">
</DIV>
<DIV>
评论内容:
<BR>
</DIV>
<DIV>
<textarea name=comment rows=10 cols=70></textarea>
</DIV>
<DIV>
<INPUT type="submit" value=发表评论 onclick="if(commentFrm.comment.value==''){alert('请填写评论内容再发表评论');return false;}">
<INPUT type=hidden value=<%=fileInfo.getFileID() %> name=fileID>
<INPUT type=hidden value="commentPub" name=action>
<%if(userInfo.getAdmin()){ %>
<input type="button" value="删除所有评论"
onclick="if(confirm('确实要删除关于该文件的所有评论吗?')){location.href='<%=Constants.C_FTPMANAGE_JAVA%>?action=allCommentDel&fileID=<%=fileInfo.getFileID()%>';return true;}">
<%} %>
</DIV>
</FORM>
</div>
</td>
</tr>
<tr>
<td align="center" height="50" background="Images/LightBGColor.jpg">
<%
if(fileInfo!=null){
%>
<form action=DownLoad method=post>
<input name=action type=hidden value="downLoad">
<input name=fileID type=hidden value="<%=fileInfo.getFileID() %>">
<input class="btn" onclick="location.href='<%=Constants.C_DOWNLOAD_JAVA%>?action=allFileQuery'" type="button" value="返  回">
<INPUT class="Btn" type=submit value="点击下载">
<%}%>
<input class="Btn" onclick="window.close()" type="button" value="关闭窗口" name="Submit">
</td>
</tr>
</table>
<jsp:include page="../CommonFooter.jsp" />
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -