editInformation.jsp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>编辑资讯信息</title>
  9. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  10. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript" src="/shares/js/file.js"></script>
  15. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  16. <script type="text/javascript" src="/shares/datePicker/WdatePicker.js"></script>
  17. <script src="${pageContext.request.contextPath}/liger/lib/json2.js" type="text/javascript"></script>
  18. <script type="text/javascript" src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js"></script>
  19. <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor1_4_3-gbk-jsp/ueditor.config.js"></script>
  20. <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/ueditor1_4_3-gbk-jsp/ueditor.all.min.js"> </script>
  21. <script type="text/javascript">
  22. $(function (){
  23. var ue = UE.getEditor('info_.info_content'); //实例化编辑器
  24. });
  25. function saveInformation(){
  26. var rs = $.validate({name:"info_.info_title",model:[{type:"require",msg:"资讯标题不能为空!"},
  27. {type:"lenByZhOrEn",min:1,max:60,msg:"资讯标题 长度不能超过30个字!"}]});
  28. rs &= $.validate({name:"info_\\.info_content",model:[{type:"require",msg:"资讯内容不能为空!",msgBox:"info_content_msg"}]});
  29. if(!rs)return;
  30. var evalue = "";
  31. $("input[name='info_accessory']").each(function(){
  32. var accessory_val = $(this).val();
  33. if(""!=accessory_val){
  34. if(evalue!=""){
  35. evalue+=","+$(this).val();
  36. }else{
  37. evalue=$(this).val();
  38. }
  39. }
  40. });
  41. $("#info_\\.info_accessory").val(evalue);
  42. $("#opBoForm").submit();
  43. }
  44. </script>
  45. <style type="text/css">
  46. .file-style{
  47. width: 550px;
  48. }
  49. .file-style input[type='file'] {
  50. width:300px ;
  51. height:24px;
  52. line-height:22px;
  53. vertical-align: bottom;
  54. background-color: #fff;
  55. border: 1px solid #cccccc;
  56. margin-top: 2px;
  57. margin-bottom: 2px;
  58. }
  59. </style>
  60. </head>
  61. <body>
  62. <form id="opBoForm" action="opInformationAction.do" method="post">
  63. <div id="title" class="form-button">
  64. <input id="btnSave" type="button" class="l-button" value="提交" onclick="saveInformation()"/>
  65. <input type="button" value="关闭" class="l-button" onclick="closeWindow();"/>
  66. </div>
  67. <div class="container-layout">
  68. <div class="forum-container">
  69. <table class="l-table-edit line">
  70. <tr>
  71. <td class="l-table-edit-text" width="15%">资讯标题<FONT COLOR="red">*</FONT>:</td>
  72. <td class="l-table-edit-td" width="85%">
  73. <input type="text" id="info_.info_title" name="info_.info_title" value="${info_.info_title }" style="width:500px;"/>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td class="l-table-edit-text" >资讯类别<FONT COLOR="red"></FONT>:</td>
  78. <td class="l-table-edit-td" >
  79. <select id="info_.info_type" name="info_.info_type">
  80. <c:forEach items="${infoTypeList }" var="info_type">
  81. <option value="${info_type.dvalue }"
  82. <c:if test="${info_.info_type eq info_type.dvalue }">
  83. selected="selected"
  84. </c:if>
  85. >${info_type.dname }</option>
  86. </c:forEach>
  87. </select>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="l-table-edit-text">资讯内容<FONT COLOR="red">*</FONT>:</td>
  92. <td class="l-table-edit-td" >
  93. <%-- <input type="text" id="info_.info_content" name="info_.info_content" value="${info_.info_content }" style="width:185px;" onkeyup="displayBillChinese(this.value);"/> --%>
  94. <script id="info_.info_content" name="info_.info_content" type="text/plain" style="width:100%;height:500px;">
  95. ${info_.info_content }
  96. </script>
  97. <span id="info_content_msg" name="info_content_msg"></span>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="l-table-edit-text">相关文件:</td>
  102. <td class="l-table-edit-td">
  103. <jsp:include page="/include/file.jsp">
  104. <jsp:param name="fieldName" value="info_accessory" />
  105. <jsp:param name="folder" value="one_platform/info" />
  106. <jsp:param name="size" value="5" />
  107. <jsp:param name="isView " value="1" />
  108. <jsp:param name="isDelFile" value="1" />
  109. <jsp:param name="definedCss" value="file-style" />
  110. <jsp:param name="documentId" value="${info_.info_accessory}" />
  111. </jsp:include>
  112. <input id="info_.info_accessory" name="info_.info_accessory" type="hidden" value="${info_.info_accessory }"/>
  113. </td>
  114. </tr>
  115. </table>
  116. </div>
  117. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  118. <input type="hidden" id="task" name="task" value="editInformation">
  119. <input type="hidden" id="isNeedCheck" name="isNeedCheck" value="${isNeedCheck }"/>
  120. <input id="info_.universalid" name="info_.universalid" type="hidden" value="${info_.universalid }"/>
  121. </div>
  122. </form>
  123. <%@include file="/include/message.jsp"%>
  124. </body>
  125. </html>