mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-31 13:25:32 +08:00
68 lines
1.8 KiB
HTML
68 lines
1.8 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 action="index.php?app=desktop&ctl=pam&act=setting&p[0]=<{$passport}>" id="pam-edit-form">
|
|
<div class="tableform">
|
|
<{$html}>
|
|
</div>
|
|
</from>
|
|
|
|
<{area inject=".mainFoot"}>
|
|
<div class="table-action">
|
|
<table width="100%" cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr>
|
|
<td><button class="btn btn-primary" id="pam-edit-form-submit" type="submit"><span><span><{t}>确定<{/t}></span></span></button></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<{/area}>
|
|
<script>
|
|
(function(){
|
|
var _form = $('pam-edit-form');
|
|
var btn =$('pam-edit-form-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> |