<div id=idTransTxt style="position: absolute; left:50px; top: 300px; height: 240px; width: 320px; color: #000000; font-family: Times New Roman; filter: revealTrans(Duration=4, Transition=1); visibility: hidden; ">
<font size=7 ><u><?=$text?></u></font>
</div>
<div style="position: absolute; left: 50px; top: 100px">
<input type=button value="It's more fun to complete!" onclick="replace('index.php')" style="width: 200px; color: lime; background: transparent" >
</div>
<center>
<?include('entete.txt');?>
<br>
<input type=button value="Resolution en cours..." style="width: 360px; color: lime; background: transparent">
<br><br>
<table  bgcolor=black>	
<?
/*-- lecture du grilletemp.dat --*/	
	$fichier = 'grilletemp.dat';	
    $fp = fopen($fichier, 'r ');		
		for ($j = 1; $j <= 9; $j++) {	
			for ($i = 1; $i <= 9; $i++) {				
				$line = fgets($fp);
				$A[$i][$j] = chop(ltrim($line));												
			}
		}
	fclose($fp);	
/*-- lecture de la Grille --*/	
	$fichier = './Grilles/'.$nomgrille.'.dat';	
    $fp = fopen($fichier, 'r ');		
		for ($j = 1; $j <= 9; $j++) {	
			for ($i = 1; $i <= 9; $i++) {				
				$line = fgets($fp);
				$B[$i][$j] = chop(ltrim($line));												
			}
		}
	fclose($fp);		
								
			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];
	$l=strlen($A[$i][$j]);
	$temp0 = $B[$i][$j];
		if($temp!=$temp0){$temp='<font color=cyan>'.$temp.'</font>';}
		if($l>1){$temp='';}
	?>			
		<td align=center valign=middle height="40" width="40"  bgcolor=<?echo"$bg";?>><div class=<?echo"$class";?> ><?echo"$temp";?></div></td>
		 		
		</td>
	 <?		}	?>
	 </tr>
	 <?		}	?>
</table>	
</center>