mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 18:35:35 +08:00
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
<!--
|
||
Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
See LICENSE file for license details.
|
||
-->
|
||
|
||
<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> |