		<!-- partners box -->
			<div class="clients-section">
				<div class="container">
					<h3>Nos références </h3>
					<div id="carousel-example-generic2" class="carousel slide" data-ride="carousel">

						<!-- Wrapper for slides -->
						<div class="carousel-inner">
<?php 
$count=0;
foreach ($partenaires as $partenaire) : 

       IF (($count % 5)== 0 ) {
	   
			echo '<div class="item'; if ($count==0){echo ' active';}  echo '">
				<ul class="partner-list">'; } ?>
							

								    
									<li>
									<?php if (file_exists(APPPATH.'/../media/images/partenaires/'.$partenaire['id'].'.png')) 
	{  echo '<img src="'.URL::base().'media/images/partenaires/'.$partenaire['id'].'.png"    />'; }
	else 
	 {echo '<img src="'.URL::base().'media/images/partenaires/x.png"      />'; } ?> </li>
								
<?php 
 IF (($count % 5)== 4 OR (count($partenaires)==$count+1)) {

	        echo '</ul>
							</div>';
							}
$count=$count+1;

endforeach; ?>

						</div>

						<!-- Controls -->
						<a class="left carousel-control" href="#carousel-example-generic2" data-slide="prev"></a>
						<a class="right carousel-control" href="#carousel-example-generic2" data-slide="next"></a>
					</div>
					
				</div>
			</div>


			