| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <div style="background-color: #FFF; overflow: hidden">
- <div title="基本" class="MWFTab">
- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
- <tr>
- <td class="editTableTitle">标识:</td>
- <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
- </tr>
- <tr>
- <td class="editTableTitle">名称:</td>
- <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
- </tr>
- <tr>
- <td class="editTableTitle">描述:</td>
- <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
- </tr>
- </table>
- <div class="MWFMaplist" name="styles" title="样式"></div>
- <div class="MWFMaplist" name="properties" title="属性"></div>
- </div>
- <div title="数据源" class="MWFTab">
- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
- <tr>
- <td class="editTableTitle">方法:</td>
- <td class="editTableValue">
- <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');}">
- <option value="GET" text{($.httpMethod=='GET')?'selected':''}>GET</option>
- <option value="POST" text{($.httpMethod=='POST')?'selected':''}>POST</option>
- <option value="PUT" text{($.httpMethod=='PUT')?'selected':''}>PUT</option>
- <option value="PATCH" text{($.httpMethod=='PATCH')?'selected':''}>PATCH</option>
- <option value="OPTIONS" text{($.httpMethod=='OPTIONS')?'selected':''}>OPTIONS</option>
- <option value="HEAD" text{($.httpMethod=='HEAD')?'selected':''}>HEAD</option>
- <option value="DELETE" text{($.httpMethod=='DELETE')?'selected':''}>DELETE</option>
- </select>
- </td>
- </tr>
- <tr>
- <td class="editTableTitle"></td>
- <td class="editTableValue">
- <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')}"/>平台数据源
- <!--<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')}"/>外部数据源-->
- </td>
- </tr>
- </table>
- <div id="text{$.pid}sourceO2Area" style="display: text{($.sourceType!='other')?'block':'none'}">
- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
- <tr>
- <td class="editTableTitle">服务应用:</td>
- <td class="editTableValue"><div class="MWFContextRoot" name="contextRoot"></div></td>
- </tr>
- </table>
- </div>
- <div id="text{$.pid}sourceOtherArea" style="display: text{($.sourceType=='other')?'block':'none'}">
- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
- <tr>
- <td class="editTableTitle">主机/端口:</td>
- <td class="editTableValue"><input type="text" name="otherHost" value="text{$.otherHost}" class="editTableInput"/></td>
- </tr>
- </table>
- <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center;">HTTP Head</div>
- <div class="MWFHTTPHear" name="httphead" title="HTTP Head"></div>
- <div class="MWFFormulaArea" name="cookies" title="Cookies (S)"></div>
- </div>
- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
- <tr>
- <td class="editTableTitle">路径:</td>
- <td class="editTableValue"><input type="text" name="path" value="text{$.path}" class="editTableInput"/></td>
- </tr>
- </table>
- <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center;">参数</div>
- <div class="MWFParameterArea" name="parameters"></div>
- <div id="text{$.pid}requestBodyArea" style="display: text{($.httpMethod=='PUT' || $.httpMethod=='POST' || $.httpMethod=='PATCH')?'block':'none'}">
- <div class="MWFFormulaArea" name="requestBody" title="请求正文"></div>
- </div>
- <div class="MWFSourceTestRestful">
- <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center; cursor:pointer">测试</div>
- <div style="margin: 10px; text-align:center"></div>
- </div>
- </div>
- <div title="事件" class="MWFTab">
- <div class="MWFEventsArea" name="events"></div>
- </div>
- <div title="HTML" class="MWFTab">
- <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
- </div>
- <div title="JSON" class="MWFTab">
- <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
- </div>
- </div>
|