1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
9 {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
10 {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
11 {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
14 <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;">
17 <!-- You can add table row(s) here with logo or other header elements -->
20 <!-- BEGIN CONTENT -->
24 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
25 {if !empty($formValues.receipt_text)}
26 <p>{$formValues.receipt_text|htmlize}</p>
28 <p>{ts}Below you will find a receipt for this contribution.{/ts}</p>
34 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
37 {ts}Contribution Information{/ts}
42 {ts}Contributor Name{/ts}
45 {contact.display_name}
49 {if !empty($formValues.contributionType_name)}
51 {ts}Financial Type{/ts}
54 {$formValues.contributionType_name}
59 {if !empty($lineItem) and empty($is_quick_config)}
60 {foreach from=$lineItem item=value key=priceset}
62 <td colspan="2" {$valueStyle}>
63 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
65 <th>{ts}Item{/ts}</th>
67 <th>{ts}Each{/ts}</th>
68 {if !empty($getTaxDetails)}
69 <th>{ts}Subtotal{/ts}</th>
70 <th>{ts}Tax Rate{/ts}</th>
71 <th>{ts}Tax Amount{/ts}</th>
73 <th>{ts}Total{/ts}</th>
75 {foreach from=$value item=line}
78 {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}<div>{$line.description|truncate:30:"..."}</div>{/if}
84 {$line.unit_price|crmMoney:$currency}
86 {if !empty($getTaxDetails)}
88 {$line.unit_price*$line.qty|crmMoney:$currency}
90 {if isset($line.tax_rate) and ($line.tax_rate != "" || $line.tax_amount != "")}
92 {$line.tax_rate|string_format:"%.2f"}%
95 {$line.tax_amount|crmMoney:$currency}
103 {$line.line_total+$line.tax_amount|crmMoney:$currency}
112 {if !empty($getTaxDetails) && !empty($dataArray)}
115 {ts} Amount before Tax : {/ts}
118 {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
122 {foreach from=$dataArray item=value key=priceset}
124 {if $priceset || $priceset == 0 || $value != ''}
125 <td> {if isset($taxTerm)}{$taxTerm}{/if} {$priceset|string_format:"%.2f"}%</td>
126 <td> {$value|crmMoney:$currency}</td>
128 <td> {ts}No{/ts} {if isset($taxTerm)}{$taxTerm}{/if}</td>
129 <td> {$value|crmMoney:$currency}</td>
135 {if isset($totalTaxAmount) && $totalTaxAmount !== 'null'}
138 {ts}Total Tax Amount{/ts}
141 {$totalTaxAmount|crmMoney:$currency}
148 {ts}Total Amount{/ts}
151 {$formValues.total_amount|crmMoney:$currency}
155 {if !empty($receive_date)}
158 {ts}Date Received{/ts}
161 {$receive_date|truncate:10:''|crmDate}
166 {if !empty($receipt_date)}
169 {ts}Receipt Date{/ts}
172 {$receipt_date|truncate:10:''|crmDate}
177 {if !empty($formValues.paidBy) and empty($formValues.hidden_CreditCard)}
186 {if !empty($formValues.check_number)}
189 {ts}Check Number{/ts}
192 {$formValues.check_number}
198 {if !empty($formValues.trxn_id)}
201 {ts}Transaction ID{/ts}
204 {$formValues.trxn_id}
209 {if !empty($ccContribution)}
212 {ts}Billing Name and Address{/ts}
216 <td colspan="2" {$valueStyle}>
223 {ts}Credit Card Information{/ts}
227 <td colspan="2" {$valueStyle}>
228 {$credit_card_type}<br />
229 {$credit_card_number}<br />
230 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
235 {if !empty($softCreditTypes) and !empty($softCredits)}
236 {foreach from=$softCreditTypes item=softCreditType key=n}
242 {foreach from=$softCredits.$n item=value key=label}
255 {if !empty($customGroup)}
256 {foreach from=$customGroup item=value key=customName}
262 {foreach from=$value item=v key=n}
275 {if !empty($formValues.product_name)}
278 {ts}Premium Information{/ts}
282 <td colspan="2" {$labelStyle}>
283 {$formValues.product_name}
286 {if $formValues.product_option}
292 {$formValues.product_option}
296 {if $formValues.product_sku}
302 {$formValues.product_sku}
306 {if !empty($fulfilled_date)}
312 {$fulfilled_date|truncate:10:''|crmDate}