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 29 30 31 32
|
foreach($aboneOptions as $abone=>$options)
{
// on affiche l'abonne
echo"<tr><td nowrap align=\"center\"><font size =2color=\"white\">".$abone."";
$j=0;
$cpt_true=0; // compteur pour determiner si option trouvé
$cpt=0;
//on parcours les options
foreach($options as $o)
{
//tant qu'on a pas trouvé l'option de l'abonne on compare l'option de la 'colone= $option[$j]' avec l'option de 'l'abonne=$o'
while ((($cpt_true!=1)|| ($cpt_true==0) ) and ($j>=$cpt))
{
if($option[$j]==$o)
{
echo"<td nowrap align=\"center\"><font size =2 color=\"red\"><b>X</b>";
$j++;
$cpt_true++;//1
}
else
{
echo"<td nowrap align=\"center\"><font size =2 color=\"black\"><b>rien</b>";
$j++;
}
}
$cpt_true=0;
$cpt++;
}
echo"</tr>";
} |