diff --git a/admin/judges_teams.php b/admin/judges_teams.php index 654d1a76..ab902506 100644 --- a/admin/judges_teams.php +++ b/admin/judges_teams.php @@ -43,6 +43,12 @@ function delbuttonclicked(team_id,team_num,judge) document.forms.judges.submit(); } +function saveteamnamesbuttonclicked() +{ + document.forms.judges.action.value="saveteamnames"; + document.forms.judges.submit(); +} + $team_name) + { + mysql_query("UPDATE judges_teams SET name='".mysql_escape_string(stripslashes($team_name))."' WHERE id='$team_id'"); + } + echo happy(i18n("Team names successfully saved")); + } + } echo "
"; @@ -163,6 +182,7 @@ function delbuttonclicked(team_id,team_num,judge) $q=mysql_query("SELECT judges_teams.id, judges_teams.num, + judges_teams.name, judges.id AS judges_id, judges.firstname, judges.lastname @@ -190,6 +210,7 @@ function delbuttonclicked(team_id,team_num,judge) { $teams[$r->id]['id']=$r->id; $teams[$r->id]['num']=$r->num; + $teams[$r->id]['name']=$r->name; $lastteamid=$r->id; $lastteamnum=$r->num; } @@ -224,7 +245,9 @@ function delbuttonclicked(team_id,team_num,judge) echo ""; echo ""; - echo ""; + echo ""; foreach($team['members'] AS $member) { @@ -238,9 +261,11 @@ function delbuttonclicked(team_id,team_num,judge) echo "
Team #".$team['num']."
#".$team['num'].": "; + echo ""; + echo "
"; echo ""; - } + echo "
"; + echo ""; + echo "";