<?php
if($eleves_nb>0) {
	echo '<h3>'.FDIR_STATS_TIT30.DOTS.'</h3>';
	echo '<div id="pager1" class="pager1">
		<form>
			<i class="fas fa-fast-backward first"></i>
			<i class="fas fa-backward prev"></i>
			<!-- the "pagedisplay" can be any element, including an input -->
			<input type="text" class="pagedisplay inptxt"/>
			<i class="fas fa-forward next"></i>
			<i class="fas fa-fast-forward last"></i>
			<div class="box"><select class="pagesize">
				<option selected="selected"  value="15">15'.PERPAGE.'</option>
				<option value="30">30'.PERPAGE.'</option>
				<option  value="45">45'.PERPAGE.'</option>
				<option  value="60">60'.PERPAGE.'</option>
			</select></div>
		</form><br>
	</div>';
	$bctab1 = '<table><thead><tr><td colspan="4" style="text-align:center;">'.FDIR_STATS_TIT30.'<br>'.FROM2.' '.$affday1.' '.TO2.' '.$affday2.'</td></tr><tr><th>'.RANK.'</th><th>'.DIV.'</th><th>'.NAMECH2.'</th><th>'.FDIR_STATS_INF4.'</th></tr></thead><tbody>';
	echo '<table  cellspacing="1" class="tablesorter table1"><thead><tr><th>'.RANK.'</th><th>'.DIV.'</th><th>'.NAMECH2.'</th><th>'.FDIR_STATS_INF4.'</th></tr></thead><tbody>';
	$i=1;
	foreach($eleves as $eleves_info) {
		$bctab1 .= '<tr><td class="center">'.$i.'</td><td class="center">'.$eleves_info['division'].'</td><td>'.$eleves_info['nom'].' '.$eleves_info['prenom'].'</td><td class="center">'.$eleves_info['COUNT(eleves.eleves_id)'].'</td></tr>';
		echo '<tr><td class="center">'.$i.'</td><td class="center">'.$eleves_info['division'].'</td><td>'.$eleves_info['nom'].' '.$eleves_info['prenom'].'</td><td class="center">'.$eleves_info['COUNT(eleves.eleves_id)'].'</td></tr>';
		$i++;
	}
	$bctab1 .= '</tbody></table>';
	echo '</tbody></table>';
}
?>