?? 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 + -