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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.commoninfo.directory.value.*"%>
  3. <%@ page import="com.vnex.intranet.commoninfo.directory.proxy.*"%>
  4. <%@ page import="com.vnex.intranet.util.*"%>
  5. <%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
  6. <%@ page import="java.util.*" %>
  7. <%@ page import="java.sql.*" %>
  8. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  9. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  10. <jsp:useBean id="directoryProxy" class="com.vnex.intranet.commoninfo.directory.proxy.DirectoryProxyBean" scope="application" />
  11. <jsp:useBean id="directoryBean" class="com.vnex.intranet.commoninfo.directory.value.DirectoryValueBean" scope="page" />
  12. <%
  13.   int directoryId = 0;
  14.   int start = 1;
  15.   if(request.getParameter("directoryId")!=null && !request.getParameter("directoryId").equals(""))
  16.     directoryId = Integer.parseInt(request.getParameter("directoryId"));
  17.   directoryBean = directoryProxy.getDirectoryDetail(directoryId);
  18.   if(request.getParameter("start")!=null && !request.getParameter("start").equals(""))
  19.     start = Integer.parseInt(request.getParameter("start"));
  20. %>
  21. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  22. <HTML>
  23. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  24. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  25. <script language="javascript" src="/vnex/validate.js" ></script>
  26. <script language=JavaScript>
  27. function removeDirectory()
  28. {
  29.   if(!confirm("是否确定删除?"))
  30.   {
  31.     return false;
  32.   }
  33.  myform.action= "/mainctrl/commoninfo/directory/removeDirectorySuccess";
  34.   myform.submit();
  35. }
  36. function modifyDirectory()
  37. {
  38.  myform.action= "/mainctrl/commoninfo/directory/modifyDirectory";
  39.   myform.submit();
  40. }
  41. </script>
  42. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  43. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  44. <DIV align=center>
  45.   <form name="myform" method="post" action="">
  46.     <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  47.      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  48.     <TR> 
  49.         <TD colSpan=3 align="center"><br>
  50.           <!--个人信息开始 -->
  51.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  52.             <tr bgcolor="#fafafa"> 
  53.               <td> 
  54.                 <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  55.                   <tr> 
  56.                     <td colspan="2" height="15" bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;<a href="/mainctrl/commoninfo/directory/getDirectoryList"><font color="#FFFFFF">办事指南</font></a>&gt;&gt;办事指南详细内容 
  57.                       </font></td>
  58.                   </tr>
  59.                   <tr bgcolor="#fafafa"> 
  60.                     <td width="100"><font class="strong">&nbsp;名称:</font></td>
  61.                     <td width="487"> <%= FieldUtil.filterScriptTag(directoryBean.getDirectoryName())%> </td>
  62.                   </tr>
  63.                   <tr bgcolor="#e0e0e0"> 
  64.                     <td width="100"><font class="strong">&nbsp;发布部门:</font><br>
  65.                     </td>
  66.                     <td width="487"> <%= directoryBean.getDirectoryDepartment()%> </td>
  67.                   </tr>
  68.                   <tr bgcolor="#fafafa"> 
  69.                     <td width="100"> <font  class="strong">&nbsp;附件: </font> </td>
  70.                     <td width="487">
  71. <%
  72.   String str = directoryBean.getAttachmentUrl();
  73.   int s = str.lastIndexOf(SubPathGenerater.getSeperator());
  74.   String filename = str.substring(s+1);
  75.   String UTFurl = str.substring(0,s+1)+StringUtil.encode(filename);
  76.   out.println("<a href=""+UTFurl+"" target="_blank">");
  77.   out.println(filename);
  78.   out.println("</a>");
  79. %>
  80.                     </td>
  81.                   </tr>
  82.                   <tr bgcolor="#e0e0e0"> 
  83.                     <td width="100"><font  class="strong">&nbsp;发布时间:</font></td>
  84.                     <td width="487"><% if(directoryBean.getPublishDate()!=null) out.println(directoryBean.getPublishDate().toString().substring(0,16)); else out.println(directoryBean.getPublishDate());%></td>
  85.                   </tr>
  86.                   <tr align="center" bgcolor="#fafafa"> 
  87.                     <td colspan="2" height="30"> 
  88.                       <input type="button" name="Submit3" value="修改" class="file" onClick="modifyDirectory()">&nbsp;&nbsp;
  89.                       <input type="button" name="Submit32" value="删除" class="file" onClick="removeDirectory()">&nbsp;&nbsp;
  90.                       <input type="button" name="Submit33" value="返回" class="file" onClick="location='/mainctrl/commoninfo/directory/getDirectoryList?start=<%= start%>'">
  91.                     </td>
  92.                   </tr>
  93.                   <input type="hidden" name="directoryIds" value="<%= directoryId%>">
  94.                 </table>
  95.               </td>
  96.             </tr>
  97.             <input type="hidden" name="start" value="<%= start%>">
  98.           </table>
  99.           <br>
  100.           <br>
  101.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  102.        </TD>
  103.     </TR>
  104.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  105.     </TABLE>
  106.   <BR>
  107.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  108. </form></DIV>
  109. </BODY></HTML>