Guest User

Untitled

a guest
Apr 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <div id="transactionPopup">
  2. <div id="osx-modal-title">Transactions</div>
  3. <div class="close"><a href="#" class="simplemodal-close">x</a></div>
  4. <div id="osx-modal-data">
  5. Here is all your past transactions.
  6. <br/><br/>
  7. <table style="border: 1px solid black; border-collapse:collapse;">
  8. <tr style="border: 1px solid black;">
  9. <td style="border: 1px solid black;">Transaction ID</td>
  10. <td>Amount</td>
  11. </tr>
  12. <?php
  13. $query = $sql->query("SELECT transactionID,amount FROM payment_log WHERE user_id=".$visitor->getUserId());
  14. $rowclass = 0;
  15. while ($row = $query->fetch())
  16. {
  17. ?>
  18. <tr class="row<?php echo $rowclass; ?>">
  19. <td style="border-right: 1px solid black;"><?php echo $row['transactionID']; ?></td>
  20. <td><?php echo $row['amount']; ?>$</td>
  21. </tr>
  22. <?php
  23. $rowclass = 1 - $rowclass;
  24. }
  25. ?>
  26. </table>
  27. </div>
  28. </div>
Add Comment
Please, Sign In to add comment