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.

115 lines
2.6 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. <h1>::user._amap.name::</h1>
  10. <h2>Livraison du ::hDate(date)::</h2>
  11. <table style="width:100%;">
  12. ::set name = ""::
  13. ::set name2 = ""::
  14. ::set total = 0::
  15. ::set productNum = 0::
  16. <tr style="font-size:120%">
  17. <th>::_("Name")::</th>
  18. <th>::_("Contact details")::</th>
  19. <th>::_("Qty")::</th>
  20. <th>::_("Product")::</th>
  21. <th>::_("Signature")::</th>
  22. </tr>
  23. ::foreach m orders::
  24. ::if m.userName != name || m.userName2 != name2::
  25. ::set class="name"::
  26. ::else::
  27. ::set class=""::
  28. ::end::
  29. <tr class="::class::">
  30. <td style="font-size:120%">
  31. ::if m.userName != name || m.userName2 != name2::
  32. <b>
  33. ::set basket = getBasket(m.userId,place.id,date)::
  34. <span ::cond basket!=null::>N°::basket.num:: - </span>
  35. ::m.userName::
  36. </b>
  37. ::if m.userName2 != null::
  38. <br />::_("alternately with"):: <b>::m.userName2::</b>
  39. ::end::
  40. ::set total = 0::
  41. ::set productNum = 0::
  42. ::end::
  43. </td>
  44. <td>
  45. ::if m.userName != name || m.userName2 != name2::
  46. ::set u = getUser(m.userId):
  47. ::if u !=null::
  48. $$nullSafe(::u.phone::)
  49. ::end::
  50. ::if m.userName2 != null::
  51. ::set u = getUser(m.userId2):
  52. ::if u !=null::
  53. <br />$$nullSafe(::u.phone::)
  54. ::end::
  55. ::end::
  56. ::end::
  57. </td>
  58. ::set name = m.userName ::
  59. ::set name2 = m.userName2 ::
  60. <td>
  61. ::if(m.quantity==0 && m.canceled)::
  62. ::_("Canceled")::
  63. ::else::
  64. ::raw m.smartQt::
  65. ::end::
  66. ::set productNum = productNum+m.quantity::
  67. </td>
  68. <td>
  69. ::m.productName::
  70. </td>
  71. <td style="width:20%;"></td>
  72. </tr>
  73. ::set next = orders[repeat.m.index+1]::
  74. ::end::
  75. </table>
  76. <p>::raw nl2br(user.getAmap().txtDistrib)::</p>
  77. <p class="hidden">
  78. <i>::_("Push on \"Control + P\" to print this page.")::</i>
  79. </p>
  80. <table class="" ::cond sqlLog::>
  81. ::foreach r sqlLog::
  82. <tr ::attr class if(r.bad) 'badSql'::>
  83. <td>::r.t::ms</td>
  84. <td>::r.length::</td>
  85. <td><a href="#" onclick="javascript:alert('::r.explain::');return false;">Exp</a></td>
  86. <td><a href="#" onclick="javascript:alert('::r.stack::');return false;">Stack</a></td>
  87. <td>::r.sql::</td>
  88. </tr>
  89. ::end::
  90. </table>
  91. </body>
  92. </html>