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
| foreach($res as $k=>$a) {
printf ('<h1>%s</h1>','<center><div style="color:#FF0000;">'.$k.'</center></div>');
echo '<ul>';
echo '<h2><center><div style="color:#0000FF;">Occurrences Connues:</h2></center></div>';
foreach ($a as $v) {
$id=substr($v,0,-1);
printf ('<li>%s</li>',"<center><"."<a href=\"http://www.lirmm.fr/~terrapon/coddDB/$id.html\">$id</a>"."></center>");
}
echo '</ul>';
echo '<h2><center><div style="color:#0000FF;">Nouvelles Occurrences:</h2></center></div>';
if (array_key_exists($k, $res1)) {
foreach ($res1 as $k1 => $a1) {
foreach ($a1 as $v1) {
if ($k1==$k)
{$id1=substr($v1,0,-1);
printf('<li>%s</li>', "<center><"."<a href=\"http://www.lirmm.fr/~terrapon/coddDB/".$id1.".html\" >$id1</a>"."></center></div>");}
}
}
}
else echo "<center>Aucune Occurrence pour cet organisme</center>";
} |