1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <ul id="menuProduit" class="clearfix">
<?php foreach ($categorie as $key => $cat): ?>
<li <?php if($key==0){ echo ' class="active"';}?>>
<div><img src="/images/<?php echo $cat->getNameImg($cat->getName()); ?>.jpg" title="<?php echo $cat->getName() ?>" alt="<?php echo $cat->getName() ?>"/></div><?php echo $cat->getName()?>
</li>
<?php endforeach;?>
</ul>
<ul id="listProduit">
<?php foreach ($categorie as $key => $cat): ?>
<li>
<?php
$objet=Doctrine_Core::getTable('Categorie')->getElement($cat->getId());
foreach($objet as $cat2):?>
<ul class="article">
<li class="header">
<ul class="clearfix">
<li class="titre"><?php echo $cat2->getName().$cat2->getId();?></li>
<li>Prix unitaire</li>
<li class="quantite">Quantite</li>
</ul>
</li>
<?php include_partial('services/index' , array('articles' => Doctrine_Core::getTable('Article')->getArticleCat($cat2->getId())));?>
</ul>
<?php endforeach;?>
</li>
<?php endforeach;?>
</ul><!-- fin listProduit--> |
Partager