X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Femail-customers.html;h=d2a39287e9750f74105f8521e63d8fc2b8484296;hb=da63c1a666c4a6ff2ca9ac8a53986f4497252909;hp=57f451fdc33aaafbe3e9ef32b9c47f448cce7b4f;hpb=4f5619288413a185e9933088d9dd8c5afbc55dfa;p=freeside.git diff --git a/httemplate/misc/email-customers.html b/httemplate/misc/email-customers.html index 57f451fdc..d2a39287e 100644 --- a/httemplate/misc/email-customers.html +++ b/httemplate/misc/email-customers.html @@ -29,15 +29,14 @@ gets passed options 'conf' and 'search' (a reference to the unfrozen %search has should be used to set msgnum or from/subject/html_body cgi params - % if ($popup) { -<% include('/elements/header-popup.html', $title) %> +<& /elements/header-popup.html, $title &> % } else { -<% include('/elements/header.html', $title) %> +<& /elements/header.html, $title &> % } -
+ %# Mixing search params with from address, subject, etc. required special-case %# handling of those, risked name conflicts, and caused massive problems with @@ -51,13 +50,12 @@ should be used to set msgnum or from/subject/html_body cgi params Sending notice - <% include('/elements/progress-init.html', + <& /elements/progress-init.html, 'OneTrueForm', [ qw( search table from subject html_body text_body msgnum ) ], $process_url, $pdest, - ) - %> + &> % } elsif ( $cgi->param('action') eq 'preview' ) { @@ -67,32 +65,30 @@ should be used to set msgnum or from/subject/html_body cgi params % if ( $cgi->param('action') ) { - - +
+ % if ( $msg_template ) { - <% include('/elements/tr-fixed.html', + <& /elements/tr-fixed.html, 'label' => 'Template:', 'value' => $msg_template->msgname, - ) - %> + &> % } - <% include('/elements/tr-fixed.html', + <& /elements/tr-fixed.html, 'field' => 'from', 'label' => 'From:', 'value' => scalar( $from ), - ) - %> + &> - <% include('/elements/tr-fixed.html', + <& /elements/tr-fixed.html, 'field' => 'subject', 'label' => 'Subject:', 'value' => scalar( $subject ), - ) - %> + &> + @@ -104,10 +100,12 @@ should be used to set msgnum or from/subject/html_body cgi params % ) % ); + @@ -117,6 +115,19 @@ should be used to set msgnum or from/subject/html_body cgi params % if ( $cgi->param('action') eq 'preview' ) { % } -<% include('/elements/footer.html') %> +<& /elements/footer.html &> <%init> @@ -222,7 +232,7 @@ $pdest->{'url'} = $cgi->param('url') if $url; my %search; if ( $cgi->param('search') ) { - %search = %{ thaw(decode_base64($cgi->param('search'))) }; + %search = %{ thaw(decode_base64( $cgi->param('search') )) }; } else { %search = $cgi->Vars; @@ -267,7 +277,7 @@ if ( $cgi->param('action') eq 'preview' ) { if ( $cgi->param('msgnum') ) { $msg_template = qsearchs('msg_template', - { msgnum => $cgi->param('msgnum') } ) + { msgnum => scalar($cgi->param('msgnum')) } ) or die "template not found: ".$cgi->param('msgnum'); $sql_query->{'extra_sql'} .= ' LIMIT 1'; $sql_query->{'select'} = "$table.*";
 
Message (HTML display): <% $html_body %>
 
Message (Text display): - - click to view + + (view) +