Advertisement
Guest User

data

a guest
Jul 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. echo "<tbody>";
  2. $totjml=0;
  3. $totnom=0;
  4. foreach ($data->message->row as $row) {
  5. $totjml=$totjml+$row->jml;
  6. $totnom=$totnom+$row->nominal;
  7. $nom =+ $row->nominal;
  8. $noms = "Rp. ".number_format($nom, 0, ',', '.');
  9. $tots = "Rp. ".number_format($totnom, 0, ',', '.');
  10. echo "<tr class='gradeX'>";
  11. echo "<td class='center'>$nomor</td>";
  12. echo "<td class='center'>$row->tgl</td>";
  13. echo "<td class='center'>$row->jam</td>";
  14. echo "<td>$row->nama</td>";
  15. echo "<td class='center'>$row->jml</td>";
  16. echo "<td class='center'>$noms</td>";
  17. echo "<td>$row->produk</td>";
  18. echo "<td>$row->ket</td>";
  19. echo "</tr>";
  20. $nomor++;
  21. }
  22. echo "</tbody>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement