Bonjour tout le monde,
J'ai un problème d'un tableau qui se répète entièrement en boucle. je voudrais sortir fin tableau ! comment faire s'il vous plait ? merci d'avance
le lien : https://www.medika.ma/medicamenta
le code appliquer dans le tableau :
J'ai un problème d'un tableau qui se répète entièrement en boucle. je voudrais sortir fin tableau ! comment faire s'il vous plait ? merci d'avance
le lien : https://www.medika.ma/medicamenta
le code appliquer dans le tableau :
Code:
<div class="itemContainer1 itemContainerLast" style="width:100.0%;">
<div class="responsive rt">
<table>
<thead>
<tr>
<th>Nom</th>
<th>Prix</th>
<th>Remboursement</th>
<th>Disponibilité</th>
</tr>
</thead>
<tbody>
<?php foreach($this->leading as $this->item): ?>
<tr>
<td width="50%">
<?php if(isset($this->item->editLink)): ?>
<!-- Item edit link -->
<span class="catItemEditLink">
<a data-k2-modal="edit" href="<?php echo $this->item->editLink; ?>">
<?php echo JText::_('K2_EDIT_ITEM'); ?>
</a>
</span>
<?php endif; ?>
<h5 class="catItemView">
<?php if ($this->item->params->get('catItemTitleLinked')): ?>
<a href="<?php echo $this->item->link; ?>"><?php echo $this->item->title; ?></a>
<?php else: ?>
<?php echo $this->item->title; ?>
<?php endif; ?>
</h5>
</td>
<td width="20%"> <li><?php echo $this->item->extraFields->PPVDh->value ;?><?php echo $this->item->extraFields->Tlephone->value ;?></li> </td>
<td width="30%" align="center"> <li><?php echo $this->item->extraFields->Remboursement->value ;?><?php echo $this->item->extraFields->PVC->value ;?><?php echo $this->item->extraFields->Ville->value ;?></li></td>
<td width="30%" align="center"> <li><?php echo $this->item->extraFields->Disp->value ;?></li> </td>
</ul>
</tr>
<?php
endforeach;
?>
</tbody>
</table>
</div>
</div>





Commentaire