From de70f8aa6723fe016286a190ff46c0019b35f7e8 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 4 Mar 2005 22:38:17 +0000 Subject: [PATCH] The front end can now choose how many players play per machine (1 or 2). --- html/do-set-active-round.pl | 5 +++-- html/templates/show-tournament.tmpl | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/html/do-set-active-round.pl b/html/do-set-active-round.pl index 4f8caaf..db32ece 100755 --- a/html/do-set-active-round.pl +++ b/html/do-set-active-round.pl @@ -11,14 +11,15 @@ my $tournament = $cgi->param('tournament'); my $round = $cgi->param('round'); my $parallel = $cgi->param('parallel'); my $num_machines = $cgi->param('nummachines'); +my $players_per_machine = $cgi->param('playerspermachine'); $dbh->{AutoCommit} = 0; $dbh->do('DELETE FROM bigscreen.active_groups WHERE tournament=? AND round=? AND parallel=?', undef, $tournament, $round, $parallel); if ($cgi->param('show') eq 'true') { - $dbh->do('INSERT INTO bigscreen.active_groups (tournament, round, parallel, num_machines, last_updated) VALUES (?,?,?,?,now())', - undef, $tournament, $round, $parallel, $num_machines); + $dbh->do('INSERT INTO bigscreen.active_groups (tournament, round, parallel, num_machines, last_updated, players_per_machine) VALUES (?,?,?,?,now(),?)', + undef, $tournament, $round, $parallel, $num_machines, $players_per_machine); } $dbh->do('NOTIFY active_groups'); diff --git a/html/templates/show-tournament.tmpl b/html/templates/show-tournament.tmpl index b91f94c..a5faa7c 100644 --- a/html/templates/show-tournament.tmpl +++ b/html/templates/show-tournament.tmpl @@ -107,6 +107,7 @@ Antall maskiner: + Antall spillere per maskin: [% END %]

-- 2.39.2