Information.jsp~26~
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:5k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
  3. <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  4. <%@ taglib uri="FCKeditor" prefix="FCK" %>
  5. <%@ page language="java" import="com.fredck.FCKeditor.*" %>
  6. <%@ page language="java" import="com.chinacannel.entity.*;" %>
  7. <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  8. <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
  9. <html>
  10. <head>
  11. <title>Information</title>
  12. <link href="<%=request.getContextPath() %>/Manage/Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript">
  14. function FCKeditor_OnComplete( editorInstance ){
  15.   window.status = editorInstance.Description ;
  16. }
  17. function OpenInf(key){
  18.   location.href = "<%=request.getContextPath() %>/Manage/Default.do?todo=OpenInformation&key=" + key;
  19. }
  20. </script>
  21. </head>
  22. <body bgcolor="#ffffff">
  23. <html:form method="post" action="/Manage/Information.do?todo=EditInformation" enctype="multipart/form-data">
  24. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  25.   <tr bgcolor="#cfdbe8">
  26.     <td style="WIDTH: 20px" width="20" bgcolor="#cfdbe8" height="19">&nbsp;<img height="10" src="<%=request.getContextPath() %>/Manage/images/icon.gif" width="12" alt="" /></td>
  27.       <td valign="middle" bgcolor="#cfdbe8" colspan="2">&nbsp; <c:out value="${MainTitle}" /></td>
  28.   </tr>
  29.   <tr>
  30.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  31.     <td style="HEIGHT: 31px" valign="middle" align="left" colspan="2">
  32.       &nbsp;<img src="<%=request.getContextPath() %>/Manage/images/edit.gif" align="middle" alt="" />&nbsp;<c:out value="${ChildTitle}" />
  33.     </td>
  34.   </tr>
  35.   <tr>
  36.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  37.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  38.     <td style="HEIGHT: 1px; width: 144px;" valign="top" align="left"></td>
  39.   </tr>
  40.   <tr>
  41.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  42.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  43.       <br/>
  44.       <table align="left" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1" width="98%">
  45.         <tr bgcolor="#ffffff">
  46.           <td style="height: 25px; width: 117px;">
  47.           &nbsp; 信息标题:
  48.           </td>
  49.           <td style="height: 23px">
  50.             <input type="text" id="txtTitle" name="title" value='<c:out value="${inf.inf_Title}" />' />
  51.             <input type="hidden" id="hidID" name="id" value='<c:out value="${inf.inf_ID}" />' />
  52.             <input type="hidden" id="hidMenuID" name="menuID" value='<c:out value="${menu.men_ID}" />' />
  53.           </td>
  54.         </tr>
  55.         <tr bgcolor="#ffffff">
  56.           <td style="height: 25px; width: 117px;">
  57.           &nbsp; 图片上传:
  58.           </td>
  59.           <td style="height: 23px">
  60.             <a href=""><c:out value="${inf.image.filename}" /></a>
  61.             <html:file property="informationImage" size="30"></html:file>
  62.             <input type="hidden" name="imageID" value='<c:out value="${inf.image.id}" />' /><br />
  63.             图片上传用于展示首页等所略小图,信息内容中如需展示的图片,请使用编辑器中的上传功能!
  64.           </td>
  65.         </tr>
  66.         <tr bgcolor="#ffffff">
  67.           <td style="height: 25px; width: 117px;">
  68.           &nbsp; 首页图片新闻:
  69.           </td>
  70.           <td style="height: 23px">
  71.             <input type="checkbox" name="index" value="1" />钩选表示作为首页图片新闻显示
  72.           </td>
  73.         </tr>
  74.         <tr bgcolor="#ffffff">
  75.           <td style="height: 25px; width: 117px;">
  76.           &nbsp; 信息摘要:
  77.           </td>
  78.           <td style="height: 23px">
  79.             <textarea cols="80" rows="4" name="summary"><c:out value="${inf.inf_Summary}" /></textarea>
  80.           </td>
  81.         </tr>
  82.         <tr bgcolor="#ffffff">
  83.           <td style="height: 25px; width: 117px;">
  84.           &nbsp; 信息内容:
  85.           </td>
  86.           <td style="height: 23px">
  87.           <%
  88.           Information information = (Information)request.getAttribute("inf");
  89.           FCKeditor oFCKeditor ;
  90.           oFCKeditor = new FCKeditor( request, "content" ) ;
  91.           //                oFCKeditor.setBasePath( request.getContextPath() + "/" ) ;
  92.           oFCKeditor.setWidth("600");
  93.           oFCKeditor.setHeight("200");
  94.           oFCKeditor.setToolbarSet("Inf");
  95.           if(information != null){
  96.             if(information.getInf_Content() != null){
  97.               oFCKeditor.setValue(information.getInf_Content());
  98.             }
  99.           }
  100.           out.println( oFCKeditor.create() ) ;
  101.           %>
  102.           </td>
  103.         </tr>
  104.         <tr bgcolor="#ffffff" align="center">
  105.           <td colspan="2">
  106.             <input type="submit" id="btnSave" value="保  存" />&nbsp;&nbsp;&nbsp;&nbsp;
  107.             <input type="submit" value="返  回" />
  108.           </td>
  109.         </tr>
  110.       </table>
  111.     </td>
  112.   </tr>
  113. </table>
  114. </html:form>
  115. </body>
  116. </html>