<?
$pre   = '../../';
include  $pre . "common.php";
$title = "2009 US GLOBEC Pan-Regional Synthesis Workshop";
$logo  = false;
//include HEAD;

$t = array('t_p','t_s','w_a','w_p','w_s','th_a','th_p','th_s','f_a');
$query  = "SELECT * FROM workshops WHERE workshop='synth08' ORDER BY last";
$result = $db->sql_query($query);

$out = "<h1>List of Participants</h1>\n <br />";

$out .= "<table border=\"1\">\n<tr>\n   <td>&nbsp;</td>\n   <td><b>Name</b></td>\n
   <td><b>Affiliation</b></td>\n   <td><b>E-mail</b></td>\n</tr>";

for($i=0;$row = $db->sql_fetchrow($result);$i++){
   $name  = stripslashes($row['last']) . ", " . stripslashes($row['first']);
   $affil = stripslashes($row['institution']);
   $email = $row['email'];
   $num   = $i+1;
   $out  .= "<tr>\n";
   $out  .= "   <td>$num</td>\n   <td>$name</td>\n   <td>$affil</td>\n   <td>$email</td>\n";
   $out .= "</tr>\n";
}

$out .= "</table>\n<br /><br />";

echo $out;

//include FOOT;
?>
