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