order.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {include file="public/header" /}
  2. <body class="gray-bg">
  3. <div class="layui-fluid layui-col-xs12">
  4. <div class="layui-card">
  5. <div class="layui-card-header">打印订单</div>
  6. <div class="layui-card-body layui-form">
  7. <div id="print">
  8. <table class="layui-table">
  9. <colgroup>
  10. <col width="150">
  11. <col width="150">
  12. <col width="200">
  13. <col>
  14. </colgroup>
  15. <thead>
  16. <tr>
  17. <th>人物</th>
  18. <th>民族</th>
  19. <th>出场时间</th>
  20. <th>格言</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <tr>
  25. <td><img src="/uploads/face/20181116/63a0f7d99db522e14873f9b0b4e7ff85.png" alt=""></td>
  26. <td><span class="zzz">汉族</span></td>
  27. <td>1989-10-14</td>
  28. <td>人生似修行</td>
  29. </tr>
  30. <tr>
  31. <td>张爱玲</td>
  32. <td>汉族</td>
  33. <td>1920-09-30</td>
  34. <td>于千万人之中遇见你所遇见的人,于千万年之中,时间的无涯的荒野里…</td>
  35. </tr>
  36. <tr>
  37. <td>Helen Keller</td>
  38. <td>拉丁美裔</td>
  39. <td>1880-06-27</td>
  40. <td> Life is either a daring adventure or nothing.</td>
  41. </tr>
  42. <tr>
  43. <td>岳飞</td>
  44. <td>汉族</td>
  45. <td>1103-北宋崇宁二年</td>
  46. <td>教科书再滥改,也抹不去“民族英雄”的事实</td>
  47. </tr>
  48. <tr>
  49. <td>孟子</td>
  50. <td>华夏族(汉族)</td>
  51. <td>公元前-372年</td>
  52. <td>猿强,则国强。国强,则猿更强! </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. <div class="layui-form-item">
  57. <label class="layui-form-label">TableSelect</label>
  58. <div class="layui-input-block">
  59. <input type="text" class="layui-input" name="title" lay-verify="required" placeholder="文章标题" value="1,3,5,7,9,11,13,14" >
  60. </div>
  61. </div>
  62. </div>
  63. <div class="layui-row layui-col-space10 layui-form-item ">
  64. <div class="layui-form-item layui-col-xs-offset1 layui-col-xs8">
  65. <div class="layui-input-block">
  66. <button class="layui-btn" onclick="wk.lay_print({obj:'#print'})">打印</button>
  67. <button class="layui-btn layui-btn-primary" onclick="wk.layer_close()">关闭</button>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. {include file="public/footer" /}
  75. <script>
  76. // function test(){
  77. // // $.print();
  78. // $('#print').print({
  79. // globalStyles : true,//是否启用自身样式
  80. // mediaPrint : false,
  81. // stylesheet : null,//外部样式链接
  82. // iframe : true,
  83. // noPrintSelector : ".avoid-this",//不打印什么元素,支持多个属性逗号连接
  84. // prepend : null,//头部添加内容,支持html
  85. // append : null,//尾部添加内容,支持html
  86. // //打印完成回调
  87. // deferred : $.Deferred().done(function() {
  88. // console.log('Printing done', arguments);
  89. // })
  90. // });
  91. // }
  92. </script>
  93. </body>
  94. </html>