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