name");
$ndel = 0;
for ($i=0; $i<$_POST["ninactive_users"]; $i++) {
if ($_POST["remove_$i"] != 0) {
$userid = $_POST["remove_$i"];
$user = lookup_user_id($userid);
if ($user->teamid != $team->id) {
echo "
$user->name is not a member of $team->name";
} else {
$query = "update user set teamid=0 where id=$userid";
$result_user_table = mysql_query($query);
echo "
$user->name has been removed";
$ndel++;
}
}
}
if ($ndel) {
team_update_nusers($team);
}
page_tail();
} ?>