X-Git-Url: https://git.sesse.net/?p=ccbs;a=blobdiff_plain;f=html%2Ftournaments.pl;fp=html%2Ftournaments.pl;h=1f00a958d3776223baff795fe9555cafecd08972;hp=0000000000000000000000000000000000000000;hb=dc0e418d9adfb6b46c418f7a07aad9daebc7da40;hpb=aee1f77ca1957086ed876b49e1b5e4f744eef2f2 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 });