upload_file_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_archive.tld" prefix="archive" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.lang.*"%>
- <%@ page import="java.sql.Timestamp"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
- <%@ page import="com.vnex.intranet.archives.value.ArchiveAttachmentValueBean"%>
- <jsp:useBean id="archiveProxy" class="com.vnex.intranet.archives.proxy.ArchiveProxyBean" scope="session" />
- <%
- String str = request.getParameter("fileId");
- ArchiveAttachmentValueBean fileInfo = archiveProxy.selectAttachement((new Integer(str)).intValue());
- String fileName = fileInfo.getFileName();
- fileName = fileName.substring(fileName.lastIndexOf("\")+1);
- String root = ConfigParaLoader.getParameter("rootUrl");
- %>
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/validate.js"></script>
- <script language=javascript>
- function toDetail(form)
- {
- form.action="/mainctrl/archive/personalArchiveDetail?archiveId=<%=fileInfo.getArchiveId()%>&isToday=<%=request.getParameter("isToday")%>";
- form.submit();
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td align="center" colspan="2" bgcolor="#FFFFFF">
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#666666">
- <td colspan="2"><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#ffffff">个人办公</font></a>>><a href="/mainctrl/archive/personalSearchArchives"><font color="#ffffff">档案查询</font></a>>><a href="/mainctrl/archive/personalArchiveDetail?archiveId=<%=fileInfo.getArchiveId()%>"><font color="#ffffff">档案详细信息</font></a>>>附件信息</font>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#e0e0e0">
- <td width="14%">
- <strong> 源文件:</strong>
- </td>
- <td width="86%">
- <%
- String str2 = fileInfo.getFileName().substring(root.length());
- int s = str2.lastIndexOf(SubPathGenerater.getSeperator());
- String filename = str2.substring(s+1);
- String UTFurl = str2.substring(0,s+1)+StringUtil.encode(filename);
- %>
- <a href=<%= UTFurl%> target="_blank"><%= fileName %></a>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="14%">
- <strong> 标题:</strong>
- </td>
- <td width="84%">
- <input type="text" name="fileTitle" size="30" class="text" maxlength= 250 readonly
- value = "<%=FieldUtil.filterQuotTag(fileInfo.getFileTitle())%>">
- </td>
- </tr>
- <tr bgcolor="e0e0e0">
- <td width="14%">
- <strong> 概要:</strong>
- </td>
- <td width="86%">
- <textarea rows="5" name="fileSummary" cols="59" wrap="VIRTUAL" readonly ><%=fileInfo.getFileSummary()%></textarea>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="14%">
- <strong> 上传日期:</strong>
- </td>
- <td width="86%">
- <input type="text" readonly name="fileTitle" size="30" class="text" maxlength= 250 value="<%=TimeStamp.formatCalendar(1,fileInfo.getSendDate())%>">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="14%">
- <strong> 备注:</strong>
- </td>
- <td width="86%" valign="top">
- <textarea name="others" cols="59" wrap="VIRTUAL" rows="5" readonly ><%=fileInfo.getOthers()%></textarea>
- </td>
- </tr>
- <tr bgcolor="#fafafa" align="center" height="30">
- <td colspan="2">
- <input onClick="toDetail(this.form)" type="button" value="返回" name="B2124" class="text">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>