fadlyshafa

Untitled

Jun 26th, 2020
260
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $head = array('ORIGINAL', 'COPY', 'COPY', 'COPY', "EXTRA");
  3. for ($x=1; $x <= 5 ; $x++) { ?>
  4.  
  5. <table width="100%" border="1" cellspacing="0" style="font-size: 9pt; border-collapse: collapse;">
  6. <tr>
  7. <td colspan="4" width="30%" style="font-size: 12pt; font-weight: bold"><i>&nbsp;<sup>Date. </sup></i>&nbsp; &nbsp; &nbsp;<b><?php echo date('d')."-".date('m')."-".date('Y'); ?></b></td>
  8. <td align="center" colspan="4" valign="middle" style="font-weight: bold; font-style: italic;"><h3>- Delivery Order -</h3></td>
  9. <td colspan="4" width="30%" style="font-size: 12pt; font-weight: bold;"><i>&nbsp;<sup>No. </sup></i> &nbsp; &nbsp; &nbsp;<?php echo $salesorder; ?></td>
  10. <td colspan="1" width="10%">
  11. <center>
  12. <font style="font-size:24px"><?= $x ?></font>
  13. <h5><?= $head[$x-1] ?></h5>
  14. </center>
  15. </td>
  16. </tr>
  17. </table>
  18. <table cellspacing="0" style="border-collapse: collapse;" width="100%">
  19. <tr>
  20. <td style="border-left: 1px solid black; border-right: 1px solid black;" width="50%">
  21. <table>
  22. <tr>
  23. <td valign="top" style="font-size: 14pt"><sup><i>Customer</i></sup></td>
  24. <td style="font-size: 10pt">
  25. <b><?= $customer[0]->customer_name ?></b><br>
  26. <p>
  27. <?= $customer[0]->address.' '. $customer[0]->jalan; ?>
  28. <?php if ($customer[0]->rt != null) { ?>
  29. <?= ' RT ' . $customer[0]->rt . ' RW ' .$customer[0]->rw; ?><br />
  30. <?php } ?>
  31. <?php if ($customer[0]->rw != null) { ?>
  32. <?=' RW ' .$customer[0]->rw; ?>
  33. <?php } ?><br />
  34. <?= $customer[0]->ciname . ' ' . $customer[0]->postal_code . ' ' . $customer[0]->coname ?><br>
  35. <?= $customer[0]->mobile. ' ' . $customer[0]->fax ?>
  36. </p>
  37. </td>
  38. </tr>
  39. </table>
  40. </td>
  41. <td valign="top" style="border-right: 1px solid black;" width="50%">
  42. <table style="font-size: 10pt">
  43. <tr>
  44. <td valign="top" style="font-size: 14pt"><sup><i>Inf.</i></sup></td>
  45. <td>Acct. No</td>
  46. <td>:</td>
  47. <td></td>
  48. </tr>
  49. <tr>
  50. <td></td>
  51. <td>Attn</td>
  52. <td>:</td>
  53. <td></td>
  54. </tr>
  55. </table>
  56. </td>
  57. </tr>
  58.  
  59. <tr>
  60. <td style="border-left: 1px solid black; border-top: 1px solid black; border-right: 1px solid black;">
  61. <table style="font-size: 10pt">
  62. <tr>
  63. <td valign="top" style="font-size: 14pt"><sup><i>Sales Ref</i></sup></td>
  64. <td>No</td>
  65. <td>:</td>
  66. <td></td>
  67. </tr>
  68. <tr>
  69. <td></td>
  70. <td>Date</td>
  71. <td>:</td>
  72. <td></td>
  73. </tr>
  74. </table>
  75. </td>
  76. <td valign="top" style="border-right: 1px solid black; border-top: 1px solid black;">
  77. <table style="font-size: 10pt">
  78. <tr>
  79. <td valign="top" style="font-size: 14pt"><sup><i>PO Ref</i></sup></td>
  80. <td>No</td>
  81. <td>:</td>
  82. <td></td>
  83. </tr>
  84. <tr>
  85. <td></td>
  86. <td>Date</td>
  87. <td>:</td>
  88. <td></td>
  89. </tr>
  90. </table>
  91. </td>
  92. </tr>
  93.  
  94. </table>
  95.  
  96.  
  97. <table width="100%" style="border-collapse:collapse" border="1">
  98. <tr align="center">
  99. <td><i>Item No</i></td>
  100. <td><i>Stock Code</i></td>
  101. <td><i>Description</i></td>
  102. <td><i>Unit</i></td>
  103. <td><i>Qty</i></td>
  104. <td><i>Dimension</i></td>
  105. <td><i>Box No</i></td>
  106.  
  107. </tr>
  108.  
  109. <?php
  110. $baris = 28;
  111. for($i=0;$i<$no;$i++){
  112.  
  113. ?>
  114.  
  115. <tr align="center">
  116. <td><?php echo $i + 1; ?></td>
  117. <td><?php echo $cum_code[$i]; ?></td>
  118. <td><?php echo $cum_name[$i]; ?></td>
  119. <td><?php echo $cum_unit[$i]; ?></td>
  120. <td><?php echo $cum_qty[$i]; ?></td>
  121. <td><?php echo $cum_dimension[$i]; ?></td>
  122. <td><?php echo $cum_box[$i]; ?></td>
  123. </tr>
  124.  
  125. <?php
  126. $baris = $baris - 1;
  127. }
  128. ?>
  129.  
  130. <?php
  131. for($k=0;$k<$baris;$k++)
  132. {
  133. ?>
  134. <tr align="center">
  135. <td>&nbsp;</td>
  136. <td>&nbsp;</td>
  137. <td>&nbsp;</td>
  138. <td>&nbsp;</td>
  139. <td>&nbsp;</td>
  140. <td>&nbsp;</td>
  141. <td>&nbsp;</td>
  142. </tr>
  143. <?php
  144. }
  145. ?>
  146. <tr align="center">
  147. <td>&nbsp;</td>
  148. <td>&nbsp;</td>
  149. <td>CODE : <?= $box_code ?></td>
  150. <td>&nbsp;</td>
  151. <td>&nbsp;</td>
  152. <td>&nbsp;</td>
  153. <td>&nbsp;</td>
  154. </tr>
  155. <tr align="center">
  156. <td>&nbsp;</td>
  157. <td>&nbsp;</td>
  158. <td><?= $box_length . "cm X " . $box_wide . "cm X " . $box_height . "cm" ?></td>
  159. <td>&nbsp;</td>
  160. <td>&nbsp;</td>
  161. <td>&nbsp;</td>
  162. <td>&nbsp;</td>
  163. </tr>
  164. <tr>
  165. <td colspan="7" style="padding-top: 10px; padding-bottom: 10px">
  166. <center>Total Package : <?= $total_box ?> Box[es] = <?= $total_weight ?> kg[s]</center>
  167. </td>
  168. </tr>
  169. </table>
  170.  
  171. <table width="100%" style="border-collapse:collapse" border="1">
  172. <tr>
  173. <td width="35%">
  174. <i><small><center>Customer Name, Sign and Stamp Company
  175. <br><br><br><br><br><br><br>
  176. Name : (<?php echo $customer_name; ?>)
  177. </center>
  178. </small>
  179. </td>
  180. <td width="35%" valign="top">
  181. <small><center>Despatched By
  182. <br><br><br><br><br><br><br>
  183. Name : (&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)
  184. </center></small>
  185. </td>
  186. <td width="20%" valign="top">
  187. <small><center>
  188. Warehouse
  189. <br><br><br><br><br><br><br>
  190. <?php echo $warehouse_staff; ?>
  191. </center>
  192. </small>
  193. </td>
  194. <td width="10%"><img src="<?= base_url('/assets/images/logottm9.jpg') ?>" height="124px"></td>
  195. </tr>
  196. </table>
  197.  
  198.  
  199. <?php if ($x != 5) { ?>
  200. <pagebreak page-break-type="slice" />
  201. <?php } } ?>
RAW Paste Data