tenderUpdate.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="s" uri="/struts-tags" %>
  3. <script type="text/javascript">
  4. KindEditor.ready(function(K) {
  5. var options = {
  6. //自定义工具栏
  7. items : [ 'source', 'plainpaste', 'wordpaste', 'preview', '|',
  8. 'fontname', 'fontsize', '|',
  9. 'forecolor', 'hilitecolor', 'bold',
  10. 'italic', 'underline', 'removeformat', '|',
  11. 'clearhtml', 'selectall','|',
  12. 'justifyleft', 'justifycenter', 'justifyright',
  13. 'indent','outdent','insertorderedlist', 'insertunorderedlist', '|',
  14. 'image', "multiimage", 'insertfile', '|',
  15. 'table', 'baidumap' ],
  16. //图片上传Action
  17. uploadJson : whzl.basePath+'/imgUpload_imgUpload',
  18. //允许网络图片上传
  19. allowImageRemote : true,
  20. //文件空间Action
  21. fileManagerJson : whzl.basePath+'/fileManager_fileManager',
  22. //允许展示文件空间
  23. allowFileManager : true,
  24. //kindeditor创建后,将编辑器的内容设置到原来的textarea控件里
  25. afterCreate : function(){ this.sync(); },
  26. //编辑器聚焦后,将编辑器的内容设置到原来的textarea控件里
  27. afterBlur: function(){ this.sync(); },
  28. //编辑器内容发生变化后,将编辑器的内容设置到原来的textarea控件里
  29. afterChange: function(){ this.sync(); }
  30. };
  31. editor_update = K.create('#content_update', options);
  32. });
  33. </script>
  34. <form id="updateTenderForm" method="post" enctype="multipart/form-data">
  35. <input type="hidden" name="tender.id" id="id_update">
  36. <input type="hidden" name="tender.chooseHouse.id" id="chooseHouseId_update">
  37. <!-- <div class="easyui-tabs" id="tabs_update">-->
  38. <div title="招标信息" id="zbxx_update">
  39. <table class="mytable" style="width: 99.9%;">
  40. <tr>
  41. <th width="15%">招标房源</th>
  42. <td width="35%">
  43. <input type="text" id="title_update" readonly="readonly">
  44. <input type="hidden" name="tender.ChooseHosue.id" id="chooseHouseId_update">
  45. </td>
  46. <th>招标类别</th>
  47. <td>
  48. <SELECT id="tenderType_update" name="tender.tenderType" required="true" class="easyui-validatebox" style="width:172px">
  49. <option value="">请选择...</option>
  50. </SELECT>
  51. </td>
  52. </tr>
  53. <tr>
  54. <th width="15%">项目编号</th>
  55. <td width="35%">
  56. <input type="text" name="tender.number" id="number_update">
  57. </td>
  58. <th width="15%">项目名称</th>
  59. <td width="35%">
  60. <input class="easyui-validatebox" required="true" id="name_update" name="tender.name">
  61. </td>
  62. </tr>
  63. <tr>
  64. <th>开标时间</th>
  65. <td>
  66. <input class="easyui-datebox" id="startDate_update" name="tender.startDate">
  67. </td>
  68. <th>开标地点</th>
  69. <td colspan="3">
  70. <input class="easyui-validatebox" id="address_update" name="tender.address">
  71. </td>
  72. </tr>
  73. <tr>
  74. <th>公告内容</th>
  75. <td colspan="3">
  76. <textarea rows="20" cols="" style="width: 100%" name="tender.content" id="content_update"></textarea>
  77. </td>
  78. </tr>
  79. </table>
  80. </div>
  81. <div title="附件上传" id="fjsc_update">
  82. <table class="mytable" style="width: 100%;">
  83. <tr>
  84. <th width="15%">招标文件</th>
  85. <td width="85%">
  86. <span id="tenderFile_update_file">
  87. <input type="button" value="上传" onclick="tenderFile_update.click()">
  88. <input type="file" multiple name="tenderFile" id="tenderFile_update" class="easyui-validatebox" style="float:left;width:0px">
  89. </span>
  90. </td>
  91. </tr>
  92. </table>
  93. </div>
  94. <!-- </div> -->
  95. </form>