
<table  bgcolor=black>		
	<?		for ($j = 1; $j <= 9; $j++) {	?>
	<tr valign=middle> 
	<?		for ($i = 1; $i <= 9; $i++) {	
	if ($i<=3&&$j<=3){$bg='yellow';$class='trouJ';}
	if ($i>3&&$i<=6&&$j<=3){$bg='green';$class='trouV';}
	if ($i>6&&$j<=3){$bg='red';$class='trouR';}
	
	if ($i<=3&&$j>3&&$j<=6){$bg='green';$class='trouV';}
	if ($i>3&&$i<=6&&$j>3&&$j<=6){$bg='red';$class='trouR';}
	if ($i>6&&$j>3&&$j<=6){$bg='yellow';$class='trouJ';}
	
	if ($i<=3&&$j>6){$bg='red';$class='trouR';}
	if ($i>3&&$i<=6&&$j>6){$bg='yellow';$class='trouJ';}
	if ($i>6&&$j>3&&$j>6){$bg='green';$class='trouV';}
	$temp = $A[$i][$j];	
	$ii=$i-1;$jj=$j-1;	
	?>	
		
		<?if(($page=='saisieNG')||(($page=='enregistrer')&&($flagverif))){?>
		<td align=center  height="40" width="40" bgcolor=<?echo"$bg";?>>
		<input onkeyup="if (verifier) {return changement(<?echo"$ii, $jj";?>,this);}"class=<?echo"$class";?> value="<?echo"$temp";?>" name="A<?echo"$i$j";?>" size="1" maxlength="1" >
		<?}else{?>
		<td align=center valign=middle height="40" width="40"  bgcolor=<?echo"$bg";?>><div class=<?echo"$class";?> ><?echo"$temp";?></div></td>
		 <?}?>
		
		</td>
	 <?		}	?>
	 </tr>
	 <?		}	?>
</table>	