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">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-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}
14 <table width="500" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
17 <!-- You can add table row(s) here with logo or other header elements -->
20 <!-- BEGIN CONTENT -->
24 <p>Dear {contact.display_name},</p>
26 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
27 <p>{$event.confirm_email_text|htmlize}</p>
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>
36 <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
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>
41 {elseif $isRequireApproval}
42 <p>{ts}Your registration has been submitted.{/ts}</p>
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>
48 {elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
49 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
51 <p>{ts}Please print this confirmation for your records.{/ts}</p>
58 <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
61 {ts}Event Information and Location{/ts}
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}
72 {if $conference_sessions}
74 <td colspan="2" {$labelStyle}>
75 {ts}Your schedule:{/ts}
79 <td colspan="2" {$valueStyle}>
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}
84 <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br />
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}
93 {if $event.participant_role neq 'Attendee' and $defaultRole}
96 {ts}Participant Role{/ts}
99 {$event.participant_role}
106 <td colspan="2" {$valueStyle}>
107 {if $location.address.1.name}
108 {$location.address.1.name}<br />
110 {if $location.address.1.street_address}
111 {$location.address.1.street_address}<br />
113 {if $location.address.1.supplemental_address_1}
114 {$location.address.1.supplemental_address_1}<br />
116 {if $location.address.1.supplemental_address_2}
117 {$location.address.1.supplemental_address_2}<br />
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 />
126 {if $location.phone.1.phone || $location.email.1.email}
128 <td colspan="2" {$labelStyle}>
129 {ts}Event Contacts:{/ts}
132 {foreach from=$location.phone item=phone}
136 {if $phone.phone_type}
137 {$phone.phone_type_display}
143 {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
148 {foreach from=$location.email item=eventEmail}
149 {if $eventEmail.email}
162 {if $event.is_public}
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>
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}
182 {ts}You were registered by:{/ts}
186 <td colspan="2" {$valueStyle}>
191 {if $event.is_monetary}
200 {foreach from=$lineItem item=value key=priceset}
201 {if $value neq 'skip'}
203 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
205 <td colspan="2" {$labelStyle}>
206 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
212 <td colspan="2" {$valueStyle}>
213 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
215 <th>{ts}Item{/ts}</th>
216 <th>{ts}Qty{/ts}</th>
217 <th>{ts}Each{/ts}</th>
219 <th>{ts}SubTotal{/ts}</th>
220 <th>{ts}Tax Rate{/ts}</th>
221 <th>{ts}Tax Amount{/ts}</th>
223 <th>{ts}Total{/ts}</th>
224 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
226 {foreach from=$value item=line}
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}
235 {$line.unit_price|crmMoney:$currency}
239 {$line.unit_price*$line.qty|crmMoney}
241 {if $line.tax_rate != "" || $line.tax_amount != ""}
243 {$line.tax_rate|string_format:"%.2f"}%
246 {$line.tax_amount|crmMoney}
254 {$line.line_total+$line.tax_amount|crmMoney:$currency}
256 {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if}
267 {ts} Amount Before Tax: {/ts}
270 {$totalAmount-$totalTaxAmount|crmMoney}
273 {foreach from=$dataArray item=value key=priceset}
275 {if $priceset || $priceset == 0}
276 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
277 <td> {$value|crmMoney:$currency}</td>
279 <td> {ts}No{/ts} {$taxTerm}</td>
280 <td> {$value|crmMoney:$currency}</td>
287 {if $amounts && !$lineItem}
288 {foreach from=$amounts item=amnt key=level}
290 <td colspan="2" {$valueStyle}>
291 {$amnt.amount|crmMoney:$currency} {$amnt.label}
300 {ts}Total Tax Amount{/ts}
303 {$totalTaxAmount|crmMoney:$currency}
310 {ts}Total Amount{/ts}
313 {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
316 {if $pricesetFieldsCount }
319 {ts}Total Participants{/ts}</td>
321 {assign var="count" value= 0}
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}
328 {if $lineItemCount < 1 }
329 {assign var="lineItemCount" value=1}
331 {assign var="count" value=$count+$lineItemCount}
341 {ts}Registration Date{/ts}
344 {$register_date|crmDate}
352 {ts}Transaction Date{/ts}
355 {$receive_date|crmDate}
360 {if $contributionTypeName}
363 {ts}Financial Type{/ts}
366 {$contributionTypeName}
374 {ts}Transaction #{/ts}
396 {ts}Check Number{/ts}
404 {if $contributeMode ne 'notify' and !$isAmountzero and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and !$isOnWaitlist and !$isRequireApproval}
407 {ts}Billing Name and Address{/ts}
411 <td colspan="2" {$valueStyle}>
418 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
421 {ts}Credit Card Information{/ts}
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}
435 {/if} {* End of conditional section for Paid events *}
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}
444 <td {$labelStyle}>{$customName}</td>
445 <td {$valueStyle}>{$customValue}</td>
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}
458 <td {$labelStyle}>{$customName}</td>
459 <td {$valueStyle}>{$customValue}</td>
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}
473 <td {$labelStyle}>{$field}</td>
474 <td {$valueStyle}>{$v}</td>
483 {foreach from=$customGroup item=value key=customName}
489 {foreach from=$value item=v key=n}