Files
OMS/app/omecsv/view/common/import.html
2026-01-04 19:08:31 +08:00

67 lines
2.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 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.
-->
<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">&nbsp;</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>