upload_file_detail.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  2. <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
  3. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  4. <%@ page import="java.lang.*"%>
  5. <%@ page import="java.sql.Timestamp"%>
  6. <%@ page import="com.vnex.intranet.util.*"%>
  7. <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
  8. <%@ page import="com.vnex.intranet.archives.value.ArchiveAttachmentValueBean"%>
  9. <jsp:useBean id="archiveProxy" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" scope="session" /> 
  10. <%
  11. String str = request.getParameter("fileId");
  12. ArchiveAttachmentValueBean fileInfo = archiveProxy.selectAttachement((new Integer(str)).intValue());
  13. String fileName = fileInfo.getFileName();
  14. fileName = fileName.substring(fileName.lastIndexOf("\")+1); 
  15. String root = ConfigParaLoader.getParameter("rootUrl");
  16. %>
  17. <HTML>
  18. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  19. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  20. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  21. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  22. <script language="JavaScript" src="/vnex/validate.js"></script>
  23. <script language=javascript>
  24. function toDetail(form)
  25. {
  26. form.action="/mainctrl/archive/personalArchiveDetail?archiveId=<%=fileInfo.getArchiveId()%>&isToday=<%=request.getParameter("isToday")%>";
  27. form.submit();
  28. }
  29. </script>
  30. <DIV align=center>
  31. <form name="form1" method="post">
  32.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  33.     <TBODY> 
  34.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  35.       <TR> 
  36.         <TD colSpan=3 align="center"><br>
  37.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  38.             <tr> 
  39.               <td align="center" colspan="2" bgcolor="#FFFFFF"> 
  40.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  41.                   <tr bgcolor="#666666"> 
  42.                       <td colspan="2"><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#ffffff">个人办公</font></a>&gt;&gt;<a href="/mainctrl/archive/personalSearchArchives"><font color="#ffffff">档案查询</font></a>&gt;&gt;<a href="/mainctrl/archive/personalArchiveDetail?archiveId=<%=fileInfo.getArchiveId()%>"><font color="#ffffff">档案详细信息</font></a>&gt;&gt;附件信息</font>
  43.                   </tr>
  44.                 </table>
  45.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  46.                      <tr bgcolor="#e0e0e0"> 
  47.                         <td width="14%"> 
  48.                           <strong>&nbsp;源文件:</strong>
  49.                         </td>
  50.                         <td width="86%">
  51. <%
  52.   String str2 = fileInfo.getFileName().substring(root.length());
  53.   int s = str2.lastIndexOf(SubPathGenerater.getSeperator());
  54.   String filename = str2.substring(s+1);
  55.   String UTFurl = str2.substring(0,s+1)+StringUtil.encode(filename);
  56. %>
  57.                             <a href=<%= UTFurl%> target="_blank"><%= fileName %></a>
  58.                         </td>
  59.                     </tr>
  60.                     
  61.                     <tr bgcolor="#fafafa"> 
  62.                         <td width="14%"> 
  63.                           <strong>&nbsp;标题:</strong>
  64.                         </td>
  65.                         <td width="84%"> 
  66.                              <input type="text" name="fileTitle" size="30" class="text" maxlength= 250 readonly
  67.                               value = "<%=FieldUtil.filterQuotTag(fileInfo.getFileTitle())%>">
  68.                         </td>
  69.                     </tr>
  70.                     <tr bgcolor="e0e0e0"> 
  71.                         <td width="14%"> 
  72.                          <strong>&nbsp;概要:</strong>
  73.                         </td>
  74.                         <td width="86%"> 
  75.                             <textarea rows="5" name="fileSummary" cols="59" wrap="VIRTUAL" readonly ><%=fileInfo.getFileSummary()%></textarea>
  76.                         </td>
  77.                     </tr>
  78.                     <tr bgcolor="#fafafa"> 
  79.                         <td width="14%"> 
  80.                           <strong>&nbsp;上传日期:</strong>
  81.                         </td>
  82.                         <td width="86%"> 
  83.                           <input type="text" readonly name="fileTitle" size="30" class="text" maxlength= 250 value="<%=TimeStamp.formatCalendar(1,fileInfo.getSendDate())%>">
  84.                         </td>
  85.                     </tr>
  86.                     <tr bgcolor="#e0e0e0"> 
  87.                         <td width="14%"> 
  88.                            <strong>&nbsp;备注:</strong>
  89.                         </td>
  90.                         <td width="86%" valign="top"> 
  91.                            <textarea name="others" cols="59" wrap="VIRTUAL" rows="5" readonly ><%=fileInfo.getOthers()%></textarea>
  92.                         </td>
  93.                     </tr>
  94.                     <tr bgcolor="#fafafa" align="center" height="30">
  95.                        <td colspan="2">
  96.                        <input onClick="toDetail(this.form)" type="button" value="返回" name="B2124" class="text">
  97.                        </td>
  98.                     </tr>
  99.                </table>
  100.               </td>
  101.              </tr>
  102.           </table>  
  103.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  104.        </TD>
  105.      </TR>
  106.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  107.     </TBODY> 
  108.   </TABLE>
  109.     <BR>
  110.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  111. </form>
  112. </DIV>
  113. </BODY>
  114. </HTML>