X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_msg.html;fp=httemplate%2Fview%2Fcust_msg.html;h=a5846109ac065fafcdb0734f8d61ee66788eafe0;hp=0000000000000000000000000000000000000000;hb=bb119c4cc86e906f698a205437790bd8f96bb3d0;hpb=7091372fa4580cc041feb25263ac3c1d67c59e3f diff --git a/httemplate/view/cust_msg.html b/httemplate/view/cust_msg.html new file mode 100755 index 000000000..a5846109a --- /dev/null +++ b/httemplate/view/cust_msg.html @@ -0,0 +1,55 @@ +<& /elements/header-popup.html &> + + + +% if ( $date ) { + +% } +% if ( $cust_msg->error ) { + +% } + + +
From:<% $cust_msg->env_from %>
To:<% $env_to %>
<% $label{$cust_msg->status} %><% $date %>
Error:<% encode_entities($cust_msg->error) %>
+
+ + Header + Body +
+
+ + +
+ +<& /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', +); +