mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 19:05:34 +08:00
40 lines
1.5 KiB
HTML
40 lines
1.5 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="exptempform" method="post" action="index.php?app=desktop&ctl=export&act=saveTemp">
|
|
<div>名称:<input type="text" id="extmp_name" name="extmp_name" vtype="required" /></div>
|
|
<input type="hidden" name="need_detail" value="<{$need_detail}>">
|
|
<input type="hidden" name="content" value="<{$content}>">
|
|
<input type="hidden" name="type" value="<{$type}>">
|
|
</form>
|
|
<div class='table-action'>
|
|
<{button label='确定' id='primary-btn'}>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$('primary-btn').removeEvents('click').addEvent('click',function(e){
|
|
e.stop();
|
|
var data = $('exptempform').toQueryString();
|
|
var url = $('exptempform').get('action');
|
|
new Request ({
|
|
url:url,
|
|
data:data,
|
|
method:'post',
|
|
onComplete:function(){
|
|
$('primary-btn').getParent('.dialog').retrieve('instance').close();
|
|
}
|
|
}).send();
|
|
});
|
|
</script> |