Files
OMS/app/openapi/view/admin/test/test.html
2025-12-28 23:13:25 +08:00

47 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--
Copyright © ShopeX http://www.shopex.cn. All rights reserved.
See LICENSE file for license details.
-->
<div class="division" style="float:left;width:50%;">
<div id="openapi-name-list">
<table width="100%" cellspacing="0" cellpadding="0" border="0" class='tableform'>
<tr>
<th>接口选择:</th>
<td>
<select id="apiName" name="apiName" onchange="selectDiv(this.value)">
<option value="0">--请选择接口</option>
<{foreach from=$list item=item}>
<option value="<{$item}>"><{$item}></option>
<{/foreach}>
</select>
</td>
<td>Onex Oms数据接口开发文档<a target="_blank" href="https://top.shopex.cn/ecos/tpl/OmsOpenAPIDocument.rar">下载</a></td>
</tr>
</table>
</div>
<div id="openapi-form-page"></div>
</div>
<div>
<h3>返回结果:</h3>
<textarea id="resultarea" readonly="readonly" rows="3" cols="20" style="height:300px; width:500px;"></textarea>
</div>
<script language="javascript" type="text/javascript">
function selectDiv(val){
// W.page('index.php?app=openapi&ctl=admin_test&act=ajaxResult',{data:{'apiName':val},update:'openapi-form-page'});
new Request.HTML({
url:'index.php?app=openapi&ctl=admin_test&act=ajaxResult',
method:'post',
update:$('openapi-form-page'),
data:{'apiName':val},
onSuccess:function(){
$('resultarea').empty();
}
} ).send();
}
</script>