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