source.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="{{$.lp.base}}" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.id}}:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.name}}:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.description}}:</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="{{$.lp.style}}"></div>
  18. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  19. </div>
  20. <div title="{{$.lp.source}}" class="MWFTab">
  21. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  22. <tr>
  23. <td class="editTableTitle">{{$.lp.method}}:</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')}"/>{{$.lp.systemSource}}
  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">{{$.lp.applicationService}}:</td>
  48. <td class="editTableValue"><div class="MWFContextRoot" name="contextRoot">
  49. <select></select>
  50. <select style="display: none"></select><br/>
  51. <select style="display: none"></select>
  52. <input style="display: none" type="text" name="selectPath" value="text{$.selectPath}" class="editTableInput"/>
  53. </div></td>
  54. </tr>
  55. </table>
  56. </div>
  57. <div id="text{$.pid}sourceOtherArea" style="display: text{($.sourceType=='other')?'block':'none'}">
  58. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  59. <tr>
  60. <td class="editTableTitle">{{$.lp.hostPort}}:</td>
  61. <td class="editTableValue"><input type="text" name="otherHost" value="text{$.otherHost}" class="editTableInput"/></td>
  62. </tr>
  63. </table>
  64. <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center;">HTTP Head</div>
  65. <div class="MWFHTTPHear" name="httphead" title="HTTP Head"></div>
  66. <div class="MWFFormulaArea" name="cookies" title="Cookies (S)"></div>
  67. </div>
  68. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  69. <tr>
  70. <td class="editTableTitle">{{$.lp.path}}:</td>
  71. <td class="editTableValue"><input type="text" name="path" value="text{$.path}" class="editTableInput"/></td>
  72. </tr>
  73. </table>
  74. <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center;">{{$.lp.parameter}}</div>
  75. <div class="MWFParameterArea" name="parameters"></div>
  76. <div id="text{$.pid}requestBodyArea" style="display: text{($.httpMethod=='PUT' || $.httpMethod=='POST' || $.httpMethod=='PATCH')?'block':'none'}">
  77. <div class="MWFFormulaArea" name="requestBody" title="{{$.lp.requestBody}}"></div>
  78. </div>
  79. <div class="MWFSourceTestRestful">
  80. <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.test}}</div>
  81. <div style="margin: 10px; text-align:center"></div>
  82. </div>
  83. </div>
  84. <div title="{{$.lp.event}}" class="MWFTab">
  85. <div class="MWFEventsArea" name="events"></div>
  86. </div>
  87. <div title="HTML" class="MWFTab">
  88. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  89. </div>
  90. <div title="JSON" class="MWFTab">
  91. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  92. </div>
  93. </div>