menuDefAdd.ss.jsp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div class="content-div" ssFith="true">
  6. <table class='form'>
  7. <tr>
  8. <th style="width:87px">名称</th>
  9. <td><input type="text" name="newMc" value="${newMc}"/></td>
  10. </tr>
  11. <tr>
  12. <th style="width:102px">模板号</th>
  13. <td><input type="text" name="grcdmbh" /></td>
  14. </tr>
  15. <tr>
  16. <th style="width:87px">描述</th>
  17. <td colspan="3" style="padding-top: 5px;padding-bottom: 7px;">
  18. <!-- <textarea rows="3" name="ms"></textarea> -->
  19. <div id="ms" width="calc(100% + 12px)" height="60px"></div>
  20. <growh.ss name="ms" mode="edit" maxHeight="150px" />
  21. </td>
  22. </tr>
  23. </table>
  24. </div>
  25. <div class='bottom-div'>
  26. <div class="bottom-down-div">
  27. <input type="button" value="确认" class="bottom-button" onclick="confirm()"> <%-- onclick="confirm(true)。Lin --%>
  28. <input type="button" value="取消" class="bottom-button" onclick="wd.display.closeDialog()">
  29. </div>
  30. </div>
  31. <script>
  32. /* 改,去掉 bool_,都是 true。Lin
  33. function confirm(bool_) {
  34. if (bool_) {
  35. */function confirm() {
  36. var pw = wd.display.getwdDialogOpener();
  37. var data = { newMc: document.querySelector("[name=newMc]").value, grcdmbh: document.querySelector("[name=grcdmbh]").value,ms:document.querySelector("[name=ms]") };
  38. pw[wd.display.getwdDialogId() + wd.display.callback_suffix]&&pw[wd.display.getwdDialogId() + wd.display.callback_suffix](data);
  39. // } // 去掉,去掉 bool_,都是 true。Lin
  40. wd.display.closeDialog();
  41. }
  42. </script>
  43. </body>
  44. </html>