From: Steinar H. Gunderson Date: Mon, 14 Feb 2005 15:29:10 +0000 (+0000) Subject: Fix so registration works. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=1acb7050606da6f59dde2381599488452e1c02a1 Fix so registration works. --- diff --git a/html/do-registration.pl b/html/do-registration.pl index a81e48a..36c5e2f 100755 --- a/html/do-registration.pl +++ b/html/do-registration.pl @@ -14,6 +14,6 @@ my $paid = $cgi->param('paid'); $dbh->do('INSERT INTO tournamentparticipation (tournament, player, paid) VALUES (?,?,?)', undef, $tournament, $player, $paid); -ccbs::print_see_other('registration.pl?id=$tournament'); +ccbs::print_see_other('registration.pl?id=' . $tournament); $dbh->disconnect; diff --git a/html/registration.pl b/html/registration.pl index d16ee2a..1a7ba77 100755 --- a/html/registration.pl +++ b/html/registration.pl @@ -15,6 +15,7 @@ my $available = ccbs::db_fetch_all($dbh, 'SELECT * FROM players WHERE player NOT ccbs::print_header(); ccbs::process_template('registration.tmpl', $tournament->{'tournamentname'}, { + tournament => $tournament, registered => $registered, available => $available }); diff --git a/html/templates/registration.tmpl b/html/templates/registration.tmpl index c2d873b..7d21ee5 100644 --- a/html/templates/registration.tmpl +++ b/html/templates/registration.tmpl @@ -3,7 +3,7 @@
- +
Spiller