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}
14 <table id="crm-event_receipt"
15 style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;">
18 <!-- You can add table row(s) here with logo or other header elements -->
21 <!-- BEGIN CONTENT -->
25 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
26 {if !empty($formValues.receipt_text_signup)}
27 <p>{$formValues.receipt_text_signup|htmlize}</p>
28 {elseif !empty($formValues.receipt_text_renewal)}
29 <p>{$formValues.receipt_text_renewal|htmlize}</p>
31 <p>{ts}Thank you for this contribution.{/ts}</p>
37 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
41 {ts}Membership Information{/ts}
46 {ts}Membership Type{/ts}
53 {if empty($cancelled)}
57 {ts}Membership Start Date{/ts}
65 {ts}Membership End Date{/ts}
72 {if $formValues.total_amount OR $formValues.total_amount eq 0 }
75 {ts}Membership Fee{/ts}
78 {if !empty($formValues.contributionType_name)}
81 {ts}Financial Type{/ts}
84 {$formValues.contributionType_name}
89 {if !empty($lineItem)}
90 {foreach from=$lineItem item=value key=priceset}
92 <td colspan="2" {$valueStyle}>
93 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
95 <th>{ts}Item{/ts}</th>
97 {if !empty($dataArray)}
98 <th>{ts}SubTotal{/ts}</th>
99 <th>{ts}Tax Rate{/ts}</th>
100 <th>{ts}Tax Amount{/ts}</th>
101 <th>{ts}Total{/ts}</th>
103 <th>{ts}Membership Start Date{/ts}</th>
104 <th>{ts}Membership End Date{/ts}</th>
106 {foreach from=$value item=line}
109 {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description}
110 <div>{$line.description|truncate:30:"..."}</div>{/if}
113 {$line.line_total|crmMoney}
115 {if !empty($dataArray)}
117 {$line.unit_price*$line.qty|crmMoney}
119 {if isset($line.tax_rate) and ($line.tax_rate != "" || $line.tax_amount != "")}
121 {$line.tax_rate|string_format:"%.2f"}%
124 {$line.tax_amount|crmMoney}
131 {$line.line_total+$line.tax_amount|crmMoney}
146 {if !empty($dataArray)}
147 {if isset($formValues.total_amount) and isset($totalTaxAmount)}
150 {ts}Amount Before Tax:{/ts}
153 {$formValues.total_amount-$totalTaxAmount|crmMoney}
157 {foreach from=$dataArray item=value key=priceset}
160 <td> {if isset($taxTerm)}{$taxTerm}{/if} {$priceset|string_format:"%.2f"}%</td>
161 <td> {$value|crmMoney:$currency}</td>
162 {elseif $priceset == 0}
163 <td> {ts}No{/ts} {if isset($taxTerm)}{$taxTerm}{/if}</td>
164 <td> {$value|crmMoney:$currency}</td>
170 {if isset($totalTaxAmount)}
173 {ts}Total Tax Amount{/ts}
176 {$totalTaxAmount|crmMoney:$currency}
185 {$formValues.total_amount|crmMoney}
188 {if !empty($receive_date)}
191 {ts}Date Received{/ts}
194 {$receive_date|truncate:10:''|crmDate}
198 {if !empty($formValues.paidBy)}
207 {if !empty($formValues.check_number)}
210 {ts}Check Number{/ts}
213 {$formValues.check_number}
224 {if !empty($isPrimary)}
227 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
229 {if !empty($billingName)}
232 {ts}Billing Name and Address{/ts}
243 {if !empty($credit_card_type)}
246 {ts}Credit Card Information{/ts}
251 {$credit_card_type}<br/>
252 {$credit_card_number}
260 {$credit_card_exp_date|truncate:7:''|crmDate}
270 {if !empty($customValues)}
273 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
276 {ts}Membership Options{/ts}
279 {foreach from=$customValues item=value key=customName}