No papers available
';
} else {
print '
Note: Only the country of the contact author is used for reporting
';
if (!isset($_GET['s']) || ($_GET['s'] == "country")) {
print '';
$resAR = array();
$nocountry = 0;
while ($l = mysql_fetch_array($r)) {
if (!empty($l['country']) && isset($OC_countryAR[$l['country']])) {
$resAR[$OC_countryAR[$l['country']]] = $l['num'];
} else {
$nocountry = $l['num'];
}
}
ksort($resAR, SORT_LOCALE_STRING);
$row = 1;
foreach ($resAR as $country => $num) {
print '' . $country . ' | ' . $num . " |
\n";
if ($row==1) { $row=2; } else { $row=1; }
}
if ($nocountry > 0) {
print 'unknown | ' . $nocountry . " |
\n";
}
} else {
print '';
$resAR = array();
$nocountry = 0;
while ($l = mysql_fetch_array($r)) {
if (empty($l['country']) || !isset($OC_countryAR[$l['country']])) {
$nocountry += $l['num'];
} else {
if (!isset($resAR[$l['num']])) {
$resAR[$l['num']] = array();
}
$resAR[$l['num']][] = $OC_countryAR[$l['country']];
}
}
$row = 1;
foreach ($resAR as $num => $countries) {
sort($countries, SORT_LOCALE_STRING);
print '' . implode(' ', $countries) . ' | ' . $num . " |
\n";
if ($row==1) { $row=2; } else { $row=1; }
}
if ($nocountry > 0) {
print 'unknown | ' . $nocountry . " |
\n";
}
}
print "
\n";
}
printFooter();
?>