index.phtml 920 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * @version 7.6
  4. */
  5. /* @var int $id
  6. * @var array $multiOptions
  7. * @var \Ppb\Db\Table\Row\Sale $sale
  8. */
  9. $quantities = array();
  10. $listingIds = array();
  11. if (count($multiOptions) > 1) {
  12. ?>
  13. <nav class="navbar navbar-filter">
  14. <form class="pull-right" action="" method="get">
  15. <div class="form-group">
  16. <?php echo $this->formElement('select', 'id', $id)
  17. ->setAttributes(array(
  18. 'class' => 'form-control input-medium',
  19. 'onchange' => 'this.form.submit();'))
  20. ->setMultiOptions($multiOptions)
  21. ->render();
  22. ?>
  23. </div>
  24. </form>
  25. </nav>
  26. <?php } ?>
  27. <?php if ($id) {
  28. echo $this->form;
  29. }
  30. else {
  31. ?>
  32. <p class="text-center">
  33. <?php echo $this->_('The shopping cart is empty.'); ?>
  34. </p>
  35. <?php } ?>