mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 05:25:32 +08:00
58 lines
2.1 KiB
HTML
58 lines
2.1 KiB
HTML
<!--
|
||
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License");
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
-->
|
||
|
||
<table width="100%" cellspacing="0" cellpadding="0" border="0" >
|
||
<tbody>
|
||
<tr>
|
||
<th ><em class="c-red">*</em>私钥:</th>
|
||
<td>
|
||
<input autocomplete="off" class="x-input " name="config[private_key]" vtype="required" value="<{$config['private_key']}>" size="32" id="dom_el_3db5b10" type="text">
|
||
<a id="private_key"><{img src="bundle/refresh.gif" app="desktop" }></a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th ><em class="c-red">*</em>api地址:</th>
|
||
<td>
|
||
<input autocomplete="off" class="x-input" name="config[api_url]" vtype="required" value="<{$config['api_url']}>" size="32" id="dom_el_19e5c71" type="text">
|
||
</td>
|
||
</tr>
|
||
|
||
<{if $platform_params}>
|
||
<{foreach from=$platform_params item=item key=key}>
|
||
<tr>
|
||
<th ><em class="c-red">*</em><{$item}>:</th>
|
||
<td>
|
||
<{input name="config[{$key}]" vtype="required" value=$config[$key] size="32"}>
|
||
<{if $key=="private_key" }> <a id="private_key"><{img src="bundle/refresh.gif" app="desktop" }></a><{/if}>
|
||
</td>
|
||
</tr>
|
||
<{/foreach}>
|
||
<{/if}>
|
||
</tbody>
|
||
</table>
|
||
<script type="text/javascript">
|
||
(function(){
|
||
if ($defined($('private_key'))) {
|
||
$('private_key').addEvent('click',function(){
|
||
var _this = this;
|
||
new Request({url:'index.php?app=wmsmgr&ctl=admin_wms&act=gen_private_key',
|
||
onComplete:function(rs){
|
||
_this.getPrevious('input').set('value',rs);
|
||
}}).send();
|
||
});
|
||
};
|
||
})();
|
||
</script> |