more details on drop down.

This commit is contained in:
Matthew Wilson 2006-05-07 14:07:19 +00:00
parent e1e46e7237
commit 5ca280ae14

View file

@ -782,17 +782,17 @@ sub getBadgeSelector {
if ($isAdmin) { if ($isAdmin) {
# all badges in the system. # all badges in the system.
$badges = $self->session->db->buildHashRef("select badgeId, CONCAT(lastName,', ',firstName) from EventManagementSystem_badges order by lastName"); $badges = $self->session->db->buildHashRef("select badgeId, CONCAT(lastName,', ',firstName,' (',email,')') from EventManagementSystem_badges order by lastName");
} elsif ($me eq '1') { } elsif ($me eq '1') {
#none #none
$badges = {}; $badges = {};
%options = (); %options = ();
} else { } else {
#badges we have purchased. #badges we have purchased.
$badges = $self->session->db->buildHashRef("select b.badgeId, CONCAT(b.lastName,', ',b.firstName) from EventManagementSystem_badges as b where b.userId='".$me."' or b.createdByUserId='".$me."' order by b.lastName"); $badges = $self->session->db->buildHashRef("select b.badgeId, CONCAT(b.lastName,', ',b.firstName,' (',email,')') from EventManagementSystem_badges as b where b.userId='".$me."' or b.createdByUserId='".$me."' order by b.lastName");
} }
if ($addBadgeId) { if ($addBadgeId) {
$badges = $self->session->db->buildHashRef("select badgeId, CONCAT(lastName,', ',firstName) from EventManagementSystem_badges where badgeId=?",[$addBadgeId]); $badges = $self->session->db->buildHashRef("select badgeId, CONCAT(lastName,', ',firstName,' (',email,')') from EventManagementSystem_badges where badgeId=?",[$addBadgeId]);
%options = (); %options = ();
} }
my $js; my $js;