1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
|
function write_near_tieraerzte($max_number, $blockname) {
global $near_id, $distance_tieraerzte, $template, $count_near, $tpl, $tieraerzte_map_tieraerzte_near, $session, $SID_ARG_2ND, $n, $db;
if (($near_id>0) && (count($distance_tieraerzte)>0)) {
usort($distance_tieraerzte, 'cmp_distance');
$count_near=min($max_number,count($distance_tieraerzte));
for ($i=0; $i < $count_near; $i++) {
$d=$distance_tieraerzte[$i][0];
$user_row=$distance_tieraerzte[$i][1];
$distance = distance_string($d);
$tieraerztename = $user_row['text'];
eval ("\$tieraerzte_map_tieraerzte_near .= \" ".$tpl->get("tieraerzte_map_tieraerzte_near")."\";");
}
}
}
|