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