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> | |
9e26a129 | 24 | <p>{contact.email_greeting}</p> |
6a488035 TO |
25 | |
26 | {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)} | |
27 | <p>{$event.confirm_email_text|htmlize}</p> | |
28 | {/if} | |
29 | ||
30 | {if $isOnWaitlist} | |
31 | <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> | |
32 | {if $isPrimary} | |
0865a4ed | 33 | <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p> |
6a488035 TO |
34 | {/if} |
35 | {elseif $isRequireApproval} | |
36 | <p>{ts}Your registration has been submitted.{/ts}</p> | |
37 | {if $isPrimary} | |
0865a4ed | 38 | <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> |
6a488035 TO |
39 | {/if} |
40 | {elseif $is_pay_later} | |
41 | <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} | |
42 | {else} | |
43 | <p>{ts}Please print this confirmation for your records.{/ts}</p> | |
44 | {/if} | |
45 | ||
46 | </td> | |
47 | </tr> | |
48 | <tr> | |
49 | <td> | |
50 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> | |
51 | <tr> | |
52 | <th {$headerStyle}> | |
53 | {ts}Event Information and Location{/ts} | |
54 | </th> | |
55 | </tr> | |
56 | <tr> | |
57 | <td colspan="2" {$valueStyle}> | |
58 | {$event.event_title}<br /> | |
59 | {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if} | |
60 | </td> | |
61 | </tr> | |
62 | ||
63 | {if $event.participant_role neq 'Attendee' and $defaultRole} | |
64 | <tr> | |
65 | <td {$labelStyle}> | |
66 | {ts}Participant Role{/ts} | |
67 | </td> | |
68 | <td {$valueStyle}> | |
69 | {$event.participant_role} | |
70 | </td> | |
71 | </tr> | |
72 | {/if} | |
73 | ||
74 | {if $isShowLocation} | |
75 | <tr> | |
76 | <td colspan="2" {$valueStyle}> | |
77 | {if $location.address.1.name} | |
78 | {$location.address.1.name}<br /> | |
79 | {/if} | |
80 | {if $location.address.1.street_address} | |
81 | {$location.address.1.street_address}<br /> | |
82 | {/if} | |
83 | {if $location.address.1.supplemental_address_1} | |
84 | {$location.address.1.supplemental_address_1}<br /> | |
85 | {/if} | |
86 | {if $location.address.1.supplemental_address_2} | |
87 | {$location.address.1.supplemental_address_2}<br /> | |
88 | {/if} | |
89 | {if $location.address.1.city} | |
90 | {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br /> | |
91 | {/if} | |
92 | </td> | |
93 | </tr> | |
94 | {/if} | |
95 | ||
96 | {if $location.phone.1.phone || $location.email.1.email} | |
97 | <tr> | |
98 | <td colspan="2" {$labelStyle}> | |
99 | {ts}Event Contacts:{/ts} | |
100 | </td> | |
101 | </tr> | |
102 | {foreach from=$location.phone item=phone} | |
103 | {if $phone.phone} | |
104 | <tr> | |
105 | <td {$labelStyle}> | |
106 | {if $phone.phone_type} | |
107 | {$phone.phone_type_display} | |
108 | {else} | |
109 | {ts}Phone{/ts} | |
110 | {/if} | |
111 | </td> | |
112 | <td {$valueStyle}> | |
5d9ebb64 | 113 | {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if} |
6a488035 TO |
114 | </td> |
115 | </tr> | |
116 | {/if} | |
117 | {/foreach} | |
118 | {foreach from=$location.email item=eventEmail} | |
119 | {if $eventEmail.email} | |
120 | <tr> | |
121 | <td {$labelStyle}> | |
122 | {ts}Email{/ts} | |
123 | </td> | |
124 | <td {$valueStyle}> | |
125 | {$eventEmail.email} | |
126 | </td> | |
127 | </tr> | |
128 | {/if} | |
129 | {/foreach} | |
130 | {/if} | |
7f7fa13a EM |
131 | |
132 | {if $event.is_public} | |
278f760d J |
133 | <tr> |
134 | <td colspan="2" {$valueStyle}> | |
135 | {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} | |
136 | <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a> | |
137 | </td> | |
138 | </tr> | |
4de4dbe9 | 139 | {/if} |
7f7fa13a | 140 | |
6a488035 TO |
141 | {if $email} |
142 | <tr> | |
143 | <th {$headerStyle}> | |
144 | {ts}Registered Email{/ts} | |
145 | </th> | |
146 | </tr> | |
147 | <tr> | |
148 | <td colspan="2" {$valueStyle}> | |
149 | {$email} | |
150 | </td> | |
151 | </tr> | |
152 | {/if} | |
153 | ||
154 | ||
155 | {if $event.is_monetary} | |
156 | ||
157 | <tr> | |
158 | <th {$headerStyle}> | |
159 | {$event.fee_label} | |
160 | </th> | |
161 | </tr> | |
162 | ||
163 | {if $lineItem} | |
164 | {foreach from=$lineItem item=value key=priceset} | |
165 | {if $value neq 'skip'} | |
166 | {if $isPrimary} | |
167 | {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} | |
168 | <tr> | |
169 | <td colspan="2" {$labelStyle}> | |
170 | {ts 1=$priceset+1}Participant %1{/ts} | |
171 | </td> | |
172 | </tr> | |
173 | {/if} | |
174 | {/if} | |
175 | <tr> | |
176 | <td colspan="2" {$valueStyle}> | |
177 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
178 | <tr> | |
179 | <th>{ts}Item{/ts}</th> | |
180 | <th>{ts}Qty{/ts}</th> | |
181 | <th>{ts}Each{/ts}</th> | |
7cf82823 | 182 | {if $dataArray} |
79d001a2 PB |
183 | <th>{ts}SubTotal{/ts}</th> |
184 | <th>{ts}Tax Rate{/ts}</th> | |
185 | <th>{ts}Tax Amount{/ts}</th> | |
186 | {/if} | |
6a488035 | 187 | <th>{ts}Total{/ts}</th> |
011aeb62 | 188 | {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if} |
6a488035 TO |
189 | </tr> |
190 | {foreach from=$value item=line} | |
191 | <tr> | |
192 | <td> | |
011aeb62 | 193 | {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} |
6a488035 TO |
194 | </td> |
195 | <td> | |
196 | {$line.qty} | |
197 | </td> | |
198 | <td> | |
199 | {$line.unit_price|crmMoney} | |
200 | </td> | |
7cf82823 | 201 | {if $dataArray} |
79d001a2 PB |
202 | <td> |
203 | {$line.unit_price*$line.qty|crmMoney} | |
204 | </td> | |
7cf82823 PB |
205 | {if $line.tax_rate != "" || $line.tax_amount != ""} |
206 | <td> | |
207 | {$line.tax_rate|string_format:"%.2f"}% | |
208 | </td> | |
209 | <td> | |
210 | {$line.tax_amount|crmMoney} | |
211 | </td> | |
212 | {else} | |
213 | <td></td> | |
214 | <td></td> | |
215 | {/if} | |
79d001a2 | 216 | {/if} |
6a488035 | 217 | <td> |
7cf82823 | 218 | {$line.line_total+$line.tax_amount|crmMoney} |
6a488035 | 219 | </td> |
011aeb62 | 220 | {if $pricesetFieldsCount } |
221 | <td> | |
222 | {$line.participant_count} | |
6a488035 | 223 | </td> |
011aeb62 | 224 | {/if} |
6a488035 TO |
225 | </tr> |
226 | {/foreach} | |
227 | </table> | |
228 | </td> | |
229 | </tr> | |
230 | {/if} | |
231 | {/foreach} | |
7cf82823 | 232 | {if $dataArray} |
79d001a2 PB |
233 | <tr> |
234 | <td {$labelStyle}> | |
d5be719d | 235 | {ts}Amount Before Tax:{/ts} |
79d001a2 PB |
236 | </td> |
237 | <td {$valueStyle}> | |
238 | {$totalAmount-$totalTaxAmount|crmMoney} | |
239 | </td> | |
240 | </tr> | |
241 | {foreach from=$dataArray item=value key=priceset} | |
242 | <tr> | |
7cf82823 | 243 | {if $priceset || $priceset == 0} |
7f7fa13a | 244 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> |
7cf82823 PB |
245 | <td> {$value|crmMoney:$currency}</td> |
246 | {else} | |
247 | <td> {ts}No{/ts} {$taxTerm}</td> | |
248 | <td> {$value|crmMoney:$currency}</td> | |
79d001a2 PB |
249 | {/if} |
250 | </tr> | |
251 | {/foreach} | |
252 | {/if} | |
6a488035 TO |
253 | {/if} |
254 | ||
255 | {if $amount && !$lineItem} | |
256 | {foreach from=$amount item=amnt key=level} | |
257 | <tr> | |
258 | <td colspan="2" {$valueStyle}> | |
259 | {$amnt.amount|crmMoney} {$amnt.label} | |
260 | </td> | |
261 | </tr> | |
262 | {/foreach} | |
263 | {/if} | |
79d001a2 PB |
264 | {if $totalTaxAmount} |
265 | <tr> | |
266 | <td {$labelStyle}> | |
267 | {ts}Total Tax Amount{/ts} | |
268 | </td> | |
269 | <td {$valueStyle}> | |
270 | {$totalTaxAmount|crmMoney:$currency} | |
271 | </td> | |
272 | </tr> | |
273 | {/if} | |
6a488035 TO |
274 | {if $isPrimary} |
275 | <tr> | |
276 | <td {$labelStyle}> | |
81f3d017 PJ |
277 | {if $balanceAmount} |
278 | {ts}Total Paid{/ts} | |
279 | {else} | |
280 | {ts}Total Amount{/ts} | |
281 | {/if} | |
6a488035 TO |
282 | </td> |
283 | <td {$valueStyle}> | |
284 | {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if} | |
285 | </td> | |
286 | </tr> | |
81f3d017 PJ |
287 | {if $balanceAmount} |
288 | <tr> | |
289 | <td {$labelStyle}> | |
290 | {ts}Balance{/ts} | |
291 | </td> | |
292 | <td {$valueStyle}> | |
293 | {$balanceAmount|crmMoney} | |
294 | </td> | |
295 | </tr> | |
296 | {/if} | |
6a488035 TO |
297 | {if $pricesetFieldsCount } |
298 | <tr> | |
011aeb62 | 299 | <td {$labelStyle}> |
300 | {ts}Total Participants{/ts}</td> | |
6a488035 | 301 | <td {$valueStyle}> |
011aeb62 | 302 | {assign var="count" value= 0} |
6a488035 TO |
303 | {foreach from=$lineItem item=pcount} |
304 | {assign var="lineItemCount" value=0} | |
305 | {if $pcount neq 'skip'} | |
306 | {foreach from=$pcount item=p_count} | |
307 | {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} | |
308 | {/foreach} | |
309 | {if $lineItemCount < 1 } | |
310 | assign var="lineItemCount" value=1} | |
011aeb62 | 311 | {/if} |
6a488035 TO |
312 | {assign var="count" value=$count+$lineItemCount} |
313 | {/if} | |
314 | {/foreach} | |
011aeb62 | 315 | {$count} |
6a488035 TO |
316 | </td> |
317 | </tr> | |
318 | {/if} | |
319 | {if $is_pay_later} | |
320 | <tr> | |
321 | <td colspan="2" {$labelStyle}> | |
322 | {$pay_later_receipt} | |
323 | </td> | |
324 | </tr> | |
325 | {/if} | |
326 | ||
327 | {if $register_date} | |
328 | <tr> | |
329 | <td {$labelStyle}> | |
330 | {ts}Registration Date{/ts} | |
331 | </td> | |
332 | <td {$valueStyle}> | |
333 | {$register_date|crmDate} | |
334 | </td> | |
335 | </tr> | |
336 | {/if} | |
337 | ||
338 | {if $receive_date} | |
339 | <tr> | |
340 | <td {$labelStyle}> | |
341 | {ts}Transaction Date{/ts} | |
342 | </td> | |
343 | <td {$valueStyle}> | |
344 | {$receive_date|crmDate} | |
345 | </td> | |
346 | </tr> | |
347 | {/if} | |
348 | ||
349 | {if $contributionTypeName} | |
350 | <tr> | |
351 | <td {$labelStyle}> | |
352 | {ts}Financial Type{/ts} | |
353 | </td> | |
354 | <td {$valueStyle}> | |
355 | {$contributionTypeName} | |
356 | </td> | |
357 | </tr> | |
358 | {/if} | |
359 | ||
360 | {if $trxn_id} | |
361 | <tr> | |
362 | <td {$labelStyle}> | |
363 | {ts}Transaction #{/ts} | |
364 | </td> | |
365 | <td {$valueStyle}> | |
366 | {$trxn_id} | |
367 | </td> | |
368 | </tr> | |
369 | {/if} | |
370 | ||
371 | {if $paidBy} | |
372 | <tr> | |
373 | <td {$labelStyle}> | |
374 | {ts}Paid By{/ts} | |
375 | </td> | |
376 | <td {$valueStyle}> | |
377 | {$paidBy} | |
378 | </td> | |
379 | </tr> | |
380 | {/if} | |
381 | ||
382 | {if $checkNumber} | |
383 | <tr> | |
384 | <td {$labelStyle}> | |
385 | {ts}Check Number{/ts} | |
386 | </td> | |
387 | <td {$valueStyle}> | |
388 | {$checkNumber} | |
389 | </td> | |
390 | </tr> | |
391 | {/if} | |
392 | ||
393 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
394 | <tr> | |
395 | <th {$headerStyle}> | |
396 | {ts}Billing Name and Address{/ts} | |
397 | </th> | |
398 | </tr> | |
399 | <tr> | |
400 | <td colspan="2" {$valueStyle}> | |
401 | {$billingName}<br /> | |
402 | {$address|nl2br} | |
403 | </td> | |
404 | </tr> | |
405 | {/if} | |
406 | ||
407 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
408 | <tr> | |
409 | <th {$headerStyle}> | |
410 | {ts}Credit Card Information{/ts} | |
411 | </th> | |
412 | </tr> | |
413 | <tr> | |
414 | <td colspan="2" {$valueStyle}> | |
415 | {$credit_card_type}<br /> | |
416 | {$credit_card_number}<br /> | |
417 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
418 | </td> | |
419 | </tr> | |
420 | {/if} | |
421 | ||
422 | {/if} | |
423 | ||
424 | {/if} {* End of conditional section for Paid events *} | |
425 | ||
426 | {if $customPre} | |
427 | <tr> | |
428 | <th {$headerStyle}> | |
429 | {$customPre_grouptitle} | |
430 | </th> | |
431 | </tr> | |
432 | {foreach from=$customPre item=value key=customName} | |
433 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
434 | <tr> | |
435 | <td {$labelStyle}> | |
436 | {$customName} | |
437 | </td> | |
438 | <td {$valueStyle}> | |
439 | {$value} | |
440 | </td> | |
441 | </tr> | |
442 | {/if} | |
443 | {/foreach} | |
444 | {/if} | |
445 | ||
446 | {if $customPost} | |
447 | <tr> | |
448 | <th {$headerStyle}> | |
449 | {$customPost_grouptitle} | |
450 | </th> | |
451 | </tr> | |
452 | {foreach from=$customPost item=value key=customName} | |
453 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
454 | <tr> | |
455 | <td {$labelStyle}> | |
456 | {$customName} | |
457 | </td> | |
458 | <td {$valueStyle}> | |
459 | {$value} | |
460 | </td> | |
461 | </tr> | |
462 | {/if} | |
463 | {/foreach} | |
464 | {/if} | |
465 | ||
466 | {if $customProfile} | |
467 | {foreach from=$customProfile item=value key=customName} | |
468 | <tr> | |
469 | <th {$headerStyle}> | |
470 | {ts 1=$customName+1}Participant Information - Participant %1{/ts} | |
471 | </th> | |
472 | </tr> | |
473 | {foreach from=$value item=val key=field} | |
474 | {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'} | |
475 | <tr> | |
476 | <td colspan="2" {$labelStyle}> | |
477 | {if $field eq 'additionalCustomPre'} | |
478 | {$additionalCustomPre_grouptitle} | |
479 | {else} | |
480 | {$additionalCustomPost_grouptitle} | |
481 | {/if} | |
482 | </td> | |
483 | </tr> | |
484 | {foreach from=$val item=v key=f} | |
485 | <tr> | |
486 | <td {$labelStyle}> | |
487 | {$f} | |
488 | </td> | |
489 | <td {$valueStyle}> | |
490 | {$v} | |
491 | </td> | |
492 | </tr> | |
493 | {/foreach} | |
494 | {/if} | |
495 | {/foreach} | |
496 | {/foreach} | |
497 | {/if} | |
498 | ||
499 | {if $customGroup} | |
500 | {foreach from=$customGroup item=value key=customName} | |
501 | <tr> | |
502 | <th {$headerStyle}> | |
503 | {$customName} | |
504 | </th> | |
505 | </tr> | |
506 | {foreach from=$value item=v key=n} | |
507 | <tr> | |
508 | <td {$labelStyle}> | |
509 | {$n} | |
510 | </td> | |
511 | <td {$valueStyle}> | |
512 | {$v} | |
513 | </td> | |
514 | </tr> | |
515 | {/foreach} | |
516 | {/foreach} | |
517 | {/if} | |
518 | ||
519 | </table> | |
520 | </td> | |
521 | </tr> | |
522 | ||
523 | </table> | |
524 | </center> | |
525 | ||
526 | </body> | |
527 | </html> |