add team names to messages

This commit is contained in:
james 2005-03-29 20:01:21 +00:00
parent 79e166dde7
commit 09cf68145c

View File

@ -66,7 +66,7 @@ function saveteamnamesbuttonclicked()
}
else
{
echo notice(i18n("Creating new team #%1",array($_POST['team_num'])));
echo notice(i18n("Creating new team #%1 with name '%2'",array($_POST['team_num'],$_POST['team_name'])));
mysql_query("INSERT INTO judges_teams (num,name,year) VALUES ('".$_POST['team_num']."','".$_POST['team_name']."','".$config['FAIRYEAR']."')");
$team_id=mysql_insert_id();
}
@ -82,7 +82,7 @@ function saveteamnamesbuttonclicked()
if($added==1) $j=i18n("judge");
else $j=i18n("judges");
echo happy(i18n("%1 %2 added to team #%3",array($added,$j,$_POST['team_num'])));
echo happy(i18n("%1 %2 added to team #%3 (%4)",array($added,$j,$_POST['team_num'],$_POST['team_name'])));
}
if($_POST['action']=="del" && $_POST['team_num'] && $_POST['team_id'] && $_POST['judges_id'])