commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / xml / templates / message_templates / contribution_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 $amount}
41
42
43 <tr>
44 <th {$headerStyle}>
45 {ts}Contribution Information{/ts}
46 </th>
47 </tr>
48
49 {if $lineItem and $priceSetID and !$is_quick_config}
50
51 {foreach from=$lineItem item=value key=priceset}
52 <tr>
53 <td colspan="2" {$valueStyle}>
54 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
55 <tr>
56 <th>{ts}Item{/ts}</th>
57 <th>{ts}Qty{/ts}</th>
58 <th>{ts}Each{/ts}</th>
59 {if $dataArray}
60 <th>{ts}Subtotal{/ts}</th>
61 <th>{ts}Tax Rate{/ts}</th>
62 <th>{ts}Tax Amount{/ts}</th>
63 {/if}
64 <th>{ts}Total{/ts}</th>
65 </tr>
66 {foreach from=$value item=line}
67 <tr>
68 <td>
69 {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}
70 </td>
71 <td>
72 {$line.qty}
73 </td>
74 <td>
75 {$line.unit_price|crmMoney:$currency}
76 </td>
77 {if $getTaxDetails}
78 <td>
79 {$line.unit_price*$line.qty|crmMoney:$currency}
80 </td>
81 {if $line.tax_rate != "" || $line.tax_amount != ""}
82 <td>
83 {$line.tax_rate|string_format:"%.2f"}%
84 </td>
85 <td>
86 {$line.tax_amount|crmMoney:$currency}
87 </td>
88 {else}
89 <td></td>
90 <td></td>
91 {/if}
92 {/if}
93 <td>
94 {$line.line_total+$line.tax_amount|crmMoney:$currency}
95 </td>
96 </tr>
97 {/foreach}
98 </table>
99 </td>
100 </tr>
101 {/foreach}
102 {if $dataArray}
103 <tr>
104 <td {$labelStyle}>
105 {ts} Amount before Tax : {/ts}
106 </td>
107 <td {$valueStyle}>
108 {$amount-$totalTaxAmount|crmMoney:$currency}
109 </td>
110 </tr>
111
112 {foreach from=$dataArray item=value key=priceset}
113 <tr>
114 {if $priceset || $priceset == 0}
115 <td>&nbsp;{$taxTerm} {$priceset|string_format:"%.2f"}%</td>
116 <td>&nbsp;{$value|crmMoney:$currency}</td>
117 {else}
118 <td>&nbsp;{ts}No{/ts} {$taxTerm}</td>
119 <td>&nbsp;{$value|crmMoney:$currency}</td>
120 {/if}
121 </tr>
122 {/foreach}
123
124 {/if}
125 {if $totalTaxAmount}
126 <tr>
127 <td {$labelStyle}>
128 {ts}Total Tax{/ts}
129 </td>
130 <td {$valueStyle}>
131 {$totalTaxAmount|crmMoney:$currency}
132 </td>
133 </tr>
134 {/if}
135 <tr>
136 <td {$labelStyle}>
137 {ts}Total Amount{/ts}
138 </td>
139 <td {$valueStyle}>
140 {$amount|crmMoney:$currency}
141 </td>
142 </tr>
143
144 {else}
145
146 {if $totalTaxAmount}
147 <tr>
148 <td {$labelStyle}>
149 {ts}Total Tax Amount{/ts}
150 </td>
151 <td {$valueStyle}>
152 {$totalTaxAmount|crmMoney:$currency}
153 </td>
154 </tr>
155 {/if}
156 <tr>
157 <td {$labelStyle}>
158 {ts}Amount{/ts}
159 </td>
160 <td {$valueStyle}>
161 {$amount|crmMoney:$currency} {if $amount_level} - {$amount_level}{/if}
162 </td>
163 </tr>
164
165 {/if}
166
167 {/if}
168
169
170 {if $receive_date}
171 <tr>
172 <td {$labelStyle}>
173 {ts}Date{/ts}
174 </td>
175 <td {$valueStyle}>
176 {$receive_date|crmDate}
177 </td>
178 </tr>
179 {/if}
180
181 {if $is_monetary and $trxn_id}
182 <tr>
183 <td {$labelStyle}>
184 {ts}Transaction #{/ts}
185 </td>
186 <td {$valueStyle}>
187 {$trxn_id}
188 </td>
189 </tr>
190 {/if}
191
192 {if $is_recur}
193 {if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'}
194 <tr>
195 <td colspan="2" {$labelStyle}>
196 {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can cancel future contributions by <a href="%1">visiting this web page</a>.{/ts}
197 </td>
198 {if $updateSubscriptionBillingUrl}
199 </tr>
200 <tr>
201 <td colspan="2" {$labelStyle}>
202 {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
203 </td>
204 {/if}
205 </tr>
206 <tr>
207 <td colspan="2" {$labelStyle}>
208 {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts}
209 </td>
210 </tr>
211 {/if}
212 {/if}
213
214 {if $honor_block_is_active}
215 <tr>
216 <th {$headerStyle}>
217 {$soft_credit_type}
218 </th>
219 </tr>
220 {foreach from=$honoreeProfile item=value key=label}
221 <tr>
222 <td {$labelStyle}>
223 {$label}
224 </td>
225 <td {$valueStyle}>
226 {$value}
227 </td>
228 </tr>
229 {/foreach}
230 {elseif $softCreditTypes and $softCredits}
231 {foreach from=$softCreditTypes item=softCreditType key=n}
232 <tr>
233 <th {$headerStyle}>
234 {$softCreditType}
235 </th>
236 </tr>
237 {foreach from=$softCredits.$n item=value key=label}
238 <tr>
239 <td {$labelStyle}>
240 {$label}
241 </td>
242 <td {$valueStyle}>
243 {$value}
244 </td>
245 </tr>
246 {/foreach}
247 {/foreach}
248 {/if}
249
250 {if $pcpBlock}
251 <tr>
252 <th {$headerStyle}>
253 {ts}Personal Campaign Page{/ts}
254 </th>
255 </tr>
256 <tr>
257 <td {$labelStyle}>
258 {ts}Display In Honor Roll{/ts}
259 </td>
260 <td {$valueStyle}>
261 {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
262 </td>
263 </tr>
264 {if $pcp_roll_nickname}
265 <tr>
266 <td {$labelStyle}>
267 {ts}Nickname{/ts}
268 </td>
269 <td {$valueStyle}>
270 {$pcp_roll_nickname}
271 </td>
272 </tr>
273 {/if}
274 {if $pcp_personal_note}
275 <tr>
276 <td {$labelStyle}>
277 {ts}Personal Note{/ts}
278 </td>
279 <td {$valueStyle}>
280 {$pcp_personal_note}
281 </td>
282 </tr>
283 {/if}
284 {/if}
285
286 {if $onBehalfProfile}
287 <tr>
288 <th {$headerStyle}>
289 {$onBehalfProfile_grouptitle}
290 </th>
291 </tr>
292 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
293 <tr>
294 <td {$labelStyle}>
295 {$onBehalfName}
296 </td>
297 <td {$valueStyle}>
298 {$onBehalfValue}
299 </td>
300 </tr>
301 {/foreach}
302 {/if}
303
304 {if $isShare}
305 <tr>
306 <td colspan="2" {$valueStyle}>
307 {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture}
308 {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl}
309 </td>
310 </tr>
311 {/if}
312
313 {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
314 {if $is_pay_later && !$isBillingAddressRequiredForPayLater}
315 <tr>
316 <th {$headerStyle}>
317 {ts}Registered Email{/ts}
318 </th>
319 </tr>
320 <tr>
321 <td colspan="2" {$valueStyle}>
322 {$email}
323 </td>
324 </tr>
325 {elseif $amount GT 0}
326 <tr>
327 <th {$headerStyle}>
328 {ts}Billing Name and Address{/ts}
329 </th>
330 </tr>
331 <tr>
332 <td colspan="2" {$valueStyle}>
333 {$billingName}<br />
334 {$address|nl2br}<br />
335 {$email}
336 </td>
337 </tr>
338 {/if}
339 {/if}
340
341 {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
342 <tr>
343 <th {$headerStyle}>
344 {ts}Credit Card Information{/ts}
345 </th>
346 </tr>
347 <tr>
348 <td colspan="2" {$valueStyle}>
349 {$credit_card_type}<br />
350 {$credit_card_number}<br />
351 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
352 </td>
353 </tr>
354 {/if}
355
356 {if $selectPremium}
357 <tr>
358 <th {$headerStyle}>
359 {ts}Premium Information{/ts}
360 </th>
361 </tr>
362 <tr>
363 <td colspan="2" {$labelStyle}>
364 {$product_name}
365 </td>
366 </tr>
367 {if $option}
368 <tr>
369 <td {$labelStyle}>
370 {ts}Option{/ts}
371 </td>
372 <td {$valueStyle}>
373 {$option}
374 </td>
375 </tr>
376 {/if}
377 {if $sku}
378 <tr>
379 <td {$labelStyle}>
380 {ts}SKU{/ts}
381 </td>
382 <td {$valueStyle}>
383 {$sku}
384 </td>
385 </tr>
386 {/if}
387 {if $start_date}
388 <tr>
389 <td {$labelStyle}>
390 {ts}Start Date{/ts}
391 </td>
392 <td {$valueStyle}>
393 {$start_date|crmDate}
394 </td>
395 </tr>
396 {/if}
397 {if $end_date}
398 <tr>
399 <td {$labelStyle}>
400 {ts}End Date{/ts}
401 </td>
402 <td {$valueStyle}>
403 {$end_date|crmDate}
404 </td>
405 </tr>
406 {/if}
407 {if $contact_email OR $contact_phone}
408 <tr>
409 <td colspan="2" {$valueStyle}>
410 <p>{ts}For information about this premium, contact:{/ts}</p>
411 {if $contact_email}
412 <p>{$contact_email}</p>
413 {/if}
414 {if $contact_phone}
415 <p>{$contact_phone}</p>
416 {/if}
417 </td>
418 </tr>
419 {/if}
420 {if $is_deductible AND $price}
421 <tr>
422 <td colspan="2" {$valueStyle}>
423 <p>{ts 1=$price|crmMoney:$currency}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>
424 </td>
425 </tr>
426 {/if}
427 {/if}
428
429 {if $customPre}
430 <tr>
431 <th {$headerStyle}>
432 {$customPre_grouptitle}
433 </th>
434 </tr>
435 {foreach from=$customPre item=customValue key=customName}
436 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
437 <tr>
438 <td {$labelStyle}>
439 {$customName}
440 </td>
441 <td {$valueStyle}>
442 {$customValue}
443 </td>
444 </tr>
445 {/if}
446 {/foreach}
447 {/if}
448
449 {if $customPost}
450 <tr>
451 <th {$headerStyle}>
452 {$customPost_grouptitle}
453 </th>
454 </tr>
455 {foreach from=$customPost item=customValue key=customName}
456 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
457 <tr>
458 <td {$labelStyle}>
459 {$customName}
460 </td>
461 <td {$valueStyle}>
462 {$customValue}
463 </td>
464 </tr>
465 {/if}
466 {/foreach}
467 {/if}
468
469 </table>
470 </center>
471
472 </body>
473 </html>