defaults for adding team name

This commit is contained in:
james 2005-03-29 19:53:48 +00:00
parent a5198a8c59
commit 14e5e4f7d6

@ -67,7 +67,7 @@ function saveteamnamesbuttonclicked()
else
{
echo notice(i18n("Creating new team #%1",array($_POST['team_num'])));
mysql_query("INSERT INTO judges_teams (num,year) VALUES ('".$_POST['team_num']."','".$config['FAIRYEAR']."')");
mysql_query("INSERT INTO judges_teams (num,name,year) VALUES ('".$_POST['team_num']."','".$_POST['team_name']."','".$config['FAIRYEAR']."')");
$team_id=mysql_insert_id();
}
@ -196,6 +196,7 @@ function saveteamnamesbuttonclicked()
judges_teams_link.judges_id=judges.id AND
judges_teams_link.judges_teams_id=judges_teams.id
ORDER BY
name,
num,
lastname,
firstname");
@ -228,7 +229,7 @@ function saveteamnamesbuttonclicked()
echo "</td><td>";
echo "<table>";
echo "<tr><th align=\"left\">New Team #$newteamid</th></tr>";
echo "<tr><th align=\"left\">New #$newteamid: <input type=\"text\" name=\"team_name\" value=\"Team #$newteamid\" /></th></tr>";
echo "</table>";
echo "</td></tr></table>";