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