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.

163 lines
3.8 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>::_("Attendance sheet")::</title>
  6. <link href="/css/print.css" rel="stylesheet"/>
  7. </head>
  8. <body>
  9. <!-- page head-->
  10. ::fill head::
  11. <td >
  12. <h1 style='text-align:right;'>::user._amap.name::</h1>
  13. <h2 style='text-align:right;'>::_("Delivery of the"):: ::hDate(date)::</h2>
  14. </td>
  15. ::end::
  16. <!-- table header -->
  17. ::fill tableHeader::
  18. <tr>
  19. <th>::_("Qty")::</th>
  20. <th>::_("Product")::</th>
  21. <th>::_("U.P.")::</th>
  22. <th>::_("Fees")::</th>
  23. <th>::_("Total")::</th>
  24. <th>::_("Signature")::</th>
  25. </tr>
  26. ::end::
  27. ::set name = ""::
  28. ::set name2 = ""::
  29. ::set total = 0::
  30. ::set productNum = 0::
  31. ::foreach m orders::
  32. ::if m.userName != name || m.userName2 != name2::
  33. ::if name != ""::
  34. ::raw "</table> <hr />"::
  35. ::end::
  36. ::raw "<table style='width:100%;'>" ::
  37. <tr>
  38. <td style='width:33%;'>
  39. <b style="font-size:150%;">
  40. ::set basket = getBasket(m.userId,place.id,date)::
  41. <span ::cond basket!=null::>::_("Num"):: ::basket.num:: - </span>
  42. ::m.userName::
  43. </b>
  44. ::set total = 0::
  45. ::set productNum = 0::
  46. </td>
  47. <td>
  48. ::set u = getUser(m.userId):
  49. ::if u!=null && u.phone!=null::
  50. Tél: $$nullSafe(::u.phone::)
  51. ::end::
  52. </td>
  53. <td style='text-align:right;'>
  54. <b>::user._amap.name::</b>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td>
  59. ::if m.userName2 != null::
  60. ::_("alternately with")::<br/>
  61. <b>::m.userName2::</b>
  62. ::set total = 0::
  63. ::set productNum = 0::
  64. ::end::
  65. </td>
  66. <td>
  67. ::if m.userName2 != null::
  68. ::set u = getUser(m.userId2):
  69. ::if u !=null::
  70. $$nullSafe(::u.phone::)
  71. ::end::
  72. ::end::
  73. </td>
  74. <td style='text-align:right;'>
  75. <b>::_("Delivery of the"):: ::hDate(date)::</b>
  76. </td>
  77. </tr>
  78. ::raw "</table>" ::
  79. ::raw "<table style='width:100%;'>"::
  80. ::raw tableHeader::
  81. ::end::
  82. ::if m.userName != name || m.userName2 != name2::
  83. ::set class="name"::
  84. ::else::
  85. ::set class=""::
  86. ::end::
  87. <tr class="::class::">
  88. <td style="font-size: ::fontRatio::%;border-bottom: 2px solid #AAA;">
  89. ::if(m.quantity==0 && m.canceled)::
  90. ::_("Canceled")::
  91. ::else::
  92. ::raw m.smartQt::
  93. ::end::
  94. ::set productNum = productNum+m.quantity::
  95. </td>
  96. <td style="font-size: ::fontRatio::%;border-bottom: 2px solid #AAA;">
  97. ::m.productName::
  98. </td>
  99. <td>
  100. ::formatNum(m.productPrice)::&nbsp;::currency()::
  101. </td>
  102. <td>
  103. ::if m.fees!=null::
  104. ::formatNum(m.fees)::&nbsp;::currency()::
  105. ::end::
  106. </td>
  107. <td>
  108. ::formatNum(m.total)::&nbsp;::currency()::
  109. ::set total = total + m.total::
  110. </td>
  111. <td style="width:20%;"></td>
  112. </tr>
  113. ::set name = m.userName ::
  114. ::set name2 = m.userName2 ::
  115. <!--TOTAL-->
  116. ::set next = orders[repeat.m.index+1]::
  117. ::if next==null || next.userName!=name || next.userName2!=name2::
  118. <tr>
  119. <td class="total">::formatNum(productNum)::</td>
  120. <td class="total" colspan="2"></td>
  121. <td class="total">::_("TOTAL")::</td>
  122. <td class="total" style="font-size: ::fontRatio::%;">::formatNum(total)::&nbsp;::currency()::</td>
  123. <td></td>
  124. </tr>
  125. ::end::
  126. ::end::
  127. <p>::raw nl2br(user.getAmap().txtDistrib)::</p>
  128. <p class="hidden"><i>::_("Push on \"Control + P\" to print this page.")::</i></p>
  129. <table class="" ::cond sqlLog::>
  130. ::foreach r sqlLog::
  131. <tr ::attr class if(r.bad) 'badSql'::>
  132. <td>::r.t::ms</td>
  133. <td>::r.length::</td>
  134. <td><a href="#" onclick="javascript:alert('::r.explain::');return false;">Exp</a></td>
  135. <td><a href="#" onclick="javascript:alert('::r.stack::');return false;">Stack</a></td>
  136. <td>::r.sql::</td>
  137. </tr>
  138. ::end::
  139. </table>
  140. </body>
  141. </html>