7 my $dbh = ccbs::db_connect();
8 my $tournaments = ccbs::db_fetch_all($dbh, 'SELECT * FROM tournaments');
9 my $ref = $dbh->selectrow_hashref('SELECT * FROM bigscreen.active_tournament');
10 my $active_tournament = (defined($ref)) ? $ref->{'tournament'} : -1;
13 ccbs::process_template('set-active-tournament.tmpl', 'Sett aktiv turnering', {
14 tournaments => $tournaments,
15 active_tournament => $active_tournament