success.phtml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * @version 7.10 [rev.7.10.01]
  4. */
  5. /* @var \Ppb\Db\Table\Row\Listing $listing */
  6. /** @var \Ppb\Db\Table\Row\User $seller */
  7. $seller = $listing->findParentRow('\Ppb\Db\Table\Users');
  8. ?>
  9. <div class="pull-right">
  10. <a href="<?php echo $this->url($listing->link()); ?>" class="btn btn-default">
  11. <?php echo $this->_('Return to Listing'); ?>
  12. </a>
  13. </div>
  14. <dl class="dl-horizontal">
  15. <dt><?php echo $this->_('Name'); ?></dt>
  16. <dd><?php echo $listing['name']; ?></dd>
  17. <?php if ($this->type == 'buy') { ?>
  18. <dt><?php echo $this->_('Price'); ?></dt>
  19. <dd><?php echo $this->amount($listing['buyout_price'], $listing['currency']); ?></dd>
  20. <dt><?php echo $this->_('Quantity Available'); ?></dt>
  21. <dd><?php echo $listing['quantity']; ?></dd>
  22. <?php } ?>
  23. <?php if ($this->type == 'bid') { ?>
  24. <dt><?php echo $this->_('Current Bid'); ?></dt>
  25. <dd><?php echo $this->amount($listing->currentBid(true), $listing['currency']); ?></dd>
  26. <dt><?php echo $this->_('Bids'); ?></dt>
  27. <dd><?php echo $listing->countDependentRowset('\Ppb\Db\Table\Bids'); ?></dd>
  28. <?php } ?>
  29. <?php if ($this->type == 'offer') { ?>
  30. <?php if ($seller->displayMakeOfferRanges()) { ?>
  31. <dt><?php echo $this->_('Offer Range'); ?></dt>
  32. <dd><?php echo $this->offerRanges($listing); ?></dd>
  33. <?php } ?>
  34. <?php } ?>
  35. <dt><?php echo $this->_('Payment Methods'); ?></dt>
  36. <dd><?php echo $this->fieldDisplay(array_map(function ($array) {
  37. return $array['name'];
  38. }, $listing->getPaymentMethods()), null, $this->_('n/a')); ?></dd>
  39. </dl>
  40. <?php if (!empty($message)) { ?>
  41. <blockquote class="bq bq-success">
  42. <?php echo $this->_($message); ?>
  43. </blockquote>
  44. <?php } ?>