From f6cf796b6a8bfbd91928584ad1e87fb7b0e9ea61 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 14 Feb 2005 15:04:00 +0000 Subject: [PATCH] Added a minimal list over people registered at a tournament. --- html/registration.pl | 19 +++++++++++++++++++ html/templates/registration.tmpl | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100755 html/registration.pl create mode 100644 html/templates/registration.tmpl diff --git a/html/registration.pl b/html/registration.pl new file mode 100755 index 0000000..6d47364 --- /dev/null +++ b/html/registration.pl @@ -0,0 +1,19 @@ +#! /usr/bin/perl + +use ccbs; +use strict; +use warnings; + +my $cgi = new CGI; +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); + +ccbs::print_header(); +ccbs::process_template('registration.tmpl', $tournament->{'tournamentname'}, { + people => $people +}); +$dbh->disconnect; diff --git a/html/templates/registration.tmpl b/html/templates/registration.tmpl new file mode 100644 index 0000000..74f1167 --- /dev/null +++ b/html/templates/registration.tmpl @@ -0,0 +1,10 @@ +[%# vim:set filetype=html: %] +

PÃ¥meldte

+ +
+ +
-- 2.39.2