& /elements/header-popup.html &>
From: | <% $cust_msg->env_from %> |
To: | <% $env_to %> |
% if ( $date ) {
<% $label{$cust_msg->status} %> | <% $date %> |
% }
% if ( $cust_msg->error ) {
Error: | <% encode_entities($cust_msg->error) %> |
% }
|
|
<& /elements/footer.html &>
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied" if !$curuser->access_right('View customers of all agents');
my ($custmsgnum) = $cgi->keywords;
$custmsgnum =~ /^(\d+)$/ or die "illegal custmsgnum";
my $cust_msg = qsearchs('cust_msg', { 'custmsgnum' => $custmsgnum });
my $date = '';
$date = time2str('%Y-%m-%d %T', $cust_msg->_date) if ( $cust_msg->_date );
my $env_to = join(' | ', split(',', $cust_msg->env_to));
my %label = (
'sent' => 'Sent:',
'failed' => 'Attempted: ',
'prepared' => 'Not sent',
);
%init>
|