$value) {
$string = explode(', ', $key);
$index[$key] = implode(', ', array_reverse($string));
}
asort($index);
foreach ($index as $key => $value) {
$html_ .= '
';
if ($data[$key]['latitude'] == 0 && $data[$key]['longitude'] == 0)
$html_ .= '' . htmlentities($key) . ' | ';
else {
$html_ .= '';
$html_ .= htmlentities($key);
$html_ .= ' | ';
$string = explode(' / ', coordinates2string($data[$key]['latitude'], $data[$key]['longitude']));
$html_ .= '';
$html_ .= $string[0];
$html_ .= ' | ';
$html_ .= '';
$html_ .= $string[1];
$html_ .= ' | ';
$string = explode(' / ', coordinates2string($data[$key]['spanLatitude'], $data[$key]['spanLongitude']));
$html_ .= '';
$html_ .= substr($string[0], 0, -1);
$html_ .= ' | ';
$html_ .= '';
$html_ .= substr($string[1], 0, -1);
$html_ .= ' | ';
$count++;
}
$html_ .= '';
$html_ .= '
';
}
$html .= '';
$html .= '';
$html .= '';
$html .= number_format(count($data)) . ' locations';
$html .= ' | ';
$html .= '';
$html .= number_format($count) . ' known';
$html .= ' | ';
$html .= '';
$html .= number_format(count($data) - $count) . ' unknown';
$html .= ' | ';
$html .= '
';
$html .= $html_;
$html .= '
';
echo $html;
?>