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

📄 download.jsp

📁 辅助办公系统,具有发布公告、站内邮箱、日程安排、日志查看等功能
💻 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">
					下载文件名:&nbsp;&nbsp;<%=fileInfo==null?"":fileInfo.getName()%>&nbsp;&nbsp;
					文件上传时间:&nbsp;&nbsp;<%=fileInfo==null?"":fileInfo.getUpLoadTime().substring(0,10)%>&nbsp;&nbsp;
				</td>
			</tr>
			<tr height=50><td>&nbsp;</td></tr>
			<tr>
				<td>
				   <%=fileInfo==null?"":fileInfo.getIntroduce().replaceAll("\r\n","<br>") %>
				   
				</td>
			</tr>
			<tr height=50><td>&nbsp;</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>
								&nbsp;
								<B></B> - 由
								<B><A href=""><%=commentInfo.getCommenter() %></A>
								</B>评论于
								<I><%=commentInfo.getCommentPubTime() %></I>
							</DIV>
							<DIV>
								<FONT color=#008000>&nbsp;<%=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>
							&nbsp;评论者: <%=userInfo.getName() %>
						</DIV>
						<DIV>
							&nbsp;评论主题:
							<INPUT name=caption maxLength=250 size=72 readonly value="<%=fileInfo.getCaption()%>">
						</DIV>
						<DIV>
							&nbsp;评论内容:
							<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;}">&nbsp;&nbsp;
							<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="返&nbsp&nbsp回">
				   	<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 + -