source.html 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="基本" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">标识:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">名称:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">描述:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. </table>
  17. <div class="MWFMaplist" name="styles" title="样式"></div>
  18. <div class="MWFMaplist" name="properties" title="属性"></div>
  19. </div>
  20. <div title="数据源" class="MWFTab">
  21. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  22. <tr>
  23. <td class="editTableTitle">方法:</td>
  24. <td class="editTableValue">
  25. <select name="httpMethod" onchange="var i=this.selectedIndex; if (i==1 || i==2 || i==3){$('text{$.pid}requestBodyArea').setStyle('display', 'block');}else{$('text{$.pid}requestBodyArea').setStyle('display', 'none');}">
  26. <option value="GET" text{($.httpMethod=='GET')?'selected':''}>GET</option>
  27. <option value="POST" text{($.httpMethod=='POST')?'selected':''}>POST</option>
  28. <option value="PUT" text{($.httpMethod=='PUT')?'selected':''}>PUT</option>
  29. <option value="PATCH" text{($.httpMethod=='PATCH')?'selected':''}>PATCH</option>
  30. <option value="OPTIONS" text{($.httpMethod=='OPTIONS')?'selected':''}>OPTIONS</option>
  31. <option value="HEAD" text{($.httpMethod=='HEAD')?'selected':''}>HEAD</option>
  32. <option value="DELETE" text{($.httpMethod=='DELETE')?'selected':''}>DELETE</option>
  33. </select>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="editTableTitle"></td>
  38. <td class="editTableValue">
  39. <input type="radio" name="sourceType" value="o2" text{($.sourceType!='other')?'checked':''} onclick="if (this.checked){ $('text{$.pid}sourceO2Area').setStyle('display', 'block'); $('text{$.pid}sourceOtherArea').setStyle('display', 'none')}"/>平台数据源
  40. <!--<input type="radio" name="sourceType" value="other" text{($.sourceType=='other')?'checked':''} onclick="if (this.checked){ $('text{$.pid}sourceO2Area').setStyle('display', 'none'); $('text{$.pid}sourceOtherArea').setStyle('display', 'block')}"/>外部数据源-->
  41. </td>
  42. </tr>
  43. </table>
  44. <div id="text{$.pid}sourceO2Area" style="display: text{($.sourceType!='other')?'block':'none'}">
  45. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  46. <tr>
  47. <td class="editTableTitle">服务应用:</td>
  48. <td class="editTableValue"><div class="MWFContextRoot" name="contextRoot"></div></td>
  49. </tr>
  50. </table>
  51. </div>
  52. <div id="text{$.pid}sourceOtherArea" style="display: text{($.sourceType=='other')?'block':'none'}">
  53. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  54. <tr>
  55. <td class="editTableTitle">主机/端口:</td>
  56. <td class="editTableValue"><input type="text" name="otherHost" value="text{$.otherHost}" class="editTableInput"/></td>
  57. </tr>
  58. </table>
  59. <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center;">HTTP Head</div>
  60. <div class="MWFHTTPHear" name="httphead" title="HTTP Head"></div>
  61. <div class="MWFFormulaArea" name="cookies" title="Cookies (S)"></div>
  62. </div>
  63. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  64. <tr>
  65. <td class="editTableTitle">路径:</td>
  66. <td class="editTableValue"><input type="text" name="path" value="text{$.path}" class="editTableInput"/></td>
  67. </tr>
  68. </table>
  69. <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center;">参数</div>
  70. <div class="MWFParameterArea" name="parameters"></div>
  71. <div id="text{$.pid}requestBodyArea" style="display: text{($.httpMethod=='PUT' || $.httpMethod=='POST' || $.httpMethod=='PATCH')?'block':'none'}">
  72. <div class="MWFFormulaArea" name="requestBody" title="请求正文"></div>
  73. </div>
  74. <div class="MWFSourceTestRestful">
  75. <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center; cursor:pointer">测试</div>
  76. <div style="margin: 10px; text-align:center"></div>
  77. </div>
  78. </div>
  79. <div title="事件" class="MWFTab">
  80. <div class="MWFEventsArea" name="events"></div>
  81. </div>
  82. <div title="HTML" class="MWFTab">
  83. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  84. </div>
  85. <div title="JSON" class="MWFTab">
  86. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  87. </div>
  88. </div>