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}
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}
18 <table width="700" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
21 <!-- You can add table row(s) here with logo or other header elements -->
24 <!-- BEGIN CONTENT -->
28 <p>Dear {contact.display_name},</p>
30 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
31 <p>{$event.confirm_email_text|htmlize}</p>
34 <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>
40 <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
42 <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>
44 {elseif $isRequireApproval}
45 <p>{ts}Your registration has been submitted.{/ts}</p>
47 <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>
49 {elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
50 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
52 <p>{ts}Please print this confirmation for your records.{/ts}</p>
59 <table width="700" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
62 {ts}Event Information and Location{/ts}
66 <td colspan="2" {$valueStyle}>
67 {$event.event_title}<br />
68 {$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}
73 {if $conference_sessions}
75 <td colspan="2" {$labelStyle}>
76 {ts}Your schedule:{/ts}
80 <td colspan="2" {$valueStyle}>
81 {assign var='group_by_day' value='NA'}
82 {foreach from=$conference_sessions item=session}
83 {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
84 {assign var='group_by_day' value=$session.start_date}
85 <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br />
87 {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />
88 {if $session.location} {$session.location}<br />{/if}
94 {if $event.participant_role neq 'Attendee' and $defaultRole}
97 {ts}Participant Role{/ts}
100 {$event.participant_role}
107 <td colspan="2" {$valueStyle}>
108 {if $location.address.1.name}
109 {$location.address.1.name}<br />
111 {if $location.address.1.street_address}
112 {$location.address.1.street_address}<br />
114 {if $location.address.1.supplemental_address_1}
115 {$location.address.1.supplemental_address_1}<br />
117 {if $location.address.1.supplemental_address_2}
118 {$location.address.1.supplemental_address_2}<br />
120 {if $location.address.1.city}
121 {$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 />
127 {if $location.phone.1.phone || $location.email.1.email}
129 <td colspan="2" {$labelStyle}>
130 {ts}Event Contacts:{/ts}
133 {foreach from=$location.phone item=phone}
137 {if $phone.phone_type}
138 {$phone.phone_type_display}
144 {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
149 {foreach from=$location.email item=eventEmail}
150 {if $eventEmail.email}
163 {if $event.is_public}
165 <td colspan="2" {$valueStyle}>
166 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
167 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
174 <td colspan="2" {$valueStyle}>
175 {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture}
176 {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
183 {ts}You were registered by:{/ts}
187 <td colspan="2" {$valueStyle}>
192 {if $event.is_monetary}
201 {foreach from=$lineItem item=value key=priceset}
202 {if $value neq 'skip'}
204 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
206 <td colspan="2" {$labelStyle}>
207 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
213 <td colspan="2" {$valueStyle}>
214 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
216 <th>{ts}Item{/ts}</th>
217 <th>{ts}Qty{/ts}</th>
218 <th>{ts}Each{/ts}</th>
220 <th>{ts}SubTotal{/ts}</th>
221 <th>{ts}Tax Rate{/ts}</th>
222 <th>{ts}Tax Amount{/ts}</th>
224 <th>{ts}Total{/ts}</th>
225 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
227 {foreach from=$value item=line}
230 {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}
232 <td {$tdStyle} align="middle">
236 {$line.unit_price|crmMoney:$currency}
240 {$line.unit_price*$line.qty|crmMoney}
242 {if $line.tax_rate != "" || $line.tax_amount != ""}
244 {$line.tax_rate|string_format:"%.2f"}%
247 {$line.tax_amount|crmMoney}
255 {$line.line_total+$line.tax_amount|crmMoney:$currency}
257 {if $pricesetFieldsCount }<td {$tdStyle}>{$line.participant_count}</td> {/if}
261 <tr {$participantTotal}>
262 <td colspan=3>{ts}Participant Total{/ts}</td>
263 <td colspan=2>{$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney}</td>
264 <td colspan=1>{$individual.$priceset.totalTaxAmt|crmMoney}</td>
265 <td colspan=2>{$individual.$priceset.totalAmtWithTax|crmMoney}</td>
276 {ts} Amount Before Tax: {/ts}
279 {$totalAmount-$totalTaxAmount|crmMoney}
282 {foreach from=$dataArray item=value key=priceset}
284 {if $priceset || $priceset == 0}
285 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
286 <td> {$value|crmMoney:$currency}</td>
288 <td> {ts}No{/ts} {$taxTerm}</td>
289 <td> {$value|crmMoney:$currency}</td>
296 {if $amounts && !$lineItem}
297 {foreach from=$amounts item=amnt key=level}
299 <td colspan="2" {$valueStyle}>
300 {$amnt.amount|crmMoney:$currency} {$amnt.label}
309 {ts}Total Tax Amount{/ts}
312 {$totalTaxAmount|crmMoney:$currency}
319 {ts}Total Amount{/ts}
322 {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
325 {if $pricesetFieldsCount }
328 {ts}Total Participants{/ts}</td>
330 {assign var="count" value= 0}
331 {foreach from=$lineItem item=pcount}
332 {assign var="lineItemCount" value=0}
333 {if $pcount neq 'skip'}
334 {foreach from=$pcount item=p_count}
335 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
337 {if $lineItemCount < 1 }
338 {assign var="lineItemCount" value=1}
340 {assign var="count" value=$count+$lineItemCount}
350 {ts}Registration Date{/ts}
353 {$register_date|crmDate}
361 {ts}Transaction Date{/ts}
364 {$receive_date|crmDate}
369 {if $contributionTypeName}
372 {ts}Financial Type{/ts}
375 {$contributionTypeName}
383 {ts}Transaction #{/ts}
405 {ts}Check Number{/ts}
413 {if $contributeMode ne 'notify' and !$isAmountzero and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and !$isOnWaitlist and !$isRequireApproval}
416 {ts}Billing Name and Address{/ts}
420 <td colspan="2" {$valueStyle}>
427 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
430 {ts}Credit Card Information{/ts}
434 <td colspan="2" {$valueStyle}>
435 {$credit_card_type}<br />
436 {$credit_card_number}<br />
437 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
444 {/if} {* End of conditional section for Paid events *}
448 {foreach from=$customPre item=customPr key=i}
449 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
450 {foreach from=$customPr item=customValue key=customName}
451 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
453 <td {$labelStyle}>{$customName}</td>
454 <td {$valueStyle}>{$customValue}</td>
462 {foreach from=$customPost item=customPos key=j}
463 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
464 {foreach from=$customPos item=customValue key=customName}
465 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
467 <td {$labelStyle}>{$customName}</td>
468 <td {$valueStyle}>{$customValue}</td>
476 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
477 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr>
478 {foreach from=$eachParticipant item=eachProfile key=pid}
479 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
480 {foreach from=$eachProfile item=val key=field}
481 <tr>{foreach from=$val item=v key=f}
482 <td {$labelStyle}>{$field}</td>
483 <td {$valueStyle}>{$v}</td>
492 {foreach from=$customGroup item=value key=customName}
498 {foreach from=$value item=v key=n}