<?php if (count($promotions)>0) { ?>
<div class="infoBoxWrapper specials box2">
						<div id="offre">
						<img src="<?php echo URL::base();?>media/images/produits/etat/promotiona.png" alt="" />
						</div>
<div class="box_wrapper">

            	<div id="encart_promotions" class="" style="overflow: hidden">
                    <ul > 
						<?php foreach ($promotions as $promotion) : ?>
						<li style=" display: list-item; height="100%";">
							   <div class="infoBoxContents hover">
		<div class="pic_padd wrapper_pic_div" style="width:145px;height:145px;">
							  <?php
							  if (file_exists(APPPATH.'/../media/images/produits/'.$promotion['id'].'.png'))  
										{  echo '<a class="prods_pic_bg" href="'.URL::base().'page/detail/'.$promotion['id'].'"> <img src="'.URL::base().'media/images/produits/'.$promotion['id'].'.png " alt="" ></a>'; }  
										else 
										{ 
										 echo '<a href="'.URL::base().'page/detail/'.$promotion['id'].'"> <img src="'.URL::base().'media/images/produits/x.png " alt="'.$promotion['libelle'].'" ></a>'; 
										} ?>
</div>
		<div class="box-padd">
			<div class="name name_padd"><span><a href="#"><?php echo $promotion['libelle'];?></a></span></div>
			<div class="price price_padd"><b>Prix:&nbsp;&nbsp;</b><span class="productSpecialPrice"><?php if($promotion['prix']!=NULL){ ?>
									<?php echo $promotion['prix'];?>
									<?php }else { ?>
									<?php echo '---';?>


									<?php } ?>
									
									
									DA</span></div>
			<div class="button"><strong class="button_content button_content2"><strong class="button bg_button"><!--<strong class="button-t">
			<a href="#" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-secondary" role="button"><span class="ui-button-icon-primary ui-icon ui-icon-cart"></span>
			<span class="ui-button-text">Ajouter</span></a></strong>--></strong></strong></div>
			<div class="button2"><strong class="button_content button_content22"><strong class="button bg_button">
			<strong class="button-t"><a href="<?php echo URL::site('/page/detail/'.$promotion['id'].''); ?>" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-secondary" role="button"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-e"></span><span class="ui-button-text">Details</span></a></strong></strong></strong></div>
		</div>

</div>				
						</li>
						<?php endforeach; ?>
                    </ul>
                </div>
</div>
</div>

<?php  } ?>