From: Steinar H. Gunderson Date: Wed, 16 Feb 2005 13:49:00 +0000 (+0000) Subject: Distinguish the name= on the form elements. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=27818b079eae431fa00d061d62a76f8c83602060 Distinguish the name= on the form elements. --- diff --git a/html/show-tournament.pl b/html/show-tournament.pl index fd78a3c..8e7c9e9 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -16,7 +16,7 @@ my $songs = ccbs::db_fetch_all($dbh, 'SELECT song,title FROM machinesongs NATURA # Swoop all the data in in a big join, then order it over to quasi-sane Perl objects. # (round -> parallel -> player -> songs -> title,chosen,score) my $scores = ccbs::db_fetch_all($dbh, - 'SELECT round,parallel,position,playmode,difficulty,songnumber,nick,song,title,chosen,score FROM roundparticipation NATURAL JOIN players NATURAL JOIN scores NATURAL LEFT JOIN songs WHERE tournament=? ORDER BY round,parallel,position,songnumber', + 'SELECT round,parallel,position,playmode,difficulty,songnumber,player,nick,song,title,chosen,score FROM roundparticipation NATURAL JOIN players NATURAL JOIN scores NATURAL LEFT JOIN songs WHERE tournament=? ORDER BY round,parallel,position,songnumber', $id); my @rounds = (); diff --git a/html/templates/show-tournament.tmpl b/html/templates/show-tournament.tmpl index 4c55422..07bba4a 100644 --- a/html/templates/show-tournament.tmpl +++ b/html/templates/show-tournament.tmpl @@ -114,8 +114,8 @@ [% pl.nick %] [% FOR s = pl.songs %] - - + - [% IF s.difficulty == 'beginner' %] @@ -159,7 +159,7 @@ [% IF s.chosen %] - [% FOR ss = songs %] [% IF s.song == ss.song %]