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 $membership_assign && !$useForMember} | |
41 | <tr> | |
42 | <th {$headerStyle}> | |
43 | {ts}Membership Information{/ts} | |
44 | </th> | |
45 | </tr> | |
46 | <tr> | |
47 | <td {$labelStyle}> | |
48 | {ts}Membership Type{/ts} | |
49 | </td> | |
50 | <td {$valueStyle}> | |
51 | {$membership_name} | |
52 | </td> | |
53 | </tr> | |
54 | {if $mem_start_date} | |
55 | <tr> | |
56 | <td {$labelStyle}> | |
57 | {ts}Membership Start Date{/ts} | |
58 | </td> | |
59 | <td {$valueStyle}> | |
60 | {$mem_start_date|crmDate} | |
61 | </td> | |
62 | </tr> | |
63 | {/if} | |
64 | {if $mem_end_date} | |
65 | <tr> | |
66 | <td {$labelStyle}> | |
67 | {ts}Membership End Date{/ts} | |
68 | </td> | |
69 | <td {$valueStyle}> | |
70 | {$mem_end_date|crmDate} | |
71 | </td> | |
72 | </tr> | |
73 | {/if} | |
74 | {/if} | |
75 | ||
76 | ||
77 | {if $amount} | |
78 | <tr> | |
79 | <th {$headerStyle}> | |
80 | {ts}Membership Fee{/ts} | |
81 | </th> | |
82 | </tr> | |
83 | ||
84 | {if !$useForMember and $membership_amount and $is_quick_config} | |
85 | ||
86 | <tr> | |
87 | <td {$labelStyle}> | |
88 | {ts 1=$membership_name}%1 Membership{/ts} | |
89 | </td> | |
90 | <td {$valueStyle}> | |
91 | {$membership_amount|crmMoney} | |
92 | </td> | |
93 | </tr> | |
735eaff9 | 94 | {if $amount && !$is_separate_payment } |
6a488035 TO |
95 | <tr> |
96 | <td {$labelStyle}> | |
97 | {ts}Contribution Amount{/ts} | |
98 | </td> | |
99 | <td {$valueStyle}> | |
100 | {$amount|crmMoney} | |
101 | </td> | |
102 | </tr> | |
6a488035 | 103 | <tr> |
58d8c7e2 | 104 | <td {$labelStyle}> |
105 | {ts}Total{/ts} | |
106 | </td> | |
107 | <td {$valueStyle}> | |
108 | {$amount+$membership_amount|crmMoney} | |
109 | </td> | |
6a488035 | 110 | </tr> |
735eaff9 | 111 | {/if} |
6a488035 TO |
112 | |
113 | {elseif !$useForMember && $lineItem and $priceSetID and !$is_quick_config} | |
114 | ||
115 | {foreach from=$lineItem item=value key=priceset} | |
116 | <tr> | |
117 | <td colspan="2" {$valueStyle}> | |
118 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
119 | <tr> | |
120 | <th>{ts}Item{/ts}</th> | |
121 | <th>{ts}Qty{/ts}</th> | |
122 | <th>{ts}Each{/ts}</th> | |
123 | <th>{ts}Total{/ts}</th> | |
124 | </tr> | |
125 | {foreach from=$value item=line} | |
126 | <tr> | |
127 | <td> | |
128 | {$line.description|truncate:30:"..."} | |
129 | </td> | |
130 | <td> | |
131 | {$line.qty} | |
132 | </td> | |
133 | <td> | |
134 | {$line.unit_price|crmMoney} | |
135 | </td> | |
136 | <td> | |
137 | {$line.line_total|crmMoney} | |
138 | </td> | |
139 | </tr> | |
140 | {/foreach} | |
141 | </table> | |
142 | </td> | |
143 | </tr> | |
144 | {/foreach} | |
145 | <tr> | |
146 | <td {$labelStyle}> | |
147 | {ts}Total Amount{/ts} | |
148 | </td> | |
149 | <td {$valueStyle}> | |
150 | {$amount|crmMoney} | |
151 | </td> | |
152 | </tr> | |
153 | ||
154 | {else} | |
155 | {if $useForMember && $lineItem and !$is_quick_config} | |
156 | {foreach from=$lineItem item=value key=priceset} | |
157 | <tr> | |
158 | <td colspan="2" {$valueStyle}> | |
159 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
160 | <tr> | |
161 | <th>{ts}Item{/ts}</th> | |
162 | <th>{ts}Fee{/ts}</th> | |
79d001a2 PB |
163 | {if $dataArray} |
164 | <th>{ts}SubTotal{/ts}</th> | |
165 | <th>{ts}Tax Rate{/ts}</th> | |
166 | <th>{ts}Tax Amount{/ts}</th> | |
167 | <th>{ts}Total{/ts}</th> | |
168 | {/if} | |
011aeb62 | 169 | <th>{ts}Membership Start Date{/ts}</th> |
170 | <th>{ts}Membership End Date{/ts}</th> | |
6a488035 TO |
171 | </tr> |
172 | {foreach from=$value item=line} | |
173 | <tr> | |
174 | <td> | |
175 | {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} | |
176 | </td> | |
177 | <td> | |
178 | {$line.line_total|crmMoney} | |
179 | </td> | |
79d001a2 PB |
180 | {if $dataArray} |
181 | <td> | |
182 | {$line.unit_price*$line.qty|crmMoney} | |
183 | </td> | |
7cf82823 PB |
184 | {if $line.tax_rate != "" || $line.tax_amount != ""} |
185 | <td> | |
186 | {$line.tax_rate|string_format:"%.2f"}% | |
187 | </td> | |
188 | <td> | |
189 | {$line.tax_amount|crmMoney} | |
190 | </td> | |
191 | {else} | |
192 | <td></td> | |
193 | <td></td> | |
194 | {/if} | |
79d001a2 | 195 | <td> |
7cf82823 | 196 | {$line.line_total+$line.tax_amount|crmMoney} |
79d001a2 PB |
197 | </td> |
198 | {/if} | |
6a488035 TO |
199 | <td> |
200 | {$line.start_date} | |
201 | </td> | |
011aeb62 | 202 | <td> |
6a488035 TO |
203 | {$line.end_date} |
204 | </td> | |
205 | </tr> | |
206 | {/foreach} | |
207 | </table> | |
208 | </td> | |
209 | </tr> | |
210 | {/foreach} | |
79d001a2 PB |
211 | {if $dataArray} |
212 | <tr> | |
213 | <td {$labelStyle}> | |
d8f8b40f | 214 | {ts}Amount Before Tax:{/ts} |
79d001a2 PB |
215 | </td> |
216 | <td {$valueStyle}> | |
217 | {$amount-$totalTaxAmount|crmMoney} | |
218 | </td> | |
219 | </tr> | |
220 | {foreach from=$dataArray item=value key=priceset} | |
221 | <tr> | |
7cf82823 | 222 | {if $priceset || $priceset == 0} |
66cae705 | 223 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> |
79d001a2 | 224 | <td> {$value|crmMoney:$currency}</td> |
7cf82823 | 225 | {else} |
03b412ae | 226 | <td> {ts}NO{/ts} {$taxTerm}</td> |
79d001a2 PB |
227 | <td> {$value|crmMoney:$currency}</td> |
228 | {/if} | |
229 | </tr> | |
230 | {/foreach} | |
231 | {/if} | |
232 | {/if} | |
233 | {if $totalTaxAmount} | |
234 | <tr> | |
235 | <td {$labelStyle}> | |
236 | {ts}Total Tax Amount{/ts} | |
237 | </td> | |
238 | <td {$valueStyle}> | |
239 | {$totalTaxAmount|crmMoney:$currency} | |
240 | </td> | |
241 | </tr> | |
6a488035 TO |
242 | {/if} |
243 | <tr> | |
244 | <td {$labelStyle}> | |
245 | {ts}Amount{/ts} | |
246 | </td> | |
247 | <td {$valueStyle}> | |
248 | {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if} | |
249 | </td> | |
250 | </tr> | |
251 | ||
252 | {/if} | |
253 | ||
254 | ||
255 | {elseif $membership_amount} | |
256 | ||
257 | ||
258 | <tr> | |
259 | <th {$headerStyle}> | |
260 | {ts}Membership Fee{/ts} | |
261 | </th> | |
262 | </tr> | |
263 | <tr> | |
264 | <td {$labelStyle}> | |
265 | {ts 1=$membership_name}%1 Membership{/ts} | |
266 | </td> | |
267 | <td {$valueStyle}> | |
268 | {$membership_amount|crmMoney} | |
269 | </td> | |
270 | </tr> | |
271 | ||
272 | ||
273 | {/if} | |
274 | ||
275 | {if $receive_date} | |
276 | <tr> | |
277 | <td {$labelStyle}> | |
278 | {ts}Date{/ts} | |
279 | </td> | |
280 | <td {$valueStyle}> | |
281 | {$receive_date|crmDate} | |
282 | </td> | |
283 | </tr> | |
284 | {/if} | |
285 | ||
286 | {if $is_monetary and $trxn_id} | |
287 | <tr> | |
288 | <td {$labelStyle}> | |
289 | {ts}Transaction #{/ts} | |
290 | </td> | |
291 | <td {$valueStyle}> | |
292 | {$trxn_id} | |
293 | </td> | |
294 | </tr> | |
295 | {/if} | |
296 | ||
297 | {if $membership_trx_id} | |
298 | <tr> | |
299 | <td {$labelStyle}> | |
300 | {ts}Membership Transaction #{/ts} | |
301 | </td> | |
302 | <td {$valueStyle}> | |
303 | {$membership_trx_id} | |
304 | </td> | |
305 | </tr> | |
306 | {/if} | |
307 | {if $is_recur} | |
308 | {if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'} | |
309 | <tr> | |
310 | <td colspan="2" {$labelStyle}> | |
311 | {ts 1=$cancelSubscriptionUrl}This membership will be renewed automatically. You can cancel the auto-renewal option by <a href="%1">visiting this web page</a>.{/ts} | |
312 | </td> | |
313 | </tr> | |
4072b132 ACD |
314 | {if $updateSubscriptionBillingUrl} |
315 | <tr> | |
316 | <td colspan="2" {$labelStyle}> | |
317 | {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts} | |
318 | </td> | |
319 | </tr> | |
320 | {/if} | |
6a488035 TO |
321 | {/if} |
322 | {/if} | |
323 | ||
324 | {if $honor_block_is_active} | |
325 | <tr> | |
326 | <th {$headerStyle}> | |
1421174e | 327 | {$soft_credit_type} |
6a488035 TO |
328 | </th> |
329 | </tr> | |
1421174e | 330 | {foreach from=$honoreeProfile item=value key=label} |
331 | <tr> | |
332 | <td {$labelStyle}> | |
333 | {$label} | |
334 | </td> | |
335 | <td {$valueStyle}> | |
336 | {$value} | |
337 | </td> | |
338 | </tr> | |
339 | {/foreach} | |
6a488035 TO |
340 | {/if} |
341 | ||
342 | {if $pcpBlock} | |
343 | <tr> | |
344 | <th {$headerStyle}> | |
345 | {ts}Personal Campaign Page{/ts} | |
346 | </th> | |
347 | </tr> | |
348 | <tr> | |
349 | <td {$labelStyle}> | |
350 | {ts}Display In Honor Roll{/ts} | |
351 | </td> | |
352 | <td {$valueStyle}> | |
353 | {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} | |
354 | </td> | |
355 | </tr> | |
356 | {if $pcp_roll_nickname} | |
357 | <tr> | |
358 | <td {$labelStyle}> | |
359 | {ts}Nickname{/ts} | |
360 | </td> | |
361 | <td {$valueStyle}> | |
362 | {$pcp_roll_nickname} | |
363 | </td> | |
364 | </tr> | |
365 | {/if} | |
366 | {if $pcp_personal_note} | |
367 | <tr> | |
368 | <td {$labelStyle}> | |
369 | {ts}Personal Note{/ts} | |
370 | </td> | |
371 | <td {$valueStyle}> | |
372 | {$pcp_personal_note} | |
373 | </td> | |
374 | </tr> | |
375 | {/if} | |
376 | {/if} | |
377 | ||
378 | {if $onBehalfProfile} | |
379 | <tr> | |
380 | <th {$headerStyle}> | |
381 | {$onBehalfProfile_grouptitle} | |
382 | </th> | |
383 | </tr> | |
384 | {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName} | |
385 | <tr> | |
386 | <td {$labelStyle}> | |
387 | {$onBehalfName} | |
388 | </td> | |
389 | <td {$valueStyle}> | |
390 | {$onBehalfValue} | |
391 | </td> | |
392 | </tr> | |
393 | {/foreach} | |
394 | {/if} | |
395 | ||
396 | {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary} | |
397 | {if $is_pay_later} | |
398 | <tr> | |
399 | <th {$headerStyle}> | |
400 | {ts}Registered Email{/ts} | |
401 | </th> | |
402 | </tr> | |
403 | <tr> | |
404 | <td colspan="2" {$valueStyle}> | |
405 | {$email} | |
406 | </td> | |
407 | </tr> | |
408 | {elseif $amount GT 0 OR $membership_amount GT 0} | |
409 | <tr> | |
410 | <th {$headerStyle}> | |
411 | {ts}Billing Name and Address{/ts} | |
412 | </th> | |
413 | </tr> | |
414 | <tr> | |
415 | <td colspan="2" {$valueStyle}> | |
416 | {$billingName}<br /> | |
417 | {$address|nl2br}<br /> | |
418 | {$email} | |
419 | </td> | |
420 | </tr> | |
421 | {/if} | |
422 | {/if} | |
423 | ||
424 | {if $contributeMode eq 'direct' AND !$is_pay_later AND ($amount GT 0 OR $membership_amount GT 0)} | |
425 | <tr> | |
426 | <th {$headerStyle}> | |
427 | {ts}Credit Card Information{/ts} | |
428 | </th> | |
429 | </tr> | |
430 | <tr> | |
431 | <td colspan="2" {$valueStyle}> | |
432 | {$credit_card_type}<br /> | |
433 | {$credit_card_number}<br /> | |
434 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br /> | |
435 | </td> | |
436 | </tr> | |
437 | {/if} | |
438 | ||
439 | {if $selectPremium} | |
440 | <tr> | |
441 | <th {$headerStyle}> | |
442 | {ts}Premium Information{/ts} | |
443 | </th> | |
444 | </tr> | |
445 | <tr> | |
446 | <td colspan="2" {$labelStyle}> | |
447 | {$product_name} | |
448 | </td> | |
449 | </tr> | |
450 | {if $option} | |
451 | <tr> | |
452 | <td {$labelStyle}> | |
453 | {ts}Option{/ts} | |
454 | </td> | |
455 | <td {$valueStyle}> | |
456 | {$option} | |
457 | </td> | |
458 | </tr> | |
459 | {/if} | |
460 | {if $sku} | |
461 | <tr> | |
462 | <td {$labelStyle}> | |
463 | {ts}SKU{/ts} | |
464 | </td> | |
465 | <td {$valueStyle}> | |
466 | {$sku} | |
467 | </td> | |
468 | </tr> | |
469 | {/if} | |
470 | {if $start_date} | |
471 | <tr> | |
472 | <td {$labelStyle}> | |
473 | {ts}Start Date{/ts} | |
474 | </td> | |
475 | <td {$valueStyle}> | |
476 | {$start_date|crmDate} | |
477 | </td> | |
478 | </tr> | |
479 | {/if} | |
480 | {if $end_date} | |
481 | <tr> | |
482 | <td {$labelStyle}> | |
483 | {ts}End Date{/ts} | |
484 | </td> | |
485 | <td {$valueStyle}> | |
486 | {$end_date|crmDate} | |
487 | </td> | |
488 | </tr> | |
489 | {/if} | |
490 | {if $contact_email OR $contact_phone} | |
491 | <tr> | |
492 | <td colspan="2" {$valueStyle}> | |
493 | <p>{ts}For information about this premium, contact:{/ts}</p> | |
494 | {if $contact_email} | |
495 | <p>{$contact_email}</p> | |
496 | {/if} | |
497 | {if $contact_phone} | |
498 | <p>{$contact_phone}</p> | |
499 | {/if} | |
500 | </td> | |
501 | </tr> | |
502 | {/if} | |
503 | {if $is_deductible AND $price} | |
504 | <tr> | |
505 | <td colspan="2" {$valueStyle}> | |
506 | <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> | |
507 | </td> | |
508 | </tr> | |
509 | {/if} | |
510 | {/if} | |
511 | ||
512 | {if $customPre} | |
513 | <tr> | |
514 | <th {$headerStyle}> | |
515 | {$customPre_grouptitle} | |
516 | </th> | |
517 | </tr> | |
518 | {foreach from=$customPre item=customValue key=customName} | |
519 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
520 | <tr> | |
521 | <td {$labelStyle}> | |
522 | {$customName} | |
523 | </td> | |
524 | <td {$valueStyle}> | |
525 | {$customValue} | |
526 | </td> | |
527 | </tr> | |
528 | {/if} | |
529 | {/foreach} | |
530 | {/if} | |
531 | ||
532 | {if $customPost} | |
533 | <tr> | |
534 | <th {$headerStyle}> | |
535 | {$customPost_grouptitle} | |
536 | </th> | |
537 | </tr> | |
538 | {foreach from=$customPost item=customValue key=customName} | |
539 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
540 | <tr> | |
541 | <td {$labelStyle}> | |
542 | {$customName} | |
543 | </td> | |
544 | <td {$valueStyle}> | |
545 | {$customValue} | |
546 | </td> | |
547 | </tr> | |
548 | {/if} | |
549 | {/foreach} | |
550 | {/if} | |
551 | ||
552 | </table> | |
553 | </center> | |
554 | ||
555 | </body> | |
556 | </html> |