mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 19:05:34 +08:00
47 lines
1.9 KiB
HTML
47 lines
1.9 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='upload' action="index.php?app=console&ctl=admin_adjustNumber&act=index&action=to_import" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="app" value="console">
|
|
<input type="hidden" name="mdl" value="adjustNumber">
|
|
<div class="division">
|
|
<table border="0" cellspacing="0" class="gridlist" cellpadding="0">
|
|
<tr>
|
|
<td style='width:100px;height:30px;'>文件类型:</td>
|
|
<td style='text-align:left;'><select id='filetype' name='filetype'><{foreach from=$filetype key=k item=v}><option value='<{$k}>'><{$v}></option><{/foreach}></select></td>
|
|
</tr>
|
|
<tr>
|
|
<td style='width:100px;height:30px;'>导入文件:</td>
|
|
<td style='text-align:left;'><input id='upload_file' name='import_file' type='file' value='' style='width:240px;'/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div style='margin-top:10px;text-align:center;'><{button class="btn-primary" type="submit" id="create_export_submit" label="导入"}></div>
|
|
|
|
</form>
|
|
<script>
|
|
$('upload').addEvent('submit', function(e) {
|
|
$('create_export_submit').set('disabled',true).getElement('span span').set('html','正在导入');
|
|
|
|
});
|
|
$('upload').store('target', {
|
|
onComplete: function() {
|
|
$('create_export_submit').set('disabled',false).getElement('span span').set('html','导入');
|
|
$('upload_file').value='';
|
|
}
|
|
});
|
|
|
|
</script> |