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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="com.vnex.intranet.commoninfo.regulation.value.*"%>
  3. <%@ page import="com.vnex.intranet.commoninfo.regulation.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="regulationProxy" class="com.vnex.intranet.commoninfo.regulation.proxy.RegulationProxyBean" scope="application" />
  11. <jsp:useBean id="regulationBean" class="com.vnex.intranet.commoninfo.regulation.value.RegulationValueBean" scope="page" />
  12. <%
  13.   int regulationId = 0;
  14.   int start = 1;
  15.   if(request.getParameter("regulationId")!=null && !request.getParameter("regulationId").equals(""))
  16.     regulationId = Integer.parseInt(request.getParameter("regulationId"));
  17.   regulationBean = regulationProxy.getRegulationDetail(regulationId);
  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 removeRegulation()
  28. {
  29.   if(!confirm("是否确定删除?"))
  30.   {
  31.     return false;
  32.   }
  33.  myform.action= "/mainctrl/commoninfo/regulation/removeRegulationSuccess";
  34.   myform.submit();
  35. }
  36. function modifyRegulation()
  37. {
  38.  myform.action= "/mainctrl/commoninfo/regulation/modifyRegulation";
  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/regulation/getRegulationList"><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(regulationBean.getRegulationName())%> </td>
  62.                   </tr>
  63.                   <tr bgcolor="#e0e0e0"> 
  64.                     <td width="100"><font class="strong">&nbsp;发布部门:</font><br>
  65.                     </td>
  66.                     <td width="487"> <%= regulationBean.getRegulationDepartment()%> </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 = regulationBean.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(regulationBean.getPublishDate()!=null) out.println(regulationBean.getPublishDate().toString().substring(0,16)); else out.println(regulationBean.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="modifyRegulation()">&nbsp;&nbsp;
  89.                       <input type="button" name="Submit32" value="删除" class="file" onClick="removeRegulation()">&nbsp;&nbsp;
  90.                       <input type="button" name="Submit33" value="返回" class="file" onClick="location='/mainctrl/commoninfo/regulation/getRegulationList?start=<%= start%>'">
  91.                     </td>
  92.                   </tr>
  93.                   <input type="hidden" name="regulationIds" value="<%= regulationId%>">
  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>