\t<th>Send mail</th> \t<th>Name</th> \t<th>Full Name</th> \t<th>Captain</th> </tr> EOT; $num = 0; while ($row = mysql_fetch_array($ret)) { $team = new Team($row[0]); $team->fetchdets(); print <<<EOT <tr> <td><input type="checkbox" name="tnum[]" value="{$num}" checked></td> <td>{$team->display_name()}</td> <td>{$team->display_description()}</td> <td>{$team->display_captain()}</td> </tr> EOT; $num++; } print <<<EOT </table> <p>Reply to:<input type="text" name="emailrep"></p> <textarea name="messagetext" rows="10" cols="40"></textarea> <br clear="all"> <input type="submit" name="submit" value="Submit message"> </form> EOT; }
} ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <?php $Title = "Team {$team->display_name()}"; include 'php/head.php'; ?> <body> <script language="javascript" src="webfn.js"></script> <?php include 'php/nav.php'; print <<<EOT <h1>Team {$team->display_name()}</h1> <p> Team {$team->display_name()} - {$team->display_description()} - division {$team->display_division()} </p> <p> Team captain is {$team->display_captain()}. {$team->display_capt_email($logged_in)} </p> EOT; if ($admin && !$team->Paid) { print <<<EOT <p><b>Team has not paid.</b></p> EOT; } print <<<EOT <h3>Members</h3>
EOT; if ($team->Paid) { print "<p>The team is marked as having paid.\n"; } else { print "<p><b>The team is marked as not having paid.</b>\n"; } print <<<EOT <a href="updpaid.php?{$team->urlof()}">Change this</a>.</p> <form name="teamform" action="updindteam2.php" method="post" enctype="application/x-www-form-urlencoded" onsubmit="javascript:return formvalid();"> {$team->save_hidden()} <p> Team Name: <input type="text" name="teamname" value="{$team->display_name()}" size=20> Full Name: <input type="text" name="teamdescr" value="{$team->display_description()}" size=40> </p><p> Division: EOT; $team->divopt(); print "Captain:"; $team->captainopt(); ?> </p> <p> <input type="submit" name="subm" value="Add Team"> <input type="submit" name="subm" value="Update Team"> </p> </form> </div> </div>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <?php $Title = "Update member ranks"; include 'php/head.php'; ?> <body> <script language="javascript" src="webfn.js"></script> <?php include 'php/nav.php'; ?> <h1>Adjust ranks of team members</h1> <?php print <<<EOT <p>Use this page to adjust ranks of members of the team {$team->display_name()} ({$team->display_description()}) in division {$team->display_division()}.</p> <form name="trform" action="updrank2.php" method="post" enctype="application/x-www-form-urlencoded"> {$team->save_hidden()} <table class="teamdisp"> <tr><th>Player</th><th>Rank</th></tr> EOT; $membs = $team->list_members(); $n = 0; foreach ($membs as $m) { $m->fetchdets(); print "<tr><td>{$m->display_name(false)}</td>\n<td>"; $m->rankopt($n); print "</td></tr>\n"; $n++; }