Information.jsp~29~
上传用户: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 style="width:400" 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.             <c:if test="${inf.inf_Index == 1}">
  72.               <input type="checkbox" name="index" value="1" checked="checked" />钩选表示作为首页图片新闻显示
  73.             </c:if>
  74.             <c:if test="${inf.inf_Index != 1}">
  75.               <input type="checkbox" name="index" value="1" />钩选表示作为首页图片新闻显示
  76.             </c:if>
  77.           </td>
  78.         </tr>
  79.         <tr bgcolor="#ffffff">
  80.           <td style="height: 25px; width: 117px;">
  81.           &nbsp; 信息摘要:
  82.           </td>
  83.           <td style="height: 23px">
  84.             <textarea cols="80" rows="4" name="summary"><c:out value="${inf.inf_Summary}" /></textarea>
  85.           </td>
  86.         </tr>
  87.         <tr bgcolor="#ffffff">
  88.           <td style="height: 25px; width: 117px;">
  89.           &nbsp; 信息内容:
  90.           </td>
  91.           <td style="height: 23px">
  92.           <%
  93.           Information information = (Information)request.getAttribute("inf");
  94.           FCKeditor oFCKeditor ;
  95.           oFCKeditor = new FCKeditor( request, "content" ) ;
  96.           //                oFCKeditor.setBasePath( request.getContextPath() + "/" ) ;
  97.           oFCKeditor.setWidth("600");
  98.           oFCKeditor.setHeight("200");
  99.           oFCKeditor.setToolbarSet("Inf");
  100.           if(information != null){
  101.             if(information.getInf_Content() != null){
  102.               oFCKeditor.setValue(information.getInf_Content());
  103.             }
  104.           }
  105.           out.println( oFCKeditor.create() ) ;
  106.           %>
  107.           </td>
  108.         </tr>
  109.         <tr bgcolor="#ffffff" align="center">
  110.           <td colspan="2">
  111.             <input type="submit" id="btnSave" value="保  存" />&nbsp;&nbsp;&nbsp;&nbsp;
  112.             <input type="submit" value="返  回" />
  113.           </td>
  114.         </tr>
  115.       </table>
  116.     </td>
  117.   </tr>
  118. </table>
  119. </html:form>
  120. </body>
  121. </html>