From 14e5e4f7d6ab0f2da2cf17d8d4c54adda4ec946c Mon Sep 17 00:00:00 2001 From: james Date: Tue, 29 Mar 2005 19:53:48 +0000 Subject: [PATCH] defaults for adding team name --- admin/judges_teams.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/judges_teams.php b/admin/judges_teams.php index ab902506..5a8b3703 100644 --- a/admin/judges_teams.php +++ b/admin/judges_teams.php @@ -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 ""; echo ""; - echo ""; + echo ""; echo "
New Team #$newteamid
New #$newteamid:
"; echo "";