Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/ecshopjcw/templates/ |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title></title> <meta name="robots" content="noindex, nofollow"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Cache-Control" content="public"> {insert_scripts files="../js/utils.js"} <style type="text/css"> body { background-color: #ffffff; padding: 0px; margin: 0px; text-align:left; } .table_box { table-layout: fixed; text-align:center; } .display_no { display:none; } </style> </head> <body id="print"> <!--打印区 start--> <!--打印区 end--> </body> </html> {if $print_part != 1} <script type="text/javascript"> <!-- onload = function() { _create_shipping_print(); } /** * 创建快递单打印内容 */ function _create_shipping_print() { //创建快递单 var print_bg = _create_print_bg(); //创建文本 var config_lable = '{$shipping.config_lable}'; var lable = config_lable.split("||,||"); if (lable.length <= 0) { return false; //未设置打印内容 } for (var i = 0; i < lable.length; i++) { //获取标签参数 var text = lable[i].split(","); if (text.length <= 0 || text[0] == null || typeof(text[0]) == "undefined" || text[0] == '') { continue; } text[4] -= 10; text[5] -= 10; _create_text_box(print_bg, text[0], text[1], text[2], text[3], text[4], text[5],text[7]); } } /** * 创建快递单背景 */ function _create_print_bg() { var print_bg = document.createElement('div'); print_bg.setAttribute('id', 'print_bg'); var print = document.getElementById('print'); print.appendChild(print_bg); //测试打印效果 //print_bg.style.background = '{$shipping.print_bg}'; //设置快递单样式 print_bg.style.width = '{$shipping.print_bg_size.width}px'; print_bg.style.height = '{$shipping.print_bg_size.height}px'; print_bg.style.zIndex = 1; print_bg.style.border = "solid 1px #FFF"; print_bg.style.padding = "0"; print_bg.style.position = "relative"; print_bg.style.margin = "0"; return print_bg; } /** * 创建快递单文本 */ function _create_text_box(print_bg, id, text_content, text_width, text_height, x, y, size) {//alert(id + '|' + text_content + '|' + text_width + '|' + text_height + '|' + x + '|' + y); var text_box = document.createElement('div'); //设置属性 text_box.setAttribute('id', id); print_bg.appendChild(text_box); //设置样式 text_box.style.width = text_width + "px"; text_box.style.height = text_height + "px"; text_box.style.border = "0"; text_box.style.padding = "0"; text_box.style.margin = "0 auto"; text_box.style.position = "absolute"; text_box.style.top = y + "px"; text_box.style.left = x + "px"; text_box.style.wordBreak = 'break-all'; //内容自动换行 严格断字 text_box.style.textAlign = 'left'; text_box.style.fontSize = size +"px"; //赋值 text_box.innerHTML = text_content; return true; } //--> </script> {/if}