Open("mul.tpl",CACHED,25); if ( !$temp->isCached($handle) ){ $time[] = getmicrotime(); $titre=array("Addition","Soustraction","Division","Multiplication"); $operation=array("\$i+\$j","\$i-\$j","round(\$i/\$j,2)","\$i*\$j"); for($a=0;$a<=3;$a++){ $temp->addSession($handle,"GAL"); $temp->setVar($handle,"GAL.titre",$titre[$a]); for($i=0;$i<=$max;$i++){ $temp->addSession($handle,"multiplication"); $temp->addSession($handle,"tete"); if ($color=="FFFFFF") $color="DDDDDD"; else $color="FFFFFF"; $temp->setVar($handle,"multiplication.color",$color); $temp->setVar($handle,"tete.val1",$i); $temp->setVar($handle,"multiplication.val1",$i); for($j=0;$j<=$max;$j++){ $temp->addSession($handle,"unite"); @eval("\$res=".$operation[$a].";"); $temp->setVar($handle,"unite.mul",$res); $temp->closeSession($handle,"unite"); } $temp->closeSession($handle,"tete"); $temp->closeSession($handle,"multiplication"); } $temp->closeSession($handle,"GAL"); top($a); } } $temp->Display($handle); $time[] = getmicrotime(); for($i=0;$i"; echo "TOTAL: ".($time[(count($time)-1)]-$time_start)."
"; echo $max; ?>