Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wyświetlanie w jednej linii
lefi
post
Post #1





Grupa: Zarejestrowani
Postów: 34
Pomógł: 0
Dołączył: 14.01.2008

Ostrzeżenie: (0%)
-----


Witam, mój kod wyświetla elementy jeden pod drugim a chciałbym je mieć w linii (obok siebie).

Wygląda to tak:

  1. <?php
  2. $_product = $this->getProduct();
  3. $_attributes = Mage::helper('core')->decorateArray($this->getAllowAttributes());
  4. ?>
  5. <?php if ($_product->isSaleable() && count($_attributes)):?>
  6. <dl>
  7. <?php foreach($_attributes as $_attribute): ?>
  8. <dt><label><?php echo $_attribute->getLabel() ?><span class="required">&nbsp;*</span></label></dt>
  9. <dd<?php if ($_attribute->decoratedIsLast){?> class="last"<?php }?>>
  10. <select name="super_attribute[<?php echo $_attribute->getAttributeId() ?>]" id="attribute<?php echo $_attribute->getAttributeId() ?>" class="required-entry super-attribute-select">
  11. <option><?php echo $this->__('Choose an Option...') ?></option>
  12. </select>
  13. </dd>
  14. <?php endforeach; ?>
  15. </dl>
  16. <script type="text/javascript">
  17. var spConfig = new Product.Config(<?php echo $this->getJsonConfig() ?>);
  18. </script>
  19. <?php endif;?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 02:46