From: Steinar H. Gunderson Date: Mon, 14 Feb 2005 01:56:35 +0000 (+0000) Subject: Added a form (no logic yet) for adding tournaments. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=8ec1d66d71c2c3bc773b39c7118fd34e3fb92dc9 Added a form (no logic yet) for adding tournaments. --- diff --git a/html/add-tournament.pl b/html/add-tournament.pl new file mode 100755 index 0000000..44c0536 --- /dev/null +++ b/html/add-tournament.pl @@ -0,0 +1,23 @@ +#! /usr/bin/perl + +use ccbs; +use strict; +use warnings; + +my $dbh = ccbs::db_connect(); + +# Fetch stuff we'll use in the form +my $seasons = ccbs::db_fetch_all($dbh, 'SELECT * FROM seasons'); +my $countries = ccbs::db_fetch_all($dbh, 'SELECT * FROM countries'); +my $machines = ccbs::db_fetch_all($dbh, 'SELECT * FROM machines'); +my $scoringsystems = ccbs::db_fetch_all($dbh, 'SELECT * FROM scoringsystems'); + +ccbs::print_header(); +ccbs::process_template('add-tournament.tmpl', 'Legg til turnering', { + seasons => $seasons, + countries => $countries, + machines => $machines, + scoringsystems => $scoringsystems, + }); + +$dbh->disconnect; diff --git a/html/templates/add-tournament.tmpl b/html/templates/add-tournament.tmpl new file mode 100644 index 0000000..832167c --- /dev/null +++ b/html/templates/add-tournament.tmpl @@ -0,0 +1,62 @@ +[%# vim:set filetype=html: %] +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Sesong: + +
Navn:
Land: + +
Sted:
Dato:
Maskin: + +
Scoresystem: + +
+
+