mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-22 10:25:35 +08:00
41 lines
1.5 KiB
HTML
41 lines
1.5 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.
|
||
-->
|
||
|
||
<div style=" margin:10px;">
|
||
<div class="notice">
|
||
<strong><{t}>注意:<{/t}></strong><{t}>扫描图片分辨率请调整为 96 dpi,图片格式 jpg<{/t}>
|
||
</div>
|
||
<form id="form1" enctype="multipart/form-data" action="index.php?app=logisticsmanager&ctl=admin_express_template&act=doUploadBg" method="post">
|
||
<{input type="sfile" id="f1" name="background" f_type="public"}>
|
||
<input name="dly_printer_id" type="hidden" value="<{$dly_printer_id}>" />
|
||
<{button label="上传" type="submit" id="btn-upload"}>
|
||
</form>
|
||
</div>
|
||
|
||
<script>
|
||
(function(){
|
||
$('btn-upload').addEvent('click',function(){return check();});
|
||
|
||
function check(){
|
||
var aaa = $(document.body).getElement("input[name=background]");
|
||
if (aaa.value == ''){
|
||
alert("请选择图片");
|
||
return false;
|
||
}
|
||
return true;
|
||
}
|
||
})()
|
||
</script> |