fixes for manageDiscountPasses
This commit is contained in:
parent
1c844596e6
commit
36fe74fcaa
1 changed files with 8 additions and 7 deletions
|
|
@ -3273,15 +3273,16 @@ sub www_manageDiscountPasses {
|
||||||
my $i18n = WebGUI::International->new($self->session,'Asset_EventManagementSystem');
|
my $i18n = WebGUI::International->new($self->session,'Asset_EventManagementSystem');
|
||||||
|
|
||||||
my $output;
|
my $output;
|
||||||
my $sql = "select * from EventManagementSystem_discountPasses order by name";
|
my $sth = $self->session->db->read("select * from EventManagementSystem_discountPasses order by name");
|
||||||
|
|
||||||
foreach (@$data) {
|
if ($sth->rows) {
|
||||||
$output .= "<div>";
|
while (my $data = $sth->hashRef) {
|
||||||
# $output .= $self->session->icon->delete('func=deleteDiscountPass;psid='.$_->{pasId}, $self->getUrl);
|
$output .= "<div>";
|
||||||
$output .= $self->session->icon->edit('func=editDiscountPass;passId='.$_->{pasId}, $self->getUrl).
|
# $output .= $self->session->icon->delete('func=deleteDiscountPass;psid='.$data->{passId}, $self->getUrl);
|
||||||
" ".$_->{lastName}.", ".$_->{firstName}." ( ".$_->{email}." )</div>";
|
$output .= $self->session->icon->edit('func=editDiscountPass;passId='.$data->{passId}, $self->getUrl).
|
||||||
|
" ".$data->{name}." (".$data->{type}." ".$data->{amount}." )</div>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$output .= '<div>'.$p->getBarAdvanced.'</div>';
|
|
||||||
$self->getAdminConsole->addSubmenuItem($self->getUrl('func=editDiscountPass;passId=new'), $i18n->echo('add discount pass'));
|
$self->getAdminConsole->addSubmenuItem($self->getUrl('func=editDiscountPass;passId=new'), $i18n->echo('add discount pass'));
|
||||||
return $self->_acWrapper($output, $i18n->echo("manage discount passes"));
|
return $self->_acWrapper($output, $i18n->echo("manage discount passes"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue