diff options
author | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2010-12-27 00:04:45 +0000 |
commit | c82d349f864e6bd9f96fd1156903bc1f7193a203 (patch) | |
tree | e117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/elements/select-user.html | |
parent | 74e058c8a010ef6feb539248a550d0bb169c1e94 (diff) |
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/elements/select-user.html')
-rw-r--r-- | httemplate/elements/select-user.html | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/httemplate/elements/select-user.html b/httemplate/elements/select-user.html deleted file mode 100644 index ec2341be6..000000000 --- a/httemplate/elements/select-user.html +++ /dev/null @@ -1,33 +0,0 @@ -<SELECT NAME="usernum"> - -% unless ( $opt{'multiple'} || $opt{'disable_empty'} ) { - <OPTION VALUE="">all</OPTION> -% } - -% foreach my $usernum ( -% sort { $opt{'access_user'}->{$a} cmp $opt{'access_user'}->{$b} } -% keys %{ $opt{'access_user'} } -% ) { - <OPTION VALUE="<%$usernum%>"><% $opt{'access_user'}->{$usernum} %></OPTION> -% } - -</SELECT> - -<%init> - -my %opt = @_; - -unless ( $opt{'access_user'} ) { - - my $sth = dbh->prepare(" - SELECT usernum, username FROM access_user - WHERE disabled = '' or disabled IS NULL - ") or die dbh->errstr; - $sth->execute or die $sth->errstr; - while ( my $row = $sth->fetchrow_arrayref ) { - $opt{'access_user'}->{$row->[0]} = $row->[1]; - } - -} - -</%init> |