commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / CRM / Upgrade / 4.3.alpha1.msg_template / message_templates / membership_online_receipt_html.tpl
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 <th>{ts}Membership Start Date{/ts}</th>
175 <th>{ts}Membership End Date{/ts}</th>
176 </tr>
177 {foreach from=$value item=line}
178 <tr>
179 <td>
180 {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}
181 </td>
182 <td>
183 {$line.line_total|crmMoney}
184 </td>
185 <td>
186 {$line.start_date}
187 </td>
188 <td>
189 {$line.end_date}
190 </td>
191 </tr>
192 {/foreach}
193 </table>
194 </td>
195 </tr>
196 {/foreach}
197 {/if}
198 <tr>
199 <td {$labelStyle}>
200 {ts}Amount{/ts}
201 </td>
202 <td {$valueStyle}>
203 {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
204 </td>
205 </tr>
206
207 {/if}
208
209
210 {elseif $membership_amount}
211
212
213 <tr>
214 <th {$headerStyle}>
215 {ts}Membership Fee{/ts}
216 </th>
217 </tr>
218 <tr>
219 <td {$labelStyle}>
220 {ts 1=$membership_name}%1 Membership{/ts}
221 </td>
222 <td {$valueStyle}>
223 {$membership_amount|crmMoney}
224 </td>
225 </tr>
226
227
228 {/if}
229
230 {if $receive_date}
231 <tr>
232 <td {$labelStyle}>
233 {ts}Date{/ts}
234 </td>
235 <td {$valueStyle}>
236 {$receive_date|crmDate}
237 </td>
238 </tr>
239 {/if}
240
241 {if $is_monetary and $trxn_id}
242 <tr>
243 <td {$labelStyle}>
244 {ts}Transaction #{/ts}
245 </td>
246 <td {$valueStyle}>
247 {$trxn_id}
248 </td>
249 </tr>
250 {/if}
251
252 {if $membership_trx_id}
253 <tr>
254 <td {$labelStyle}>
255 {ts}Membership Transaction #{/ts}
256 </td>
257 <td {$valueStyle}>
258 {$membership_trx_id}
259 </td>
260 </tr>
261 {/if}
262 {if $is_recur}
263 {if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'}
264 <tr>
265 <td colspan="2" {$labelStyle}>
266 {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}
267 </td>
268 </tr>
269 <tr>
270 <td colspan="2" {$labelStyle}>
271 {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by <a href="%1">visiting this web page</a>.{/ts}
272 </td>
273 </tr>
274 {/if}
275 {/if}
276
277 {if $honor_block_is_active}
278 <tr>
279 <th {$headerStyle}>
280 {$honor_type}
281 </th>
282 </tr>
283 <tr>
284 <td colspan="2" {$labelStyle}>
285 {$honor_prefix} {$honor_first_name} {$honor_last_name}
286 </td>
287 </tr>
288 {if $honor_email}
289 <tr>
290 <td {$labelStyle}>
291 {ts}Honoree Email{/ts}
292 </td>
293 <td {$valueStyle}>
294 {$honor_email}
295 </td>
296 </tr>
297 {/if}
298 {/if}
299
300 {if $pcpBlock}
301 <tr>
302 <th {$headerStyle}>
303 {ts}Personal Campaign Page{/ts}
304 </th>
305 </tr>
306 <tr>
307 <td {$labelStyle}>
308 {ts}Display In Honor Roll{/ts}
309 </td>
310 <td {$valueStyle}>
311 {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
312 </td>
313 </tr>
314 {if $pcp_roll_nickname}
315 <tr>
316 <td {$labelStyle}>
317 {ts}Nickname{/ts}
318 </td>
319 <td {$valueStyle}>
320 {$pcp_roll_nickname}
321 </td>
322 </tr>
323 {/if}
324 {if $pcp_personal_note}
325 <tr>
326 <td {$labelStyle}>
327 {ts}Personal Note{/ts}
328 </td>
329 <td {$valueStyle}>
330 {$pcp_personal_note}
331 </td>
332 </tr>
333 {/if}
334 {/if}
335
336 {if $onBehalfProfile}
337 <tr>
338 <th {$headerStyle}>
339 {$onBehalfProfile_grouptitle}
340 </th>
341 </tr>
342 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
343 <tr>
344 <td {$labelStyle}>
345 {$onBehalfName}
346 </td>
347 <td {$valueStyle}>
348 {$onBehalfValue}
349 </td>
350 </tr>
351 {/foreach}
352 {/if}
353
354 {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
355 {if $is_pay_later}
356 <tr>
357 <th {$headerStyle}>
358 {ts}Registered Email{/ts}
359 </th>
360 </tr>
361 <tr>
362 <td colspan="2" {$valueStyle}>
363 {$email}
364 </td>
365 </tr>
366 {elseif $amount GT 0 OR $membership_amount GT 0}
367 <tr>
368 <th {$headerStyle}>
369 {ts}Billing Name and Address{/ts}
370 </th>
371 </tr>
372 <tr>
373 <td colspan="2" {$valueStyle}>
374 {$billingName}<br />
375 {$address|nl2br}<br />
376 {$email}
377 </td>
378 </tr>
379 {/if}
380 {/if}
381
382 {if $contributeMode eq 'direct' AND !$is_pay_later AND ($amount GT 0 OR $membership_amount GT 0)}
383 <tr>
384 <th {$headerStyle}>
385 {ts}Credit Card Information{/ts}
386 </th>
387 </tr>
388 <tr>
389 <td colspan="2" {$valueStyle}>
390 {$credit_card_type}<br />
391 {$credit_card_number}<br />
392 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
393 </td>
394 </tr>
395 {/if}
396
397 {if $selectPremium}
398 <tr>
399 <th {$headerStyle}>
400 {ts}Premium Information{/ts}
401 </th>
402 </tr>
403 <tr>
404 <td colspan="2" {$labelStyle}>
405 {$product_name}
406 </td>
407 </tr>
408 {if $option}
409 <tr>
410 <td {$labelStyle}>
411 {ts}Option{/ts}
412 </td>
413 <td {$valueStyle}>
414 {$option}
415 </td>
416 </tr>
417 {/if}
418 {if $sku}
419 <tr>
420 <td {$labelStyle}>
421 {ts}SKU{/ts}
422 </td>
423 <td {$valueStyle}>
424 {$sku}
425 </td>
426 </tr>
427 {/if}
428 {if $start_date}
429 <tr>
430 <td {$labelStyle}>
431 {ts}Start Date{/ts}
432 </td>
433 <td {$valueStyle}>
434 {$start_date|crmDate}
435 </td>
436 </tr>
437 {/if}
438 {if $end_date}
439 <tr>
440 <td {$labelStyle}>
441 {ts}End Date{/ts}
442 </td>
443 <td {$valueStyle}>
444 {$end_date|crmDate}
445 </td>
446 </tr>
447 {/if}
448 {if $contact_email OR $contact_phone}
449 <tr>
450 <td colspan="2" {$valueStyle}>
451 <p>{ts}For information about this premium, contact:{/ts}</p>
452 {if $contact_email}
453 <p>{$contact_email}</p>
454 {/if}
455 {if $contact_phone}
456 <p>{$contact_phone}</p>
457 {/if}
458 </td>
459 </tr>
460 {/if}
461 {if $is_deductible AND $price}
462 <tr>
463 <td colspan="2" {$valueStyle}>
464 <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>
465 </td>
466 </tr>
467 {/if}
468 {/if}
469
470 {if $customPre}
471 <tr>
472 <th {$headerStyle}>
473 {$customPre_grouptitle}
474 </th>
475 </tr>
476 {foreach from=$customPre item=customValue key=customName}
477 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
478 <tr>
479 <td {$labelStyle}>
480 {$customName}
481 </td>
482 <td {$valueStyle}>
483 {$customValue}
484 </td>
485 </tr>
486 {/if}
487 {/foreach}
488 {/if}
489
490 {if $customPost}
491 <tr>
492 <th {$headerStyle}>
493 {$customPost_grouptitle}
494 </th>
495 </tr>
496 {foreach from=$customPost item=customValue key=customName}
497 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
498 <tr>
499 <td {$labelStyle}>
500 {$customName}
501 </td>
502 <td {$valueStyle}>
503 {$customValue}
504 </td>
505 </tr>
506 {/if}
507 {/foreach}
508 {/if}
509
510 </table>
511 </center>
512
513 </body>
514 </html>