Commit | Line | Data |
---|---|---|
6a488035 TO |
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"> | |
3 | <head> | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
5 | <title></title> | |
6 | </head> | |
7 | <body> | |
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} | |
12 | ||
13 | <center> | |
14 | <table width="500" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;"> | |
15 | ||
16 | <!-- BEGIN HEADER --> | |
17 | <!-- You can add table row(s) here with logo or other header elements --> | |
18 | <!-- END HEADER --> | |
19 | ||
20 | <!-- BEGIN CONTENT --> | |
21 | ||
22 | <tr> | |
23 | <td> | |
24 | ||
25 | {if $receipt_text} | |
26 | <p>{$receipt_text|htmlize}</p> | |
27 | {/if} | |
28 | ||
29 | {if $is_pay_later} | |
30 | <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} | |
31 | {else} | |
32 | <p>{ts}Please print this confirmation for your records.{/ts}</p> | |
33 | {/if} | |
34 | ||
35 | </td> | |
36 | </tr> | |
37 | </table> | |
38 | <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> | |
39 | ||
40 | {if $amount} | |
41 | ||
42 | ||
43 | <tr> | |
44 | <th {$headerStyle}> | |
45 | {ts}Contribution Information{/ts} | |
46 | </th> | |
47 | </tr> | |
48 | ||
49 | {if $lineItem and $priceSetID and !$is_quick_config} | |
50 | ||
51 | {foreach from=$lineItem item=value key=priceset} | |
52 | <tr> | |
53 | <td colspan="2" {$valueStyle}> | |
54 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
55 | <tr> | |
56 | <th>{ts}Item{/ts}</th> | |
57 | <th>{ts}Qty{/ts}</th> | |
58 | <th>{ts}Each{/ts}</th> | |
59 | <th>{ts}Total{/ts}</th> | |
60 | </tr> | |
61 | {foreach from=$value item=line} | |
62 | <tr> | |
63 | <td> | |
64 | {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} | |
65 | </td> | |
66 | <td> | |
67 | {$line.qty} | |
68 | </td> | |
69 | <td> | |
70 | {$line.unit_price|crmMoney:$currency} | |
71 | </td> | |
72 | <td> | |
73 | {$line.line_total|crmMoney:$currency} | |
74 | </td> | |
75 | </tr> | |
76 | {/foreach} | |
77 | </table> | |
78 | </td> | |
79 | </tr> | |
80 | {/foreach} | |
81 | <tr> | |
82 | <td {$labelStyle}> | |
83 | {ts}Total Amount{/ts} | |
84 | </td> | |
85 | <td {$valueStyle}> | |
86 | {$amount|crmMoney:$currency} | |
87 | </td> | |
88 | </tr> | |
89 | ||
90 | {else} | |
91 | ||
92 | <tr> | |
93 | <td {$labelStyle}> | |
94 | {ts}Amount{/ts} | |
95 | </td> | |
96 | <td {$valueStyle}> | |
97 | {$amount|crmMoney:$currency} {if $amount_level} - {$amount_level}{/if} | |
98 | </td> | |
99 | </tr> | |
100 | ||
101 | {/if} | |
102 | ||
103 | {/if} | |
104 | ||
105 | ||
106 | {if $receive_date} | |
107 | <tr> | |
108 | <td {$labelStyle}> | |
109 | {ts}Date{/ts} | |
110 | </td> | |
111 | <td {$valueStyle}> | |
112 | {$receive_date|crmDate} | |
113 | </td> | |
114 | </tr> | |
115 | {/if} | |
116 | ||
117 | {if $is_monetary and $trxn_id} | |
118 | <tr> | |
119 | <td {$labelStyle}> | |
120 | {ts}Transaction #{/ts} | |
121 | </td> | |
122 | <td {$valueStyle}> | |
123 | {$trxn_id} | |
124 | </td> | |
125 | </tr> | |
126 | {/if} | |
127 | ||
128 | {if $is_recur} | |
129 | {if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'} | |
130 | <tr> | |
131 | <td colspan="2" {$labelStyle}> | |
132 | {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can cancel future contributions by <a href="%1">visiting this web page</a>.{/ts} | |
133 | </td> | |
1a9f6d0d PJ |
134 | {if $updateSubscriptionBillingUrl} |
135 | <tr> | |
136 | </tr> | |
137 | <td colspan="2" {$labelStyle}> | |
138 | {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts} | |
139 | </td> | |
140 | {/if} | |
6a488035 TO |
141 | <tr> |
142 | </tr> | |
143 | <td colspan="2" {$labelStyle}> | |
144 | {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} | |
145 | </td> | |
146 | </tr> | |
147 | {/if} | |
148 | {/if} | |
149 | ||
150 | {if $honor_block_is_active} | |
151 | <tr> | |
152 | <th {$headerStyle}> | |
153 | {$honor_type} | |
154 | </th> | |
155 | </tr> | |
156 | <tr> | |
157 | <td colspan="2" {$labelStyle}> | |
158 | {$honor_prefix} {$honor_first_name} {$honor_last_name} | |
159 | </td> | |
160 | </tr> | |
161 | {if $honor_email} | |
162 | <tr> | |
163 | <td {$labelStyle}> | |
164 | {ts}Honoree Email{/ts} | |
165 | </td> | |
166 | <td {$valueStyle}> | |
167 | {$honor_email} | |
168 | </td> | |
169 | </tr> | |
170 | {/if} | |
171 | {/if} | |
172 | ||
173 | {if $pcpBlock} | |
174 | <tr> | |
175 | <th {$headerStyle}> | |
176 | {ts}Personal Campaign Page{/ts} | |
177 | </th> | |
178 | </tr> | |
179 | <tr> | |
180 | <td {$labelStyle}> | |
181 | {ts}Display In Honor Roll{/ts} | |
182 | </td> | |
183 | <td {$valueStyle}> | |
184 | {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} | |
185 | </td> | |
186 | </tr> | |
187 | {if $pcp_roll_nickname} | |
188 | <tr> | |
189 | <td {$labelStyle}> | |
190 | {ts}Nickname{/ts} | |
191 | </td> | |
192 | <td {$valueStyle}> | |
193 | {$pcp_roll_nickname} | |
194 | </td> | |
195 | </tr> | |
196 | {/if} | |
197 | {if $pcp_personal_note} | |
198 | <tr> | |
199 | <td {$labelStyle}> | |
200 | {ts}Personal Note{/ts} | |
201 | </td> | |
202 | <td {$valueStyle}> | |
203 | {$pcp_personal_note} | |
204 | </td> | |
205 | </tr> | |
206 | {/if} | |
207 | {/if} | |
208 | ||
209 | {if $onBehalfProfile} | |
210 | <tr> | |
211 | <th {$headerStyle}> | |
212 | {$onBehalfProfile_grouptitle} | |
213 | </th> | |
214 | </tr> | |
215 | {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName} | |
216 | <tr> | |
217 | <td {$labelStyle}> | |
218 | {$onBehalfName} | |
219 | </td> | |
220 | <td {$valueStyle}> | |
221 | {$onBehalfValue} | |
222 | </td> | |
223 | </tr> | |
224 | {/foreach} | |
225 | {/if} | |
226 | ||
227 | {if $isShare} | |
228 | <tr> | |
229 | <td colspan="2" {$valueStyle}> | |
230 | {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture} | |
231 | {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl} | |
232 | </td> | |
233 | </tr> | |
234 | {/if} | |
235 | ||
236 | {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary} | |
237 | {if $is_pay_later} | |
238 | <tr> | |
239 | <th {$headerStyle}> | |
240 | {ts}Registered Email{/ts} | |
241 | </th> | |
242 | </tr> | |
243 | <tr> | |
244 | <td colspan="2" {$valueStyle}> | |
245 | {$email} | |
246 | </td> | |
247 | </tr> | |
248 | {elseif $amount GT 0} | |
249 | <tr> | |
250 | <th {$headerStyle}> | |
251 | {ts}Billing Name and Address{/ts} | |
252 | </th> | |
253 | </tr> | |
254 | <tr> | |
255 | <td colspan="2" {$valueStyle}> | |
256 | {$billingName}<br /> | |
257 | {$address|nl2br}<br /> | |
258 | {$email} | |
259 | </td> | |
260 | </tr> | |
261 | {/if} | |
262 | {/if} | |
263 | ||
264 | {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0} | |
265 | <tr> | |
266 | <th {$headerStyle}> | |
267 | {ts}Credit Card Information{/ts} | |
268 | </th> | |
269 | </tr> | |
270 | <tr> | |
271 | <td colspan="2" {$valueStyle}> | |
272 | {$credit_card_type}<br /> | |
273 | {$credit_card_number}<br /> | |
274 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br /> | |
275 | </td> | |
276 | </tr> | |
277 | {/if} | |
278 | ||
279 | {if $selectPremium} | |
280 | <tr> | |
281 | <th {$headerStyle}> | |
282 | {ts}Premium Information{/ts} | |
283 | </th> | |
284 | </tr> | |
285 | <tr> | |
286 | <td colspan="2" {$labelStyle}> | |
287 | {$product_name} | |
288 | </td> | |
289 | </tr> | |
290 | {if $option} | |
291 | <tr> | |
292 | <td {$labelStyle}> | |
293 | {ts}Option{/ts} | |
294 | </td> | |
295 | <td {$valueStyle}> | |
296 | {$option} | |
297 | </td> | |
298 | </tr> | |
299 | {/if} | |
300 | {if $sku} | |
301 | <tr> | |
302 | <td {$labelStyle}> | |
303 | {ts}SKU{/ts} | |
304 | </td> | |
305 | <td {$valueStyle}> | |
306 | {$sku} | |
307 | </td> | |
308 | </tr> | |
309 | {/if} | |
310 | {if $start_date} | |
311 | <tr> | |
312 | <td {$labelStyle}> | |
313 | {ts}Start Date{/ts} | |
314 | </td> | |
315 | <td {$valueStyle}> | |
316 | {$start_date|crmDate} | |
317 | </td> | |
318 | </tr> | |
319 | {/if} | |
320 | {if $end_date} | |
321 | <tr> | |
322 | <td {$labelStyle}> | |
323 | {ts}End Date{/ts} | |
324 | </td> | |
325 | <td {$valueStyle}> | |
326 | {$end_date|crmDate} | |
327 | </td> | |
328 | </tr> | |
329 | {/if} | |
330 | {if $contact_email OR $contact_phone} | |
331 | <tr> | |
332 | <td colspan="2" {$valueStyle}> | |
333 | <p>{ts}For information about this premium, contact:{/ts}</p> | |
334 | {if $contact_email} | |
335 | <p>{$contact_email}</p> | |
336 | {/if} | |
337 | {if $contact_phone} | |
338 | <p>{$contact_phone}</p> | |
339 | {/if} | |
340 | </td> | |
341 | </tr> | |
342 | {/if} | |
343 | {if $is_deductible AND $price} | |
344 | <tr> | |
345 | <td colspan="2" {$valueStyle}> | |
346 | <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> | |
347 | </td> | |
348 | </tr> | |
349 | {/if} | |
350 | {/if} | |
351 | ||
352 | {if $customPre} | |
353 | <tr> | |
354 | <th {$headerStyle}> | |
355 | {$customPre_grouptitle} | |
356 | </th> | |
357 | </tr> | |
358 | {foreach from=$customPre item=customValue key=customName} | |
359 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
360 | <tr> | |
361 | <td {$labelStyle}> | |
362 | {$customName} | |
363 | </td> | |
364 | <td {$valueStyle}> | |
365 | {$customValue} | |
366 | </td> | |
367 | </tr> | |
368 | {/if} | |
369 | {/foreach} | |
370 | {/if} | |
371 | ||
372 | {if $customPost} | |
373 | <tr> | |
374 | <th {$headerStyle}> | |
375 | {$customPost_grouptitle} | |
376 | </th> | |
377 | </tr> | |
378 | {foreach from=$customPost item=customValue key=customName} | |
379 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
380 | <tr> | |
381 | <td {$labelStyle}> | |
382 | {$customName} | |
383 | </td> | |
384 | <td {$valueStyle}> | |
385 | {$customValue} | |
386 | </td> | |
387 | </tr> | |
388 | {/if} | |
389 | {/foreach} | |
390 | {/if} | |
391 | ||
392 | </table> | |
393 | </center> | |
394 | ||
395 | </body> | |
396 | </html> |