INFRA-132 - CRM/Case - Misc
[civicrm-core.git] / CRM / Upgrade / 3.4.3.msg_template / 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="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 $amount}
42
43
44 <tr>
45 <th {$headerStyle}>
46 {ts}Contribution Information{/ts}
47 </th>
48 </tr>
49
50 {if $lineItem and $priceSetID}
51
52 {foreach from=$lineItem item=value key=priceset}
53 <tr>
54 <td colspan="2" {$valueStyle}>
55 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
56 <tr>
57 <th>{ts}Item{/ts}</th>
58 <th>{ts}Qty{/ts}</th>
59 <th>{ts}Each{/ts}</th>
60 <th>{ts}Total{/ts}</th>
61 </tr>
62 {foreach from=$value item=line}
63 <tr>
64 <td>
65 {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}
66 </td>
67 <td>
68 {$line.qty}
69 </td>
70 <td>
71 {$line.unit_price|crmMoney:$currency}
72 </td>
73 <td>
74 {$line.line_total|crmMoney:$currency}
75 </td>
76 </tr>
77 {/foreach}
78 </table>
79 </td>
80 </tr>
81 {/foreach}
82 <tr>
83 <td {$labelStyle}>
84 {ts}Total Amount{/ts}
85 </td>
86 <td {$valueStyle}>
87 {$amount|crmMoney:$currency}
88 </td>
89 </tr>
90
91 {else}
92
93 <tr>
94 <td {$labelStyle}>
95 {ts}Amount{/ts}
96 </td>
97 <td {$valueStyle}>
98 {$amount|crmMoney:$currency} {if $amount_level} - {$amount_level}{/if}
99 </td>
100 </tr>
101
102 {/if}
103
104
105 {/if}
106
107
108 {if $receive_date}
109 <tr>
110 <td {$labelStyle}>
111 {ts}Date{/ts}
112 </td>
113 <td {$valueStyle}>
114 {$receive_date|crmDate}
115 </td>
116 </tr>
117 {/if}
118
119 {if $is_monetary and $trxn_id}
120 <tr>
121 <td {$labelStyle}>
122 {ts}Transaction #{/ts}
123 </td>
124 <td {$valueStyle}>
125 {$trxn_id}
126 </td>
127 </tr>
128 {/if}
129
130 {if $is_recur}
131 {if $contributeMode eq 'notify'}
132 <tr>
133 <td {$labelStyle}>
134 {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can modify or cancel future contributions by <a href="%1">logging in to your account</a>.{/ts}
135 </td>
136 </tr>
137 {elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
138 <tr>
139 <td {$labelStyle}>
140 {ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
141 </td>
142 </tr>
143 {/if}
144 {/if}
145
146 {if $honor_block_is_active}
147 <tr>
148 <th {$headerStyle}>
149 {$honor_type}
150 </th>
151 </tr>
152 <tr>
153 <td colspan="2" {$labelStyle}>
154 {$honor_prefix} {$honor_first_name} {$honor_last_name}
155 </td>
156 </tr>
157 {if $honor_email}
158 <tr>
159 <td {$labelStyle}>
160 {ts}Honoree Email{/ts}
161 </td>
162 <td {$valueStyle}>
163 {$honor_email}
164 </td>
165 </tr>
166 {/if}
167 {/if}
168
169 {if $pcpBlock}
170 <tr>
171 <th {$headerStyle}>
172 {ts}Personal Campaign Page{/ts}
173 </th>
174 </tr>
175 <tr>
176 <td {$labelStyle}>
177 {ts}Display In Honor Roll{/ts}
178 </td>
179 <td {$valueStyle}>
180 {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
181 </td>
182 </tr>
183 {if $pcp_roll_nickname}
184 <tr>
185 <td {$labelStyle}>
186 {ts}Nickname{/ts}
187 </td>
188 <td {$valueStyle}>
189 {$pcp_roll_nickname}
190 </td>
191 </tr>
192 {/if}
193 {if $pcp_personal_note}
194 <tr>
195 <td {$labelStyle}>
196 {ts}Personal Note{/ts}
197 </td>
198 <td {$valueStyle}>
199 {$pcp_personal_note}
200 </td>
201 </tr>
202 {/if}
203 {/if}
204
205 {if $onBehalfProfile}
206 <tr>
207 <th {$headerStyle}>
208 {$onBehalfProfile_grouptitle}
209 </th>
210 </tr>
211 {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
212 <tr>
213 <td {$labelStyle}>
214 {$onBehalfName}
215 </td>
216 <td {$valueStyle}>
217 {$onBehalfValue}
218 </td>
219 </tr>
220 {/foreach}
221 {/if}
222
223 {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
224 {if $is_pay_later}
225 <tr>
226 <th {$headerStyle}>
227 {ts}Registered Email{/ts}
228 </th>
229 </tr>
230 <tr>
231 <td colspan="2" {$valueStyle}>
232 {$email}
233 </td>
234 </tr>
235 {elseif $amount GT 0}
236 <tr>
237 <th {$headerStyle}>
238 {ts}Billing Name and Address{/ts}
239 </th>
240 </tr>
241 <tr>
242 <td colspan="2" {$valueStyle}>
243 {$billingName}<br />
244 {$address|nl2br}<br />
245 {$email}
246 </td>
247 </tr>
248 {/if}
249 {/if}
250
251 {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
252 <tr>
253 <th {$headerStyle}>
254 {ts}Credit Card Information{/ts}
255 </th>
256 </tr>
257 <tr>
258 <td colspan="2" {$valueStyle}>
259 {$credit_card_type}<br />
260 {$credit_card_number}<br />
261 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
262 </td>
263 </tr>
264 {/if}
265
266 {if $selectPremium}
267 <tr>
268 <th {$headerStyle}>
269 {ts}Premium Information{/ts}
270 </th>
271 </tr>
272 <tr>
273 <td colspan="2" {$labelStyle}>
274 {$product_name}
275 </td>
276 </tr>
277 {if $option}
278 <tr>
279 <td {$labelStyle}>
280 {ts}Option{/ts}
281 </td>
282 <td {$valueStyle}>
283 {$option}
284 </td>
285 </tr>
286 {/if}
287 {if $sku}
288 <tr>
289 <td {$labelStyle}>
290 {ts}SKU{/ts}
291 </td>
292 <td {$valueStyle}>
293 {$sku}
294 </td>
295 </tr>
296 {/if}
297 {if $start_date}
298 <tr>
299 <td {$labelStyle}>
300 {ts}Start Date{/ts}
301 </td>
302 <td {$valueStyle}>
303 {$start_date|crmDate}
304 </td>
305 </tr>
306 {/if}
307 {if $end_date}
308 <tr>
309 <td {$labelStyle}>
310 {ts}End Date{/ts}
311 </td>
312 <td {$valueStyle}>
313 {$end_date|crmDate}
314 </td>
315 </tr>
316 {/if}
317 {if $contact_email OR $contact_phone}
318 <tr>
319 <td colspan="2" {$valueStyle}>
320 <p>{ts}For information about this premium, contact:{/ts}</p>
321 {if $contact_email}
322 <p>{$contact_email}</p>
323 {/if}
324 {if $contact_phone}
325 <p>{$contact_phone}</p>
326 {/if}
327 </td>
328 </tr>
329 {/if}
330 {if $is_deductible AND $price}
331 <tr>
332 <td colspan="2" {$valueStyle}>
333 <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>
334 </td>
335 </tr>
336 {/if}
337 {/if}
338
339 {if $customPre}
340 <tr>
341 <th {$headerStyle}>
342 {$customPre_grouptitle}
343 </th>
344 </tr>
345 {foreach from=$customPre item=customValue key=customName}
346 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
347 <tr>
348 <td {$labelStyle}>
349 {$customName}
350 </td>
351 <td {$valueStyle}>
352 {$customValue}
353 </td>
354 </tr>
355 {/if}
356 {/foreach}
357 {/if}
358
359 {if $customPost}
360 <tr>
361 <th {$headerStyle}>
362 {$customPost_grouptitle}
363 </th>
364 </tr>
365 {foreach from=$customPost item=customValue key=customName}
366 {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
367 <tr>
368 <td {$labelStyle}>
369 {$customName}
370 </td>
371 <td {$valueStyle}>
372 {$customValue}
373 </td>
374 </tr>
375 {/if}
376 {/foreach}
377 {/if}
378
379 </table>
380 </td>
381 </tr>
382
383 </table>
384 </center>
385
386 </body>
387 </html>