From: Steinar H. Gunderson Date: Mon, 14 Feb 2005 15:16:16 +0000 (+0000) Subject: Add a box for adding people. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=ab4cf29eba0c696e3d73782d93085e617795fda6 Add a box for adding people. --- diff --git a/html/registration.pl b/html/registration.pl index 6d47364..8811a17 100755 --- a/html/registration.pl +++ b/html/registration.pl @@ -10,10 +10,12 @@ my $id = $cgi->param('id'); my $dbh = ccbs::db_connect(); my $tournament = $dbh->selectrow_hashref('SELECT * FROM tournaments NATURAL JOIN seasons NATURAL JOIN countries NATURAL JOIN machines NATURAL JOIN scoringsystems WHERE tournament=?', undef, $id); -my $people = ccbs::db_fetch_all($dbh, 'SELECT * FROM tournamentparticipation NATURAL JOIN players WHERE tournament=?', $id); +my $registered = ccbs::db_fetch_all($dbh, 'SELECT * FROM tournamentparticipation NATURAL JOIN players WHERE tournament=?', $id); +my $available = ccbs::db_fetch_all($dbh, 'SELECT * FROM players WHERE player NOT IN ( SELECT player FROM tournamentparticipation WHERE tournament=? ) ORDER BY nick', $id); ccbs::print_header(); ccbs::process_template('registration.tmpl', $tournament->{'tournamentname'}, { - people => $people + registered => $registered, + available => $available }); $dbh->disconnect; diff --git a/html/templates/registration.tmpl b/html/templates/registration.tmpl index 74f1167..6bbb528 100644 --- a/html/templates/registration.tmpl +++ b/html/templates/registration.tmpl @@ -3,8 +3,42 @@
+ +

PÃ¥melding

+ +
+
+ + + + + + + + + + + + + +
Spiller + +
Betalt + +
+ +
+
+