From dc0e418d9adfb6b46c418f7a07aad9daebc7da40 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 14 Feb 2005 00:06:27 +0000 Subject: [PATCH] Add list over tournaments. --- html/templates/tournaments.tmpl | 8 ++++++++ html/tournaments.pl | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 html/templates/tournaments.tmpl create mode 100755 html/tournaments.pl diff --git a/html/templates/tournaments.tmpl b/html/templates/tournaments.tmpl new file mode 100644 index 0000000..492434e --- /dev/null +++ b/html/templates/tournaments.tmpl @@ -0,0 +1,8 @@ +[%# vim:set filetype=html: %] +
+ +
diff --git a/html/tournaments.pl b/html/tournaments.pl new file mode 100755 index 0000000..1f00a95 --- /dev/null +++ b/html/tournaments.pl @@ -0,0 +1,11 @@ +#! /usr/bin/perl + +use ccbs; +use strict; +use warnings; + +my $dbh = ccbs::db_connect(); +my $tournaments = ccbs::db_fetch_all($dbh, 'SELECT * FROM tournaments'); + +ccbs::print_header(); +ccbs::process_template('tournaments.tmpl', 'Turneringer', { tournaments => $tournaments }); -- 2.39.2