From 3081639bd119c6d281ef23139649b2e73ba62754 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 14 May 2005 16:27:26 +0000 Subject: html invoices! http://chris-linfoot.net/d6plinks/CWLT-5VZD4Y http://www.dsv.su.se/~jpalme/ietf/mhtml.html ftp://ftp.dsv.su.se/users/jpalme/draft-ietf-mhtml-info.txt http://mailformat.dan.info/headers/mime.html http://www.faqs.org/rfcs/rfc2392.html http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_content-type_multipart.asp (MIME is hard, let's go shopping!) --- httemplate/view/cust_bill.cgi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index c217cc389..5dd8a8d71 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -62,7 +62,7 @@ unless ( $templatename ) { ) { my $templatename = $1; print qq! ( !. - 'view text | '. + 'view | '. qq!!. 'view typeset )'; } @@ -74,11 +74,15 @@ unless ( $templatename ) { print '
'; } -print '
', $cust_bill->print_text('', $templatename);
+if ( $conf->exists('invoice_html') ) {
+  print $cust_bill->print_html('', $templatename);
+} else {
+  print '
', $cust_bill->print_text('', $templatename), '
'; +} #formatting print < + END -- cgit v1.2.1