editBusinessOpportunity.jsp 5.8 KB

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