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