Subversion Repositories PEEPS

Rev

Rev 16 | Rev 31 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16 Rev 25
Line 39... Line 39...
39
);
39
);
Line 40... Line 40...
40
 
40
 
41
# Set any custom "where" DB filters here...
41
# Set any custom "where" DB filters here...
Line -... Line 42...
-
 
42
my @whereClause;
42
my @whereClause;
43
 
43
 
44
my $newleaguebutton;
-
 
45
if ($ORCUSER->{SYSADMIN}) {
44
if ($ORCUSER->{SYSADMIN}) {
46
  $COLUMNS{visible} = [qw(Visible   65    select)];
45
  $COLUMNS{visible} = [qw(Visible   65    select)];
47
  $newleaguebutton = 1;
46
} else {
48
} else {
Line 96... Line 98...
96
#                  Prefs     => $prefscookie,
98
#                  Prefs     => $prefscookie,
97
                  Table     => $DBTABLE,
99
                  Table     => $DBTABLE,
98
                  Columns   => \%COLUMNS,
100
                  Columns   => \%COLUMNS,
99
                  PEEPSAuth => $PEEPSAUTH_cookie,
101
                  PEEPSAuth => $PEEPSAUTH_cookie,
100
                  Where     => join (" and ", @whereClause),
102
                  Where     => join (" and ", @whereClause),
101
#                  HeaderButton       => { field  => "id",
103
                  HeaderButton       => $newleaguebutton ? { field  => "id",
102
#                                          button => $h->input ({ type=>"button", value=>"Add", onClick=>"window.location.href='view_game.pl'" }) }
104
                                          button => $h->input ({ type=>"button", value=>"Add", onClick=>"event.stopPropagation(); window.location.href='view_league.pl';" }) } : undef
103
               });
105
               });