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>{$pay_later_receipt}</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;">
42 {ts}Contribution Information{/ts}
48 {foreach from=$lineItem item=value key=priceset}
50 <td colspan="2" {$valueStyle}>
51 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
53 <th>{ts}Item{/ts}</th>
55 <th>{ts}Each{/ts}</th>
56 {if !empty($dataArray)}
57 <th>{ts}Subtotal{/ts}</th>
58 <th>{ts}Tax Rate{/ts}</th>
59 <th>{ts}Tax Amount{/ts}</th>
61 <th>{ts}Total{/ts}</th>
63 {foreach from=$value item=line}
66 {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}
72 {$line.unit_price|crmMoney:$currency}
74 {if !empty($getTaxDetails)}
76 {$line.unit_price*$line.qty|crmMoney:$currency}
78 {if $line.tax_rate || $line.tax_amount != ""}
80 {$line.tax_rate|string_format:"%.2f"}%
83 {$line.tax_amount|crmMoney:$currency}
91 {$line.line_total+$line.tax_amount|crmMoney:$currency}
99 {if !empty($dataArray)}
102 {ts} Amount before Tax : {/ts}
105 {$amount-$totalTaxAmount|crmMoney:$currency}
109 {foreach from=$dataArray item=value key=priceset}
111 {if $priceset || $priceset == 0}
112 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
113 <td> {$value|crmMoney:$currency}</td>
115 <td> {ts}No{/ts} {$taxTerm}</td>
116 <td> {$value|crmMoney:$currency}</td>
128 {$totalTaxAmount|crmMoney:$currency}
134 {ts}Total Amount{/ts}
137 {$amount|crmMoney:$currency}
143 {if !empty($totalTaxAmount)}
146 {ts}Total Tax Amount{/ts}
149 {contribution.tax_amount|crmMoney}
158 {$amount|crmMoney:$currency} {if '{contribution.amount_level}'} - {contribution.amount_level}{/if}
167 {if !empty($receive_date)}
173 {$receive_date|crmDate}
178 {if !empty($is_monetary) and !empty($trxn_id)}
181 {ts}Transaction #{/ts}
189 {if !empty($is_recur)}
191 <td colspan="2" {$labelStyle}>
192 {ts}This is a recurring contribution.{/ts}
193 {if $cancelSubscriptionUrl}
194 {ts 1=$cancelSubscriptionUrl}You can cancel future contributions by <a href="%1">visiting this web page</a>.{/ts}
198 {if $updateSubscriptionBillingUrl}
200 <td colspan="2" {$labelStyle}>
201 {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
205 {if $updateSubscriptionUrl}
207 <td colspan="2" {$labelStyle}>
208 {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
214 {if $honor_block_is_active}
220 {foreach from=$honoreeProfile item=value key=label}
230 {elseif !empty($softCreditTypes) and !empty($softCredits)}
231 {foreach from=$softCreditTypes item=softCreditType key=n}
237 {foreach from=$softCredits.$n item=value key=label}
250 {if !empty($pcpBlock)}
253 {ts}Personal Campaign Page{/ts}
258 {ts}Display In Honor Roll{/ts}
261 {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
264 {if $pcp_roll_nickname}
274 {if $pcp_personal_note}
277 {ts}Personal Note{/ts}
286 {if !empty($onBehalfProfile)}
289 {$onBehalfProfile_grouptitle}
292 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
304 {if !empty($isShare)}
306 <td colspan="2" {$valueStyle}>
307 {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture}
308 {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl}
313 {if !empty($billingName)}
316 {ts}Billing Name and Address{/ts}
320 <td colspan="2" {$valueStyle}>
322 {$address|nl2br}<br />
326 {elseif !empty($email)}
329 {ts}Registered Email{/ts}
333 <td colspan="2" {$valueStyle}>
339 {if !empty($credit_card_type)}
342 {ts}Credit Card Information{/ts}
346 <td colspan="2" {$valueStyle}>
347 {$credit_card_type}<br />
348 {$credit_card_number}<br />
349 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
354 {if !empty($selectPremium)}
357 {ts}Premium Information{/ts}
361 <td colspan="2" {$labelStyle}>
391 {$start_date|crmDate}
405 {if !empty($contact_email) OR !empty($contact_phone)}
407 <td colspan="2" {$valueStyle}>
408 <p>{ts}For information about this premium, contact:{/ts}</p>
409 {if !empty($contact_email)}
410 <p>{$contact_email}</p>
412 {if !empty($contact_phone)}
413 <p>{$contact_phone}</p>
418 {if !empty($is_deductible) AND !empty($price)}
420 <td colspan="2" {$valueStyle}>
421 <p>{ts 1=$price|crmMoney:$currency}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>
427 {if !empty($customPre)}
430 {$customPre_grouptitle}
433 {foreach from=$customPre item=customValue key=customName}
434 {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}
447 {if !empty($customPost)}
450 {$customPost_grouptitle}
453 {foreach from=$customPost item=customValue key=customName}
454 {if (!empty($trackingFields) and ! in_array($customName, $trackingFields)) or empty($trackingFields)}