bids.phtml 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @version 7.7
  4. */
  5. if ($listing->countDependentRowset('\Ppb\Db\Table\Bids') > 0) {
  6. $bids = $listing->getBids();
  7. ?>
  8. <table class="table table-striped">
  9. <thead>
  10. <tr>
  11. <th><?php echo $this->_('Bidder'); ?></th>
  12. <th><?php echo $this->_('Amount'); ?></th>
  13. <th><?php echo $this->_('Date'); ?></th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. <?php foreach ($bids as $bid) { ?>
  18. <tr <?php echo (!$bid['outbid']) ? 'class="success"' : ''; ?>>
  19. <td><?php echo $this->userDetails()->setUser($bid->findParentRow('\Ppb\Db\Table\Users'))->display($listing['private_auction']); ?></td>
  20. <td><?php echo $this->amount($bid['amount'], $listing['currency']); ?></td>
  21. <td><?php echo $this->date($bid['created_at']); ?></td>
  22. </tr>
  23. <?php } ?>
  24. </tbody>
  25. </table>
  26. <?php }
  27. else { ?>
  28. <div>
  29. <?php echo $this->_('The listing has no bids.'); ?>
  30. </div>
  31. <?php } ?>