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