commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / CRM / Upgrade / 3.4.3.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="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 $onBehalfProfile}
305 <tr>
306 <th {$headerStyle}>
307 {$onBehalfProfile_grouptitle}
308 </th>
309 </tr>
310 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
311 <tr>
312 <td {$labelStyle}>
313 {$onBehalfName}
314 </td>
315 <td {$valueStyle}>
316 {$onBehalfValue}
317 </td>
318 </tr>
319 {/foreach}
320 {/if}
321
322 {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
323 {if $is_pay_later}
324 <tr>
325 <th {$headerStyle}>
326 {ts}Registered Email{/ts}
327 </th>
328 </tr>
329 <tr>
330 <td colspan="2" {$valueStyle}>
331 {$email}
332 </td>
333 </tr>
334 {elseif $amount GT 0 OR $membership_amount GT 0}
335 <tr>
336 <th {$headerStyle}>
337 {ts}Billing Name and Address{/ts}
338 </th>
339 </tr>
340 <tr>
341 <td colspan="2" {$valueStyle}>
342 {$billingName}<br />
343 {$address|nl2br}<br />
344 {$email}
345 </td>
346 </tr>
347 {/if}
348 {/if}
349
350 {if $contributeMode eq 'direct' AND !$is_pay_later AND ($amount GT 0 OR $membership_amount GT 0)}
351 <tr>
352 <th {$headerStyle}>
353 {ts}Credit Card Information{/ts}
354 </th>
355 </tr>
356 <tr>
357 <td colspan="2" {$valueStyle}>
358 {$credit_card_type}<br />
359 {$credit_card_number}<br />
360 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
361 </td>
362 </tr>
363 {/if}
364
365 {if $selectPremium}
366 <tr>
367 <th {$headerStyle}>
368 {ts}Premium Information{/ts}
369 </th>
370 </tr>
371 <tr>
372 <td colspan="2" {$labelStyle}>
373 {$product_name}
374 </td>
375 </tr>
376 {if $option}
377 <tr>
378 <td {$labelStyle}>
379 {ts}Option{/ts}
380 </td>
381 <td {$valueStyle}>
382 {$option}
383 </td>
384 </tr>
385 {/if}
386 {if $sku}
387 <tr>
388 <td {$labelStyle}>
389 {ts}SKU{/ts}
390 </td>
391 <td {$valueStyle}>
392 {$sku}
393 </td>
394 </tr>
395 {/if}
396 {if $start_date}
397 <tr>
398 <td {$labelStyle}>
399 {ts}Start Date{/ts}
400 </td>
401 <td {$valueStyle}>
402 {$start_date|crmDate}
403 </td>
404 </tr>
405 {/if}
406 {if $end_date}
407 <tr>
408 <td {$labelStyle}>
409 {ts}End Date{/ts}
410 </td>
411 <td {$valueStyle}>
412 {$end_date|crmDate}
413 </td>
414 </tr>
415 {/if}
416 {if $contact_email OR $contact_phone}
417 <tr>
418 <td colspan="2" {$valueStyle}>
419 <p>{ts}For information about this premium, contact:{/ts}</p>
420 {if $contact_email}
421 <p>{$contact_email}</p>
422 {/if}
423 {if $contact_phone}
424 <p>{$contact_phone}</p>
425 {/if}
426 </td>
427 </tr>
428 {/if}
429 {if $is_deductible AND $price}
430 <tr>
431 <td colspan="2" {$valueStyle}>
432 <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>
433 </td>
434 </tr>
435 {/if}
436 {/if}
437
438 {if $customPre}
439 <tr>
440 <th {$headerStyle}>
441 {$customPre_grouptitle}
442 </th>
443 </tr>
444 {foreach from=$customPre item=customValue key=customName}
445 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
446 <tr>
447 <td {$labelStyle}>
448 {$customName}
449 </td>
450 <td {$valueStyle}>
451 {$customValue}
452 </td>
453 </tr>
454 {/if}
455 {/foreach}
456 {/if}
457
458 {if $customPost}
459 <tr>
460 <th {$headerStyle}>
461 {$customPost_grouptitle}
462 </th>
463 </tr>
464 {foreach from=$customPost item=customValue key=customName}
465 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
466 <tr>
467 <td {$labelStyle}>
468 {$customName}
469 </td>
470 <td {$valueStyle}>
471 {$customValue}
472 </td>
473 </tr>
474 {/if}
475 {/foreach}
476 {/if}
477
478 </table>
479 </td>
480 </tr>
481
482 </table>
483 </center>
484
485 </body>
486 </html>