mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
82 lines
2.4 KiB
HTML
82 lines
2.4 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.
|
||
-->
|
||
|
||
<form id="ipsettingform" action="index.php?ctl=ipsetting&act=save" method="post">
|
||
|
||
<div class="tableform">
|
||
<h3>IP地址白名单管理<em class="red">(默认情况下无设置,没有IP登录限制)</em><{$helpLink}></h3>
|
||
<div class="division">
|
||
|
||
<table cellspacing="0" cellpadding="0" width="100%">
|
||
<tbody>
|
||
<tr>
|
||
<th><{t}>设置IP地址:<{/t}></th>
|
||
<td><textarea name="ip_addr" style="height:100px;width:200px;text_align:left" ><{$ip_addr}></textarea>
|
||
<p class="red">(多个IP地址之间请用回车符号隔开)</p>
|
||
</td>
|
||
|
||
</tr>
|
||
<tr>
|
||
<th><{t}>上次操作角色:<{/t}></th>
|
||
<td>
|
||
<{if $user_name}><{$user_name}><{else}>无<{/if}>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th><{t}>上次设置时间:<{/t}></th>
|
||
<td>
|
||
<{if $lasttime}><{$lasttime}><{else}>无<{/if}>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<hr>
|
||
<tr>
|
||
<td><{button class="btn-primary" style="margin-left:50%" id="ipsettingform-submit" type="submit" label=$___b2c="确定"|t:'b2c'}></td>
|
||
</tr>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
|
||
<script>
|
||
(function(){
|
||
var _form = $('ipsettingform');
|
||
var btn =$('ipsettingform-submit');
|
||
var finder = finderGroup['<{$env.get.finder_id}>'];
|
||
_form.store('target',{
|
||
onComplete:function(){
|
||
},
|
||
onSuccess:function(response){
|
||
var hash_res_obj = JSON.decode(response);
|
||
if (hash_res_obj.success != undefined && hash_res_obj.success != ""){
|
||
try{
|
||
var _dialogIns = btn.getParent('.dialog').retrieve('instance');
|
||
}catch(e){}
|
||
|
||
if(_dialogIns){
|
||
_dialogIns.close();
|
||
|
||
}
|
||
}
|
||
}
|
||
});
|
||
|
||
btn.addEvent('click',function(){
|
||
_form.fireEvent('submit',{stop:$empty});
|
||
});
|
||
})();
|
||
</script>
|