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="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 | {$line.description|truncate:30:"..."} | |
66 | </td> | |
67 | <td> | |
68 | {$line.qty} | |
69 | </td> | |
70 | <td> | |
71 | {$line.unit_price|crmMoney} | |
72 | </td> | |
73 | <td> | |
74 | {$line.line_total|crmMoney} | |
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} | |
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} {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 $onBehalfName} | |
206 | <tr> | |
207 | <th {$headerStyle}> | |
208 | {ts}On Behalf Of{/ts} | |
209 | </th> | |
210 | </tr> | |
211 | <tr> | |
212 | <td colspan="2" {$valueStyle}> | |
213 | {$onBehalfName}<br /> | |
214 | {$onBehalfAddress|nl2br}<br /> | |
215 | {$onBehalfEmail} | |
216 | </td> | |
217 | </tr> | |
218 | {/if} | |
219 | ||
220 | {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary} | |
221 | {if $is_pay_later} | |
222 | <tr> | |
223 | <th {$headerStyle}> | |
224 | {ts}Registered Email{/ts} | |
225 | </th> | |
226 | </tr> | |
227 | <tr> | |
228 | <td colspan="2" {$valueStyle}> | |
229 | {$email} | |
230 | </td> | |
231 | </tr> | |
232 | {elseif $amount GT 0} | |
233 | <tr> | |
234 | <th {$headerStyle}> | |
235 | {ts}Billing Name and Address{/ts} | |
236 | </th> | |
237 | </tr> | |
238 | <tr> | |
239 | <td colspan="2" {$valueStyle}> | |
240 | {$billingName}<br /> | |
241 | {$address|nl2br}<br /> | |
242 | {$email} | |
243 | </td> | |
244 | </tr> | |
245 | {/if} | |
246 | {/if} | |
247 | ||
248 | {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0} | |
249 | <tr> | |
250 | <th {$headerStyle}> | |
251 | {ts}Credit Card Information{/ts} | |
252 | </th> | |
253 | </tr> | |
254 | <tr> | |
255 | <td colspan="2" {$valueStyle}> | |
256 | {$credit_card_type}<br /> | |
257 | {$credit_card_number}<br /> | |
258 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br /> | |
259 | </td> | |
260 | </tr> | |
261 | {/if} | |
262 | ||
263 | {if $selectPremium} | |
264 | <tr> | |
265 | <th {$headerStyle}> | |
266 | {ts}Premium Information{/ts} | |
267 | </th> | |
268 | </tr> | |
269 | <tr> | |
270 | <td colspan="2" {$labelStyle}> | |
271 | {$product_name} | |
272 | </td> | |
273 | </tr> | |
274 | {if $option} | |
275 | <tr> | |
276 | <td {$labelStyle}> | |
277 | {ts}Option{/ts} | |
278 | </td> | |
279 | <td {$valueStyle}> | |
280 | {$option} | |
281 | </td> | |
282 | </tr> | |
283 | {/if} | |
284 | {if $sku} | |
285 | <tr> | |
286 | <td {$labelStyle}> | |
287 | {ts}SKU{/ts} | |
288 | </td> | |
289 | <td {$valueStyle}> | |
290 | {$sku} | |
291 | </td> | |
292 | </tr> | |
293 | {/if} | |
294 | {if $start_date} | |
295 | <tr> | |
296 | <td {$labelStyle}> | |
297 | {ts}Start Date{/ts} | |
298 | </td> | |
299 | <td {$valueStyle}> | |
300 | {$start_date|crmDate} | |
301 | </td> | |
302 | </tr> | |
303 | {/if} | |
304 | {if $end_date} | |
305 | <tr> | |
306 | <td {$labelStyle}> | |
307 | {ts}End Date{/ts} | |
308 | </td> | |
309 | <td {$valueStyle}> | |
310 | {$end_date|crmDate} | |
311 | </td> | |
312 | </tr> | |
313 | {/if} | |
314 | {if $contact_email OR $contact_phone} | |
315 | <tr> | |
316 | <td colspan="2" {$valueStyle}> | |
317 | <p>{ts}For information about this premium, contact:{/ts}</p> | |
318 | {if $contact_email} | |
319 | <p>{$contact_email}</p> | |
320 | {/if} | |
321 | {if $contact_phone} | |
322 | <p>{$contact_phone}</p> | |
323 | {/if} | |
324 | </td> | |
325 | </tr> | |
326 | {/if} | |
327 | {if $is_deductible AND $price} | |
328 | <tr> | |
329 | <td colspan="2" {$valueStyle}> | |
330 | <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> | |
331 | </td> | |
332 | </tr> | |
333 | {/if} | |
334 | {/if} | |
335 | ||
336 | {if $customPre} | |
337 | <tr> | |
338 | <th {$headerStyle}> | |
339 | {ts}{$customPre_grouptitle} {/ts} | |
340 | </th> | |
341 | </tr> | |
342 | {foreach from=$customPre item=customValue key=customName} | |
343 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
344 | <tr> | |
345 | <td {$labelStyle}> | |
346 | {$customName} | |
347 | </td> | |
348 | <td {$valueStyle}> | |
349 | {$customValue} | |
350 | </td> | |
351 | </tr> | |
352 | {/if} | |
353 | {/foreach} | |
354 | {/if} | |
355 | ||
356 | {if $customPost} | |
357 | <tr> | |
358 | <th {$headerStyle}> | |
359 | {ts}{$customPost_grouptitle}{/ts} | |
360 | </th> | |
361 | </tr> | |
362 | {foreach from=$customPost item=customValue key=customName} | |
363 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} | |
364 | <tr> | |
365 | <td {$labelStyle}> | |
366 | {$customName} | |
367 | </td> | |
368 | <td {$valueStyle}> | |
369 | {$customValue} | |
370 | </td> | |
371 | </tr> | |
372 | {/if} | |
373 | {/foreach} | |
374 | {/if} | |
375 | ||
376 | </table> | |
377 | </td> | |
378 | </tr> | |
379 | ||
380 | </table> | |
381 | </center> | |
382 | ||
383 | </body> | |
384 | </html> |