You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

1 week ago
  1. <#macro layout>
  2. <!DOCTYPE html>
  3. <html lang="zh-CN">
  4. <head>
  5. <meta charset="utf-8">
  6. <script src='http://127.0.0.1:8000/CLodopfuncs.js'></script>
  7. </head>
  8. <body>
  9. <#nested>
  10. <script>
  11. window.On_CLodop_Opened=function(){
  12. console.log("printer index: ${currentPrinter.seq}");
  13. console.log("printer name: ${currentPrinter.printName}");
  14. //LODOP.SET_LICENSES("","13F0BE8384627DC160918577C6284F11","","");
  15. LODOP.SET_LICENSES("","${clodoplisence}","","");
  16. //LODOP.SET_LICENSES("","646464550585055535859561289003","688858710010010811411756128900","");
  17. lodopReady && lodopReady();
  18. <#if currentPrinter.seq gte 0>
  19. LODOP.SET_PRINTER_INDEXA("${currentPrinter.printName}");
  20. //LODOP.PRINT_DESIGN();
  21. LODOP.PRINT();
  22. //LODOP.PREVIEW();
  23. <#elseif currentPrinter.seq == -1>
  24. LODOP.PREVIEW();
  25. <#elseif currentPrinter.seq == -2>
  26. LODOP.PRINT_DESIGN();
  27. </#if>
  28. window.On_CLodop_Opened=null;
  29. };
  30. </script>
  31. </body>
  32. </html>
  33. </#macro>