<?php
highlight_file
(__FILE__);
exit;
// last modified below: 2012-12-23 20:20:13

include ('include.php');        // Path to include.php mysql login
set_time_limit(600);
$time = microtime(); 
$time = explode(" ", $time); 
$time = $time[1] + $time[0]; 
$start = $time;
$i = 1;
$count = 0;
$xmllink = 'http://api.whatpulse.org/team.php?team=1295&members=yes&format=xml';
$xml = simplexml_load_file($xmllink);

foreach (
$xml->Members as $entry){
    echo 
'<table class="ruimte">';
    foreach (
$entry as $child){
        
$name = $child->getName();        
        echo 
'<tr><TH BGCOLOR="#99CCFF">'.$i.'</TH>';//ROWSPAN=2
        
echo '<td bgcolor="#999999" nowrap="nowrap">'.$name.'</td></tr>';
        echo 
'<tr>';
        foreach (
$child as $child1){
            echo 
'<td bgcolor="#CCCCCC" nowrap="nowrap">'.$child1->getName().'</td>';
        }
        echo 
'<tr></tr>';        
        foreach (
$child as $child1){
            echo 
'<td bgcolor="#CCCCCC" nowrap="nowrap">'.$child1.'</td>';
        }
        echo 
'</tr>';        
        
$i++;
    }
    echo 
'</table>';
}

$time = microtime(); 
$time = explode(" ", $time); 
$time = $time[1] + $time[0]; 
$deel = $time; 
$totaltime = ($deel - $start); 
echo 
"<br>";

printf ("This took %f seconds to load.", $totaltime);