Files
OMS/app/console/view/admin/stock/import.html
2025-12-28 23:13:25 +08:00

36 lines
1.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--
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>