MT Marathon Registered Participants
Name (Institution) |
Plans to attend |
error_reporting(E_ALL ^ E_NOTICE);
$fn = "./registration-trusted.log";
$contents = file_get_contents($fn);
$lines = explode("\n", chop($contents));
$nr = 0;
$np = 0;
$nonblr = 0;
$nonblp = 0;
$labels = array("Lectures", "Talks", "Lab", "Projects");
$sums = array(0,0,0,0);
foreach ($lines as $line) {
$sums[0]++;
$cols = explode("\t", $line);
print "";
print "$cols[6] ($cols[7]) | \n";
foreach (array(9,10,11,12) as $col) {
print "";
if ($cols[$col] != "") {
print $labels[$col-9];
$sums[$col-8]++;
}
print " | ";
}
print "
\n";
}
print "\n";
print "Total: $sums[0] | \n";
foreach (array(1,2,3,4) as $col) {
print "$sums[$col] | ";
}
print "
";
?>
print "Last updated: ".date ("F d Y H:i:s.", filemtime($fn))
?>