#need to check the enviornment hash. then check the #database for ot see fi that user id has admin priveleges. #allow this page to be displayed if and only if they do. =head1 NAME list.pl - displays a list of all users =head1 OVERVIEW Displays a user and their attributes including email, and user id, real name, and institution =head1 USAGE This page can only be viwed by users with adminstrator privelege. From here, an adminstartor can edit all of a users. It can be sorted by any of the fields =head1 INPUTS Takes aa an optional cgi parameter 'sort ofe of the fields. either 'userid', 'name', 'email' or 'institution'. Information is sorted on the supplied key =head1 AUTHOR Girish Joshi - gjoshi@wam.umd.edu =cut use LSE::Config ; use LSE::Database::Connection ; use CGI ; use strict ; use warnings ; my $q = new CGI ; print $q->header ; print "
| USER ID | " ; print "NAME | " ; print "TITLE | " ; print "INSTITUTION | " ; print "RESEARCH | " ; print "||
| $row->{userid} | "; print "$row->{name} | " ; print "$row->{email} | " ; print "$row->{title} | "; print "$row->{institution} | " ; print "$row->{resinterests} | " ; print "{userid}\">EDIT" ; print " |