1 <SELECT NAME="usernum">
3 % unless ( $opt{'multiple'} || $opt{'disable_empty'} ) {
4 <OPTION VALUE="">all</OPTION>
7 % foreach my $usernum ( keys %{ $opt{'access_user'} } ) {
8 <OPTION VALUE="<%$usernum%>"><% $opt{'access_user'}->{$usernum} %></OPTION>
17 unless ( $opt{'access_user'} ) {
19 tie %{ $opt{'access_user'} }, 'Tie::IxHash';
21 my $sth = dbh->prepare("
22 SELECT usernum, username FROM access_user
23 WHERE disabled = '' or disabled IS NULL
25 ") or die dbh->errstr;
26 $sth->execute or die $sth->errstr;
27 while ( my $row = $sth->fetchrow_arrayref ) {
28 $opt{'access_user'}->{$row->[0]} = $row->[1];