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> | |
218 | <th>{ts}Total{/ts}</th> | |
a235e13c | 219 | {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if} |
6a488035 TO |
220 | </tr> |
221 | {foreach from=$value item=line} | |
222 | <tr> | |
223 | <td> | |
224 | {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} | |
225 | </td> | |
226 | <td> | |
227 | {$line.qty} | |
228 | </td> | |
229 | <td> | |
230 | {$line.unit_price|crmMoney:$currency} | |
231 | </td> | |
232 | <td> | |
233 | {$line.line_total|crmMoney:$currency} | |
234 | </td> | |
a235e13c | 235 | {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if} |
6a488035 TO |
236 | </tr> |
237 | {/foreach} | |
238 | </table> | |
239 | </td> | |
240 | </tr> | |
241 | {/if} | |
242 | {/foreach} | |
243 | {/if} | |
244 | ||
245 | {if $amounts && !$lineItem} | |
246 | {foreach from=$amounts item=amnt key=level} | |
247 | <tr> | |
248 | <td colspan="2" {$valueStyle}> | |
249 | {$amnt.amount|crmMoney:$currency} {$amnt.label} | |
250 | </td> | |
251 | </tr> | |
252 | {/foreach} | |
253 | {/if} | |
254 | ||
255 | {if $isPrimary} | |
256 | <tr> | |
257 | <td {$labelStyle}> | |
258 | {ts}Total Amount{/ts} | |
a235e13c | 259 | </td> |
6a488035 TO |
260 | <td {$valueStyle}> |
261 | {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if} | |
262 | </td> | |
263 | </tr> | |
264 | {if $pricesetFieldsCount } | |
265 | <tr> | |
a235e13c | 266 | <td {$labelStyle}> |
267 | {ts}Total Participants{/ts}</td> | |
6a488035 | 268 | <td {$valueStyle}> |
a235e13c | 269 | {assign var="count" value= 0} |
6a488035 TO |
270 | {foreach from=$lineItem item=pcount} |
271 | {assign var="lineItemCount" value=0} | |
272 | {if $pcount neq 'skip'} | |
273 | {foreach from=$pcount item=p_count} | |
274 | {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} | |
275 | {/foreach} | |
276 | {if $lineItemCount < 1 } | |
277 | {assign var="lineItemCount" value=1} | |
a235e13c | 278 | {/if} |
6a488035 TO |
279 | {assign var="count" value=$count+$lineItemCount} |
280 | {/if} | |
281 | {/foreach} | |
282 | {$count} | |
283 | </td> </tr> | |
284 | {/if} | |
285 | ||
286 | {if $register_date} | |
287 | <tr> | |
288 | <td {$labelStyle}> | |
289 | {ts}Registration Date{/ts} | |
290 | </td> | |
291 | <td {$valueStyle}> | |
292 | {$register_date|crmDate} | |
293 | </td> | |
294 | </tr> | |
295 | {/if} | |
296 | ||
297 | {if $receive_date} | |
298 | <tr> | |
299 | <td {$labelStyle}> | |
300 | {ts}Transaction Date{/ts} | |
301 | </td> | |
302 | <td {$valueStyle}> | |
303 | {$receive_date|crmDate} | |
304 | </td> | |
305 | </tr> | |
306 | {/if} | |
307 | ||
308 | {if $contributionTypeName} | |
309 | <tr> | |
310 | <td {$labelStyle}> | |
311 | {ts}Financial Type{/ts} | |
312 | </td> | |
313 | <td {$valueStyle}> | |
314 | {$contributionTypeName} | |
315 | </td> | |
316 | </tr> | |
317 | {/if} | |
318 | ||
319 | {if $trxn_id} | |
320 | <tr> | |
321 | <td {$labelStyle}> | |
322 | {ts}Transaction #{/ts} | |
323 | </td> | |
324 | <td {$valueStyle}> | |
325 | {$trxn_id} | |
326 | </td> | |
327 | </tr> | |
328 | {/if} | |
329 | ||
330 | {if $paidBy} | |
331 | <tr> | |
332 | <td {$labelStyle}> | |
333 | {ts}Paid By{/ts} | |
334 | </td> | |
335 | <td {$valueStyle}> | |
336 | {$paidBy} | |
337 | </td> | |
338 | </tr> | |
339 | {/if} | |
340 | ||
341 | {if $checkNumber} | |
342 | <tr> | |
343 | <td {$labelStyle}> | |
344 | {ts}Check Number{/ts} | |
345 | </td> | |
346 | <td {$valueStyle}> | |
347 | {$checkNumber} | |
348 | </td> | |
349 | </tr> | |
350 | {/if} | |
351 | ||
352 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
353 | <tr> | |
354 | <th {$headerStyle}> | |
355 | {ts}Billing Name and Address{/ts} | |
356 | </th> | |
357 | </tr> | |
358 | <tr> | |
359 | <td colspan="2" {$valueStyle}> | |
360 | {$billingName}<br /> | |
361 | {$address|nl2br} | |
362 | </td> | |
363 | </tr> | |
364 | {/if} | |
365 | ||
366 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
367 | <tr> | |
368 | <th {$headerStyle}> | |
369 | {ts}Credit Card Information{/ts} | |
370 | </th> | |
371 | </tr> | |
372 | <tr> | |
373 | <td colspan="2" {$valueStyle}> | |
374 | {$credit_card_type}<br /> | |
375 | {$credit_card_number}<br /> | |
376 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
377 | </td> | |
378 | </tr> | |
379 | {/if} | |
380 | ||
381 | {/if} | |
382 | ||
383 | {/if} {* End of conditional section for Paid events *} | |
384 | ||
385 | ||
386 | {if $customPre} | |
387 | {foreach from=$customPre item=customPr key=i} | |
388 | <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr> | |
389 | {foreach from=$customPr item=customValue key=customName} | |
390 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
391 | <tr> | |
392 | <td {$labelStyle}>{$customName}</td> | |
393 | <td {$valueStyle}>{$customValue}</td> | |
394 | </tr> | |
395 | {/if} | |
396 | {/foreach} | |
397 | {/foreach} | |
398 | {/if} | |
399 | ||
400 | {if $customPost} | |
401 | {foreach from=$customPost item=customPos key=j} | |
402 | <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr> | |
403 | {foreach from=$customPos item=customValue key=customName} | |
404 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
405 | <tr> | |
406 | <td {$labelStyle}>{$customName}</td> | |
407 | <td {$valueStyle}>{$customValue}</td> | |
408 | </tr> | |
409 | {/if} | |
410 | {/foreach} | |
411 | {/foreach} | |
412 | {/if} | |
413 | ||
414 | {if $customProfile} | |
415 | {foreach from=$customProfile.profile item=eachParticipant key=participantID} | |
416 | <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr> | |
417 | {foreach from=$eachParticipant item=eachProfile key=pid} | |
418 | <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr> | |
419 | {foreach from=$eachProfile item=val key=field} | |
420 | <tr>{foreach from=$val item=v key=f} | |
a235e13c | 421 | <td {$labelStyle}>{$field}</td> |
422 | <td {$valueStyle}>{$v}</td> | |
6a488035 TO |
423 | {/foreach} |
424 | </tr> | |
425 | {/foreach} | |
426 | {/foreach} | |
427 | {/foreach} | |
428 | {/if} | |
429 | ||
430 | {if $customGroup} | |
431 | {foreach from=$customGroup item=value key=customName} | |
432 | <tr> | |
433 | <th {$headerStyle}> | |
434 | {$customName} | |
435 | </th> | |
436 | </tr> | |
437 | {foreach from=$value item=v key=n} | |
438 | <tr> | |
439 | <td {$labelStyle}> | |
440 | {$n} | |
441 | </td> | |
442 | <td {$valueStyle}> | |
443 | {$v} | |
444 | </td> | |
445 | </tr> | |
446 | {/foreach} | |
447 | {/foreach} | |
448 | {/if} | |
a235e13c | 449 | |
6a488035 TO |
450 | </table> |
451 | </td> | |
452 | </tr> | |
453 | </table> | |
454 | </center> | |
455 | ||
456 | </body> | |
457 | </html> |