]> git.sesse.net Git - ccbs/commitdiff
Fix so registration works.
authorSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 15:29:10 +0000 (15:29 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Mon, 14 Feb 2005 15:29:10 +0000 (15:29 +0000)
html/do-registration.pl
html/registration.pl
html/templates/registration.tmpl

index a81e48a95a581cd5afb1304ec8cc3d7a6a792924..36c5e2fa66f020dd92c769ee36b9bff918947dc7 100755 (executable)
@@ -14,6 +14,6 @@ my $paid = $cgi->param('paid');
 $dbh->do('INSERT INTO tournamentparticipation (tournament, player, paid) VALUES (?,?,?)',
        undef, $tournament, $player, $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;
 
 $dbh->disconnect;
index d16ee2ac4eeaba50dec7d51bc0aba8761b983419..1a7ba773a278ff97ce3ad36428991d3e4fb851a5 100755 (executable)
@@ -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'}, {
 
 ccbs::print_header();
 ccbs::process_template('registration.tmpl', $tournament->{'tournamentname'}, {
+       tournament => $tournament,
        registered => $registered,
        available => $available
 });
        registered => $registered,
        available => $available
 });
index c2d873b6dcb70cea33da88b95ac199c2602e020e..7d21ee50c0dfe29dc194b7b281115a69fc3affd9 100644 (file)
@@ -3,7 +3,7 @@
 
 <div>
 <form method="post" action="do-registration.pl">
 
 <div>
 <form method="post" action="do-registration.pl">
-  <input type="hidden" name="tournament" value="[% tournament.id %]" />
+  <input type="hidden" name="tournament" value="[% tournament.tournament %]" />
   <table>
     <tr>
       <th>Spiller</th>
   <table>
     <tr>
       <th>Spiller</th>