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}
13 <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;">
16 <!-- You can add table row(s) here with logo or other header elements -->
19 <!-- BEGIN CONTENT -->
23 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
24 {if !empty($receipt_text)}
25 <p>{$receipt_text|htmlize}</p>
29 <p>{if isset($pay_later_receipt)}{$pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *}
35 <table style="width:100%; max-width:500px; border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
37 {if $membership_assign && !$useForMember}
40 {ts}Membership Information{/ts}
45 {ts}Membership Type{/ts}
54 {ts}Membership Start Date{/ts}
57 {$mem_start_date|crmDate}
64 {ts}Membership End Date{/ts}
67 {$mem_end_date|crmDate}
77 {ts}Membership Fee{/ts}
81 {if !$useForMember and isset($membership_amount) and !empty($is_quick_config)}
85 {ts 1=$membership_name}%1 Membership{/ts}
88 {$membership_amount|crmMoney}
91 {if $amount && !$is_separate_payment }
94 {ts}Contribution Amount{/ts}
105 {$amount+$membership_amount|crmMoney}
110 {elseif empty($useForMember) && !empty($lineItem) and $priceSetID and empty($is_quick_config)}
112 {foreach from=$lineItem item=value key=priceset}
114 <td colspan="2" {$valueStyle}>
115 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
117 <th>{ts}Item{/ts}</th>
118 <th>{ts}Qty{/ts}</th>
119 <th>{ts}Each{/ts}</th>
120 <th>{ts}Total{/ts}</th>
122 {foreach from=$value item=line}
125 {$line.description|truncate:30:"..."}
131 {$line.unit_price|crmMoney}
134 {$line.line_total|crmMoney}
144 {ts}Total Amount{/ts}
152 {if $useForMember && $lineItem and empty($is_quick_config)}
153 {foreach from=$lineItem item=value key=priceset}
155 <td colspan="2" {$valueStyle}>
156 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
158 <th>{ts}Item{/ts}</th>
159 <th>{ts}Fee{/ts}</th>
160 {if !empty($dataArray)}
161 <th>{ts}SubTotal{/ts}</th>
162 <th>{ts}Tax Rate{/ts}</th>
163 <th>{ts}Tax Amount{/ts}</th>
164 <th>{ts}Total{/ts}</th>
166 <th>{ts}Membership Start Date{/ts}</th>
167 <th>{ts}Membership End Date{/ts}</th>
169 {foreach from=$value item=line}
172 {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}
175 {$line.line_total|crmMoney}
177 {if !empty($dataArray)}
179 {$line.unit_price*$line.qty|crmMoney}
181 {if ($line.tax_rate || $line.tax_amount != "")}
183 {$line.tax_rate|string_format:"%.2f"}%
186 {$line.tax_amount|crmMoney}
193 {$line.line_total+$line.tax_amount|crmMoney}
208 {if !empty($dataArray)}
211 {ts}Amount Before Tax:{/ts}
214 {$amount-$totalTaxAmount|crmMoney}
217 {foreach from=$dataArray item=value key=priceset}
219 {if $priceset || $priceset == 0}
220 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
221 <td> {$value|crmMoney:$currency}</td>
223 <td> {ts}NO{/ts} {$taxTerm}</td>
224 <td> {$value|crmMoney:$currency}</td>
230 {if isset($totalTaxAmount)}
233 {ts}Total Tax Amount{/ts}
236 {$totalTaxAmount|crmMoney:$currency}
245 {$amount|crmMoney} {if isset($amount_level)} - {$amount_level}{/if}
252 {elseif isset($membership_amount)}
257 {ts}Membership Fee{/ts}
262 {ts 1=$membership_name}%1 Membership{/ts}
265 {$membership_amount|crmMoney}
272 {if !empty($receive_date)}
278 {$receive_date|crmDate}
283 {if !empty($is_monetary) and !empty($trxn_id)}
286 {ts}Transaction #{/ts}
294 {if !empty($membership_trx_id)}
297 {ts}Membership Transaction #{/ts}
304 {if !empty($is_recur)}
306 <td colspan="2" {$labelStyle}>
307 {ts}This membership will be renewed automatically.{/ts}
308 {if $cancelSubscriptionUrl}
309 {ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by <a href="%1">visiting this web page</a>.{/ts}
313 {if $updateSubscriptionBillingUrl}
315 <td colspan="2" {$labelStyle}>
316 {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts}
322 {if $honor_block_is_active}
328 {foreach from=$honoreeProfile item=value key=label}
340 {if !empty($pcpBlock)}
343 {ts}Personal Campaign Page{/ts}
348 {ts}Display In Honor Roll{/ts}
351 {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
354 {if $pcp_roll_nickname}
364 {if $pcp_personal_note}
367 {ts}Personal Note{/ts}
376 {if !empty($onBehalfProfile)}
379 {$onBehalfProfile_grouptitle}
382 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
394 {if !empty($billingName)}
397 {ts}Billing Name and Address{/ts}
401 <td colspan="2" {$valueStyle}>
403 {$address|nl2br}<br />
407 {elseif !empty($email)}
410 {ts}Registered Email{/ts}
414 <td colspan="2" {$valueStyle}>
420 {if !empty($credit_card_type)}
423 {ts}Credit Card Information{/ts}
427 <td colspan="2" {$valueStyle}>
428 {$credit_card_type}<br />
429 {$credit_card_number}<br />
430 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
435 {if !empty($selectPremium)}
438 {ts}Premium Information{/ts}
442 <td colspan="2" {$labelStyle}>
472 {$start_date|crmDate}
486 {if !empty($contact_email) OR !empty($contact_phone)}
488 <td colspan="2" {$valueStyle}>
489 <p>{ts}For information about this premium, contact:{/ts}</p>
490 {if !empty($contact_email)}
491 <p>{$contact_email}</p>
493 {if !empty($contact_phone)}
494 <p>{$contact_phone}</p>
499 {if !empty($is_deductible) AND !empty($price)}
501 <td colspan="2" {$valueStyle}>
502 <p>{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p>
508 {if !empty($customPre)}
511 {$customPre_grouptitle}
514 {foreach from=$customPre item=customValue key=customName}
515 {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}
528 {if !empty($customPost)}
531 {$customPost_grouptitle}
534 {foreach from=$customPost item=customValue key=customName}
535 {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}