first major round of EMS changes. much more to come late tonight.
This commit is contained in:
parent
f3404c319a
commit
2c60283ba3
27 changed files with 5196 additions and 33 deletions
|
|
@ -17,6 +17,7 @@ package WebGUI::Session::ErrorHandler;
|
|||
|
||||
use strict;
|
||||
use Log::Log4perl;
|
||||
use Data::Dumper;
|
||||
use Apache2::RequestUtil;
|
||||
|
||||
=head1 NAME
|
||||
|
|
@ -387,6 +388,8 @@ sub showDebug {
|
|||
my $text = $self->session->stow->get('debug_error');
|
||||
$text =~ s/\n/\<br \/\>\n/g;
|
||||
my $output = '<div style="text-align: left;background-color: #800000;color: #ffffff;">'.$text."</div>\n";
|
||||
$text = $self->session->form->paramsHashRef();
|
||||
$output .= '<div style="text-align: left;background-color: #ffffff;color: #000000;"><pre>Form Variables:'.Dumper($text)."</pre></div>\n" if(scalar(keys %{$text}));
|
||||
$text = $self->session->stow->get('debug_warn');
|
||||
$text =~ s/\n/\<br \/\>\n/g;
|
||||
$output .= '<div style="text-align: left;background-color: #ffdddd;color: #000000;">'.$text."</div>\n";
|
||||
|
|
|
|||
|
|
@ -167,11 +167,13 @@ Gets a hash ref of all the params passed in to this class, and their values. Thi
|
|||
sub paramsHashRef {
|
||||
my $self = shift;
|
||||
unless ($self->{_paramsHashRef}) {
|
||||
my $hash;
|
||||
my %hash;
|
||||
tie %hash, "Tie::IxHash";
|
||||
foreach ($self->param) {
|
||||
$hash->{$_} = $self->process($_);
|
||||
my @arr = $self->process($_);
|
||||
$hash{$_} = (scalar(@arr) > 1)?\@arr:$arr[0];
|
||||
}
|
||||
$self->{_paramsHashRef} = $hash;
|
||||
$self->{_paramsHashRef} = \%hash;
|
||||
}
|
||||
return $self->{_paramsHashRef};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -362,9 +362,13 @@ sub moveDown {
|
|||
my $self = shift;
|
||||
my $urlParams = shift;
|
||||
my $pageURL = shift || $self->session->url->getRequestedUrl;
|
||||
my $disabled = shift;
|
||||
my $i18n = WebGUI::International->new($self->session,'Icon');
|
||||
my $output = '<p style="display:inline;vertical-align:middle;"><a href="'.$self->session->url->gateway($pageURL,$urlParams).'">';
|
||||
$output .= '<img src="'.$self->_getBaseURL().'moveDown.gif" style="vertical-align:middle;border: 0px;" alt="'.$i18n->get('Move Down').'" title="'.$i18n->get('Move Down').'" /></a></p>';
|
||||
my $output = '<p style="display:inline;vertical-align:middle;">';
|
||||
$output .= '<a href="'.$self->session->url->gateway($pageURL,$urlParams).'">' unless $disabled;
|
||||
$output .= '<img src="'.$self->_getBaseURL().'moveDown.gif" style="vertical-align:middle;border: 0px;" alt="'.$i18n->get('Move Down').'" title="'.$i18n->get('Move Down').'" />';
|
||||
$output .= '</a>' unless $disabled;
|
||||
$output .= '</p>';
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
@ -466,9 +470,13 @@ sub moveUp {
|
|||
my $self = shift;
|
||||
my $urlParams = shift;
|
||||
my $pageURL = shift || $self->session->url->getRequestedUrl;
|
||||
my $disabled = shift;
|
||||
my $i18n = WebGUI::International->new($self->session,'Icon');
|
||||
my $output = '<p style="display:inline;vertical-align:middle;"><a href="'.$self->session->url->gateway($pageURL,$urlParams).'">';
|
||||
$output .= '<img src="'.$self->_getBaseURL().'moveUp.gif" style="vertical-align:middle;border: 0px;" alt="'.$i18n->get('Move Up').'" title="'.$i18n->get('Move Up').'" /></a></p>';
|
||||
my $output = '<p style="display:inline;vertical-align:middle;">';
|
||||
$output .= '<a href="'.$self->session->url->gateway($pageURL,$urlParams).'">' unless $disabled;
|
||||
$output .= '<img src="'.$self->_getBaseURL().'moveUp.gif" style="vertical-align:middle;border: 0px;" alt="'.$i18n->get('Move Up').'" title="'.$i18n->get('Move Up').'" />';
|
||||
$output .= '</a>' unless $disabled;
|
||||
$output .= '</p>';
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue