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

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. <html>
  8. <head>
  9. <title>Chairman</title>
  10. <link href="<%=request.getContextPath() %>/Manage/Css/skinv2.0.css" rel="stylesheet" type="text/css" />
  11. <script type="text/javascript">
  12. function FCKeditor_OnComplete( editorInstance ){
  13.   window.status = editorInstance.Description ;
  14. }
  15. function OpenInf(key){
  16.   location.href = "<%=request.getContextPath() %>/Manage/Default.do?todo=OpenInformation&key=" + key;
  17. }
  18. </script>
  19. </head>
  20. <body bgcolor="#ffffff">
  21. <form method="post" id="form1" action="<%=request.getContextPath() %>/Manage/Information.do?todo=EditInformation">
  22. <table cellspacing="0" cellpadding="0" width="100%" border="0">
  23.   <tr bgcolor="#cfdbe8">
  24.     <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>
  25.       <td valign="middle" bgcolor="#cfdbe8" colspan="2">&nbsp; <c:out value="${MainTitle}" /></td>
  26.   </tr>
  27.   <tr>
  28.     <td style="HEIGHT: 31px" valign="top" align="left" height="80">&nbsp;</td>
  29.     <td style="HEIGHT: 31px" valign="middle" align="left" colspan="2">
  30.       &nbsp;<img src="<%=request.getContextPath() %>/Manage/images/edit.gif" align="middle" alt="" />&nbsp;<c:out value="${ChildTitle}" />
  31.     </td>
  32.   </tr>
  33.   <tr>
  34.     <td style="HEIGHT: 1px" valign="top" align="left"></td>
  35.     <td style="HEIGHT: 1px" valign="top" align="left" width="820" bgcolor="#cfdbe8"></td>
  36.     <td style="HEIGHT: 1px; width: 144px;" valign="top" align="left"></td>
  37.   </tr>
  38.   <tr>
  39.     <td style="HEIGHT: 381px" valign="top" align="left"></td>
  40.     <td style="HEIGHT: 381px" valign="top" align="left" colspan="2">
  41.       <br/>
  42.       <c:if test="${key == 'DSZZL'}">
  43.         <input type="button" name="btnQuery" value="  活动信息" class="Botton" onclick="OpenInf('HDXX');" />
  44.         <br /><br />
  45.       </c:if>
  46.       <table align="left" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1" width="98%">
  47.         <tr bgcolor="#ffffff">
  48.           <td style="height: 25px; width: 117px;">
  49.           &nbsp; 信息标题:
  50.           </td>
  51.           <td style="height: 23px">
  52.             <input type="text" id="txtTitle" name="title" value='<c:out value="${inf.inf_Title}" />' />
  53.             <input type="hidden" id="hidID" name="id" value='<c:out value="${inf.inf_ID}" />' />
  54.             <input type="hidden" id="hidKey" name="key" value='<c:out value="${key}" />' />
  55.             <input type="hidden" id="hidCatID" name="catID" value='<c:out value="${cat.cat_ID}" />' />
  56.           </td>
  57.         </tr>
  58.         <tr bgcolor="#ffffff">
  59.           <td style="height: 25px; width: 117px;">
  60.           &nbsp; 信息内容:
  61.           </td>
  62.           <td style="height: 23px">
  63.           <%
  64.           Information information = (Information)request.getAttribute("inf");
  65.           FCKeditor oFCKeditor ;
  66.           oFCKeditor = new FCKeditor( request, "content" ) ;
  67.           //                oFCKeditor.setBasePath( request.getContextPath() + "/" ) ;
  68.           oFCKeditor.setWidth("600");
  69.           oFCKeditor.setHeight("200");
  70.           oFCKeditor.setToolbarSet("Inf");
  71.           if(information != null){
  72.             if(information.getInf_Content() != null){
  73.               oFCKeditor.setValue(information.getInf_Content());
  74.             }
  75.           }
  76.           out.println( oFCKeditor.create() ) ;
  77.           %>
  78.           </td>
  79.         </tr>
  80.         <c:if test="${key == 'DSZZL' + sessionScope.Language}">
  81.           <tr bgcolor="#ffffff">
  82.             <td style="height: 25px; width: 117px;">
  83.             &nbsp; 附属信息:
  84.             </td>
  85.             <td style="height: 23px">
  86.               <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  87.                 <tr>
  88.                   <td height="25" width="300" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>标题</strong></td>
  89.                   <td width="100" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>上传时间</strong></td>
  90.                   <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  91.                 </tr>
  92.               </table>
  93.               <div id="divList">
  94.                 <c:forEach var="inf" items="${list}" varStatus="status">
  95.                   <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  96.                     <tr>
  97.                       <td width="300" class="table_Right" height="25">
  98.                         &nbsp;<c:out value="${inf.inf_Title}" />
  99.                       </td>
  100.                       <td width="100" class="table_Right" align="center">
  101.                         <bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/>
  102.                       </td>
  103.                       <td width="120" align="center" class="table_Right">
  104.                         <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=OpenInformation&infID=<c:out value="${inf.inf_ID}" />'>编辑</a>
  105.                         &nbsp;|&nbsp;
  106.                         <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=DeleteInformation&infID=<c:out value="${inf.inf_ID}" />'>删除</a>
  107.                       </td>
  108.                     </tr>
  109.                   </table>
  110.                 </c:forEach>
  111.               </div>
  112.             </td>
  113.           </tr>
  114.         </c:if>
  115.         <tr bgcolor="#ffffff" align="center">
  116.           <td colspan="2">
  117.             <input type="submit" id="btnSave" value="保  存" />&nbsp;&nbsp;&nbsp;&nbsp;
  118.             <input type="submit" value="返  回" />
  119.           </td>
  120.         </tr>
  121.       </table>
  122.     </td>
  123.   </tr>
  124. </table>
  125. </form>
  126. </body>
  127. </html>