Publication_Detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:5k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.commoninfo.publication.value.*"%>
- <%@ page import="com.vnex.intranet.commoninfo.publication.proxy.*"%>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
- <%@ page import="java.util.*" %>
- <%@ page import="java.sql.*" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <jsp:useBean id="publicationProxy" class="com.vnex.intranet.commoninfo.publication.proxy.PublicationProxyBean" scope="application" />
- <jsp:useBean id="publicationBean" class="com.vnex.intranet.commoninfo.publication.value.PublicationValueBean" scope="page" />
- <%
- int publicationId = 0;
- int start = 1;
- if(request.getParameter("publicationId")!=null && !request.getParameter("publicationId").equals(""))
- publicationId = Integer.parseInt(request.getParameter("publicationId"));
- publicationBean = publicationProxy.getPublicationDetail(publicationId);
- if(request.getParameter("start")!=null && !request.getParameter("start").equals(""))
- start = Integer.parseInt(request.getParameter("start"));
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <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="javascript" src="/vnex/validate.js" ></script>
- <script language=JavaScript>
- function removePublication()
- {
- if(!confirm("是否确定删除?"))
- {
- return false;
- }
- myform.action= "/mainctrl/commoninfo/publication/removePublicationSuccess";
- myform.submit();
- }
- function modifyPublication()
- {
- myform.action= "/mainctrl/commoninfo/publication/modifyPublication";
- myform.submit();
- }
- </script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <form name="myform" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <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 bgcolor="#fafafa">
- <td>
- <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="2" height="15" bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>>><a href="/mainctrl/commoninfo/publication/getPublicationList"><font color="#FFFFFF">内部刊物</font></a>>>内部刊物详细内容
- </font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"><font class="strong"> 名称:</font></td>
- <td width="487"> <%= FieldUtil.filterScriptTag(publicationBean.getPublicationName())%> </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"><font class="strong"> 发布部门:</font><br>
- </td>
- <td width="487"> <%= publicationBean.getPublicationDepartment()%> </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="100"> <font class="strong"> 附件: </font> </td>
- <td width="487">
- <%
- String str = publicationBean.getAttachmentUrl();
- int s = str.lastIndexOf(SubPathGenerater.getSeperator());
- String filename = str.substring(s+1);
- String UTFurl = str.substring(0,s+1)+StringUtil.encode(filename);
- out.println("<a href=""+UTFurl+"" target="_blank">");
- out.println(filename);
- out.println("</a>");
- %>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="100"><font class="strong"> 发布时间:</font></td>
- <td width="487"><% if(publicationBean.getPublishDate()!=null) out.println(publicationBean.getPublishDate().toString().substring(0,16)); else out.println(publicationBean.getPublishDate());%></td>
- </tr>
- <tr align="center" bgcolor="#fafafa">
- <td colspan="2" height="30">
- <input type="button" name="Submit3" value="修改" class="file" onClick="modifyPublication()">
- <input type="button" name="Submit32" value="删除" class="file" onClick="removePublication()">
- <input type="button" name="Submit33" value="返回" class="file" onClick="location='/mainctrl/commoninfo/publication/getPublicationList?start=<%= start%>'">
- </td>
- </tr>
- <input type="hidden" name="publicationIds" value="<%= publicationId%>">
- </table>
- </td>
- </tr>
- <input type="hidden" name="start" value="<%= start%>">
- </table>
- <br>
- <br>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form></DIV>
- </BODY></HTML>