Subversion Repositories VORC

Rev

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

Rev 196 Rev 222
Line 98... Line 98...
98
    my $tmpFormValue = param ("filter-${colName}");
98
    my $tmpFormValue = param ("filter-${colName}");
99
    my $categories = join "", map { $tmpFormValue eq $_ ? $h->option ({ value=>$_, selected=>[] }, $DEPTS->{$_}) : $h->option ({ value=>$_ }, $DEPTS->{$_}) } grep { $LVL > 4 or exists $ORCUSER->{department}->{$_} } grep { !/^PER$/ } sort keys %{$DEPTS};
99
    my $categories = join "", map { $tmpFormValue eq $_ ? $h->option ({ value=>$_, selected=>[] }, $DEPTS->{$_}) : $h->option ({ value=>$_ }, $DEPTS->{$_}) } grep { $LVL > 4 or exists $ORCUSER->{department}->{$_} } grep { !/^PER$/ } sort keys %{$DEPTS};
100
    my $Options = "<OPTION></OPTION>".$categories;
100
    my $Options = "<OPTION></OPTION>".$categories;
Line 101... Line 101...
101
    
101
    
-
 
102
    $Options =~ s/>($tmpFormValue)/ selected>$1/;
-
 
103
    
102
    $Options =~ s/>($tmpFormValue)/ selected>$1/;
104
    my $autoload = param ("autoload") // 1;
103
    my $onChange = param ("autoload") ? "onChange='page.value = 1; submit();'" : "";
105
    my $onChange = $autoload ? "onChange='page.value = 1; submit();'" : "";
104
    return "<SELECT name=filter-${colName} $onChange>$Options</SELECT>";
106
    return "<SELECT name=filter-${colName} $onChange>$Options</SELECT>";
105
  }
107
  }
Line 106... Line 108...
106
}
108
}
Line 210... Line 212...
210
                  RCAuth  => $RCAUTH_cookie,
212
                  RCAuth  => $RCAUTH_cookie,
211
                  DisplayYearSelect => 1,
213
                  DisplayYearSelect => 1,
212
                  ShowMyShifts  => 1,
214
                  ShowMyShifts  => 1,
213
                  HighlightShifts => 1,
215
                  HighlightShifts => 1,
214
                  PersonalTimeButton => 1,
216
                  PersonalTimeButton => 1,
-
 
217
                  HeaderButton => { field  => "id",
-
 
218
                                    button => $h->input ({ type=>"button", value=>"Add", onClick=>"event.stopPropagation(); window.location.href='view_shift.pl'" }) }
215
                 });
219
                 });