2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("team.inc");
|
|
|
|
require_once("db.inc");
|
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
db_init();
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$user = get_logged_in_user();
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$query = sprintf(
|
|
|
|
"select * from team where id=%d",
|
|
|
|
$HTTP_GET_VARS["id"]
|
|
|
|
);
|
|
|
|
$result = mysql_query($query);
|
|
|
|
if ($result) {
|
|
|
|
$team = mysql_fetch_object($result);
|
|
|
|
mysql_free_result($result);
|
|
|
|
}
|
2002-12-16 21:41:41 +00:00
|
|
|
|
|
|
|
require_founder_login($user, $team);
|
|
|
|
|
2002-08-12 20:16:55 +00:00
|
|
|
page_head("$team->name Email List");
|
2002-08-14 22:53:57 +00:00
|
|
|
echo "<p>";
|
|
|
|
echo "<table border=0 width=580>";
|
|
|
|
echo "<tr bgcolor=#708090><td colspan=2><font size=+1>";
|
|
|
|
echo "<b>Team Email List: </b></font></td></tr>";
|
|
|
|
echo "<tr><td width=25% valign=top align=left><b>Name:</b></td>";
|
|
|
|
echo "<td><b>Email Address:</b></td></tr>\n";
|
2002-08-07 18:56:55 +00:00
|
|
|
$query = sprintf(
|
|
|
|
"select * from user where teamid=%d",
|
|
|
|
$team->id
|
|
|
|
);
|
|
|
|
$result = mysql_query($query);
|
|
|
|
if ($result) {
|
|
|
|
for ($i = 0; $i < $team->nusers; $i++) {
|
|
|
|
$user_team = mysql_fetch_object($result);
|
|
|
|
echo "<tr><td>$user_team->name</td>";
|
|
|
|
echo "<td><a href=mailto:$user_team->email_addr>$user_team->email_addr</a></td></tr>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo "</table>";
|
2002-12-16 21:41:41 +00:00
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
page_tail();
|
2002-08-07 18:56:55 +00:00
|
|
|
|
|
|
|
?>
|