1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
10 {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
11 {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
12 {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
15 <table id="crm-event_receipt"
16 style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;">
19 <!-- You can add table row(s) here with logo or other header elements -->
22 <!-- BEGIN CONTENT -->
26 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
27 {if !empty($formValues.receipt_text_signup)}
28 <p>{$formValues.receipt_text_signup|htmlize}</p>
29 {elseif !empty($formValues.receipt_text_renewal)}
30 <p>{$formValues.receipt_text_renewal|htmlize}</p>
32 <p>{ts}Thank you for this contribution.{/ts}</p>
38 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
42 {ts}Membership Information{/ts}
47 {ts}Membership Type{/ts}
54 {if empty($cancelled)}
58 {ts}Membership Start Date{/ts}
66 {ts}Membership End Date{/ts}
73 {if $formValues.total_amount OR $formValues.total_amount eq 0 }
76 {ts}Membership Fee{/ts}
79 {if !empty($formValues.contributionType_name)}
82 {ts}Financial Type{/ts}
85 {$formValues.contributionType_name}
90 {if !empty($lineItem)}
91 {foreach from=$lineItem item=value key=priceset}
93 <td colspan="2" {$valueStyle}>
94 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
96 <th>{ts}Item{/ts}</th>
98 {if !empty($dataArray)}
99 <th>{ts}SubTotal{/ts}</th>
100 <th>{ts}Tax Rate{/ts}</th>
101 <th>{ts}Tax Amount{/ts}</th>
102 <th>{ts}Total{/ts}</th>
104 <th>{ts}Membership Start Date{/ts}</th>
105 <th>{ts}Membership End Date{/ts}</th>
107 {foreach from=$value item=line}
110 {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
111 <div>{$line.description|truncate:30:"..."}</div>{/if}
114 {$line.line_total|crmMoney}
116 {if !empty($dataArray)}
118 {$line.unit_price*$line.qty|crmMoney}
120 {if isset($line.tax_rate) and ($line.tax_rate != "" || $line.tax_amount != "")}
122 {$line.tax_rate|string_format:"%.2f"}%
125 {$line.tax_amount|crmMoney}
132 {$line.line_total+$line.tax_amount|crmMoney}
147 {if !empty($dataArray)}
148 {if isset($formValues.total_amount) and isset($totalTaxAmount)}
151 {ts}Amount Before Tax:{/ts}
154 {$formValues.total_amount-$totalTaxAmount|crmMoney}
158 {foreach from=$dataArray item=value key=priceset}
161 <td> {if isset($taxTerm)}{$taxTerm}{/if} {$priceset|string_format:"%.2f"}%</td>
162 <td> {$value|crmMoney:$currency}</td>
163 {elseif $priceset == 0}
164 <td> {ts}No{/ts} {if isset($taxTerm)}{$taxTerm}{/if}</td>
165 <td> {$value|crmMoney:$currency}</td>
171 {if isset($totalTaxAmount)}
174 {ts}Total Tax Amount{/ts}
177 {$totalTaxAmount|crmMoney:$currency}
186 {$formValues.total_amount|crmMoney}
189 {if !empty($receive_date)}
192 {ts}Date Received{/ts}
195 {$receive_date|truncate:10:''|crmDate}
199 {if !empty($formValues.paidBy)}
208 {if !empty($formValues.check_number)}
211 {ts}Check Number{/ts}
214 {$formValues.check_number}
225 {if !empty($isPrimary)}
228 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
230 {if !empty($billingName)}
233 {ts}Billing Name and Address{/ts}
244 {if !empty($credit_card_type)}
247 {ts}Credit Card Information{/ts}
252 {$credit_card_type}<br/>
253 {$credit_card_number}
261 {$credit_card_exp_date|truncate:7:''|crmDate}
271 {if !empty($customValues)}
274 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
277 {ts}Membership Options{/ts}
280 {foreach from=$customValues item=value key=customName}