mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
56 lines
1.9 KiB
HTML
56 lines
1.9 KiB
HTML
<!--
|
||
Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
See LICENSE file for license details.
|
||
-->
|
||
|
||
<style type="text/css">
|
||
.gridlist tr th{width: 100px;height: 30px;text-align: right;}
|
||
</style>
|
||
<form action='<{if $thisUrl}><{$thisUrl}><{else}>index.php?app=omecsv&ctl=admin_to_import&act=treat<{/if}>&ctler=<{$ctler}>&add=<{$add}>&finder_id=<{$env.get.finder_id}>' method='post' target="uploadframe" enctype="multipart/form-data" id="import_form" class="tableform">
|
||
<h4><{t}>上传文件,支持(
|
||
<span style ='color:red;font-size:16px;'>.csv</span>、
|
||
<span style='color:red;font-size:16px;'>.xls</span>、
|
||
<span style='color:red;font-size:16px;'>.xlsx</span>)格式!<{/t}>
|
||
</h4>
|
||
<div class="division" >
|
||
<table border="0" cellspacing="0" class="gridlist" cellpadding="0">
|
||
<{foreach from=$import_input item=item key=key}>
|
||
<tr>
|
||
<th><{$item.label}>:</th>
|
||
<td><{$item.input}></td>
|
||
</tr>
|
||
<{/foreach}>
|
||
<tr>
|
||
<th>导入文件:</th>
|
||
<td>
|
||
<input type='file' name='import_file' id='ImportCSV'/>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<{toinput from=$data}>
|
||
</div>
|
||
<div class="table-action">
|
||
<{button label=$___desktop="导入"|t:'desktop' id="ImportBtn" type="submit" }>
|
||
</div>
|
||
<div style="margin-left: 5px;" id="processNotice">
|
||
需验证 <span id="total">0</span> 条,已验证 <span id="iTotal" style="color:#083E96">0</span> 条。
|
||
</div>
|
||
<div id="processBarBg" class="processBarBg"><div class="processBar" id="processBar"> </div></div>
|
||
<div><span id="iMsg" style="color:red"></span></div>
|
||
</form>
|
||
<script>
|
||
(function(){
|
||
var state;
|
||
$('ImportBtn').addEvent('click',function(e){
|
||
if(state||!$('ImportCSV').value.length)return false;
|
||
state=true;
|
||
this.style.cursor='not-allowed';
|
||
});
|
||
$('ImportCSV').addEvent('change',function(e){
|
||
state=false;
|
||
$('ImportBtn').style.cursor='pointer';
|
||
});
|
||
|
||
})();
|
||
</script>
|