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

3 days 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: ${currentPrinterIndex}");
  13. console.log("printer name: ${currentPrinterName}");
  14. LODOP.SET_LICENSES("","${clodoplisence}","","");
  15. console.log("clodoplisence: ${clodoplisence}");
  16. // LODOP.SET_LICENSES("","13F0BE8384627DC160918577C6284F11","","");
  17. //LODOP.SET_LICENSES("","646464550585055535859561289003","688858710010010811411756128900","");
  18. lodopReady && lodopReady();
  19. <#if currentPrinterIndex gte 0>
  20. LODOP.SET_PRINTER_INDEXA("${currentPrinterName}");
  21. LODOP.PRINT();
  22. <#elseif currentPrinterIndex == -1>
  23. LODOP.PREVIEW();
  24. // LODOP.PRINT_DESIGN();
  25. <#elseif currentPrinterIndex == -2>
  26. LODOP.PRINT_DESIGN();
  27. </#if>
  28. window.On_CLodop_Opened=null;
  29. };
  30. </script>
  31. </body>
  32. </html>
  33. </#macro>