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

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/Information.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('DSZZC');" />
  44.         <input type="button" name="btnQuery" value="  添加活动信息" class="Botton" onclick="OpenInf('HDXX');" />
  45.         <br /><br />
  46.       </c:if>
  47.       <table align="left" bgcolor="#cccccc" border="0" cellpadding="1" cellspacing="1" width="98%">
  48.         <tr bgcolor="#ffffff">
  49.           <td style="height: 25px; width: 117px;">
  50.           &nbsp; 信息标题:
  51.           </td>
  52.           <td style="height: 23px">
  53.             <input type="text" id="txtTitle" name="title" value='<c:out value="${inf.inf_Title}" />' />
  54.             <input type="hidden" id="hidID" name="id" value='<c:out value="${inf.inf_ID}" />' />
  55.             <input type="hidden" id="hidKey" name="key" value='<c:out value="${key}" />' />
  56.             <input type="hidden" id="hidCatID" name="catID" value='<c:out value="${cat.cat_ID}" />' />
  57.           </td>
  58.         </tr>
  59.         <tr bgcolor="#ffffff">
  60.           <td style="height: 25px; width: 117px;">
  61.           &nbsp; 信息内容:
  62.           </td>
  63.           <td style="height: 23px">
  64.           <%
  65.           Information information = (Information)request.getAttribute("inf");
  66.           FCKeditor oFCKeditor ;
  67.           oFCKeditor = new FCKeditor( request, "content" ) ;
  68.           //                oFCKeditor.setBasePath( request.getContextPath() + "/" ) ;
  69.           oFCKeditor.setWidth("600");
  70.           oFCKeditor.setHeight("200");
  71.           oFCKeditor.setToolbarSet("Inf");
  72.           if(information != null){
  73.             if(information.getInf_Content() != null){
  74.               oFCKeditor.setValue(information.getInf_Content());
  75.             }
  76.           }
  77.           out.println( oFCKeditor.create() ) ;
  78.           %>
  79.           </td>
  80.         </tr>
  81.         <c:if test="${key == 'DSZZL'}">
  82.           <tr bgcolor="#ffffff">
  83.             <td style="height: 25px; width: 117px;">
  84.             &nbsp; 活动信息:
  85.             </td>
  86.             <td style="height: 23px">
  87.               <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  88.                 <tr>
  89.                   <td height="25" width="300" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>标题</strong></td>
  90.                   <td width="100" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>上传时间</strong></td>
  91.                   <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  92.                 </tr>
  93.               </table>
  94.               <div id="divList">
  95.                 <c:forEach var="inf" items="${list}" varStatus="status">
  96.                   <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  97.                     <tr>
  98.                       <td width="300" class="table_Right" height="25">
  99.                         &nbsp;<c:out value="${inf.inf_Title}" />
  100.                       </td>
  101.                       <td width="100" class="table_Right" align="center">
  102.                         <bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/>
  103.                       </td>
  104.                       <td width="120" align="center" class="table_Right">
  105.                         <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=OpenInformation&infID=<c:out value="${inf.inf_ID}" />'>编辑</a>
  106.                         &nbsp;|&nbsp;
  107.                         <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=DeleteInformation&infID=<c:out value="${inf.inf_ID}" />'>删除</a>
  108.                       </td>
  109.                     </tr>
  110.                   </table>
  111.                 </c:forEach>
  112.               </div>
  113.             </td>
  114.           </tr>
  115.           <tr bgcolor="#ffffff">
  116.             <td style="height: 25px; width: 117px;">
  117.             &nbsp; 董事长致辞:
  118.             </td>
  119.             <td style="height: 23px">
  120.               <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  121.                 <tr>
  122.                   <td height="25" width="300" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>标题</strong></td>
  123.                   <td width="100" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>上传时间</strong></td>
  124.                   <td width="120" align="center" bgcolor="#5983B0" class="STYLE1 table_Right"><strong>操作</strong></td>
  125.                 </tr>
  126.               </table>
  127.               <div id="divList">
  128.                 <c:forEach var="inf" items="${list2}" varStatus="status">
  129.                   <table width="520" border="0" cellpadding="0" cellspacing="0" class="table_Left">
  130.                     <tr>
  131.                       <td width="300" class="table_Right" height="25">
  132.                         &nbsp;<c:out value="${inf.inf_Title}" />
  133.                       </td>
  134.                       <td width="100" class="table_Right" align="center">
  135.                         <bean:write name="inf" property="inf_Time" format="yyyy-MM-dd"/>
  136.                       </td>
  137.                       <td width="120" align="center" class="table_Right">
  138.                         <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=OpenInformation&infID=<c:out value="${inf.inf_ID}" />'>编辑</a>
  139.                         &nbsp;|&nbsp;
  140.                         <a href='<%=request.getContextPath() %>/Manage/Information.do?todo=DeleteInformation&infID=<c:out value="${inf.inf_ID}" />'>删除</a>
  141.                       </td>
  142.                     </tr>
  143.                   </table>
  144.                 </c:forEach>
  145.               </div>
  146.             </td>
  147.           </tr>
  148.         </c:if>
  149.         <tr bgcolor="#ffffff" align="center">
  150.           <td colspan="2">
  151.             <input type="submit" id="btnSave" value="保  存" />&nbsp;&nbsp;&nbsp;&nbsp;
  152.             <input type="submit" value="返  回" />
  153.           </td>
  154.         </tr>
  155.       </table>
  156.     </td>
  157.   </tr>
  158. </table>
  159. </form>
  160. </body>
  161. </html>