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