categoriegemeentekaart

titel02District Cantincrode  (Gouw Opsinjoor)  (Scouts en Gidsen Vlaanderen)

District Cantincrode op kaart

Gebruik dit stukje php-code om links op je website te plaatsen.
<?php
function object2array($object){
$return = NULL;

if(is_array($object)){
	foreach($object as $key => $value)
	$return[$key] = object2array($value);
}else{
	$var = get_object_vars($object);

if($var){
	foreach($var as $key => $value)
	$return[$key] = ($key && !$value) ? NULL : object2array($value);
	}
	else return $object;
	}
return $return;
}


$today = date("Ymd");
$xml = simplexml_load_file("http://scoutnet.be/xml/A31.xml?a=$today");
if (!$xml){exit("Failed to open A31.xml.<br />");}

$myarray = object2array($xml);

$num_marker = count($myarray['A31']['marker']);

echo "<table class=\"snsample\">\n";
for($i = 0; $i < $num_marker; $i++) {
if (($myarray['A31']['marker'][$i]['@attributes']['domain']!='nodomain')&&($myarray['A31']['marker'][$i]['@attributes']['domain']!='')){
	$mylink="<a href='http://www.{$myarray['A31']['marker'][$i]['@attributes']['domain']}'>".utf8_decode($myarray['A31']['marker'][$i]['@attributes']['groupname'])."</a>";
}else{
	$mylink="<a href='http://{$myarray['A31']['marker'][$i]['@attributes']['name']}.scoutnet.be'>".utf8_decode($myarray['A31']['marker'][$i]['@attributes']['groupname'])."</a>";
}
if ($myarray['A31']['marker'][$i]['@attributes']['groupID']!=''){
	$mygroupID='['.$myarray['A31']['marker'][$i]['@attributes']['groupID'].']';
}else{
	$mygroupID='';
}

echo "<tr><td>$mylink</td><td>$mygroupID</td><td>".utf8_decode($myarray['A31']['marker'][$i]['@attributes']['city'])."</td></tr>\n";
}
echo "</table>\n";
?>

Dit is het resultaat:

O.L.V. Vlaanderen[A3110G]Mortsel
Sint-Xaverius Guldenvlies[A3111G]Mortsel
Maria Goretti[A3122M]Boechout
Sint-Bavo[A3131S]Boechout
Sint-Albertus & Lieven Gevaert[A3132S]Mortsel
Leopold III[A3142S]Boechout
Sint-Benedictus[A3143G]Mortsel
Sint Albertus & Lieven Gevaert[A3148M]Mortsel
Sint-Jozef[A3160M]Mortsel
Sint-Laurentius[A3181G]Hove

Je kan deze data ook tonen op een google map.

Hulp nodig? aarzel dan niet om ons te contacteren.

subtitelStaat je vereniging hier nog niet vermeld? Registreer je dan snel voor een gratis Jeugdwerker Account!

 
© Jeugdwerker.be - Disclaimer

Jeugdwerker.be - Rapaertstraat 67 - 8310 Assebroek -