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 $isOnWaitlist}waitlisted{else}registered{/if}</strong> for the following:</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}
148 {foreach from=$location.email item=eventEmail}
149 {if $eventEmail.email}
162 <td colspan="2" {$valueStyle}>
163 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
164 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
169 <td colspan="2" {$valueStyle}>
170 {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture}
171 {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
178 {ts}You were registered by:{/ts}
182 <td colspan="2" {$valueStyle}>
187 {if $event.is_monetary}
196 {foreach from=$lineItem item=value key=priceset}
197 {if $value neq 'skip'}
199 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
201 <td colspan="2" {$labelStyle}>
202 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
208 <td colspan="2" {$valueStyle}>
209 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
211 <th>{ts}Item{/ts}</th>
212 <th>{ts}Qty{/ts}</th>
213 <th>{ts}Each{/ts}</th>
214 <th>{ts}Total{/ts}</th>
215 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
217 {foreach from=$value item=line}
220 {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}
226 {$line.unit_price|crmMoney:$currency}
229 {$line.line_total|crmMoney:$currency}
231 {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if}
241 {if $amounts && !$lineItem}
242 {foreach from=$amounts item=amnt key=level}
244 <td colspan="2" {$valueStyle}>
245 {$amnt.amount|crmMoney:$currency} {$amnt.label}
254 {ts}Total Amount{/ts}
257 {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
260 {if $pricesetFieldsCount }
263 {ts}Total Participants{/ts}</td>
265 {assign var="count" value= 0}
266 {foreach from=$lineItem item=pcount}
267 {assign var="lineItemCount" value=0}
268 {if $pcount neq 'skip'}
269 {foreach from=$pcount item=p_count}
270 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
272 {if $lineItemCount < 1 }
273 {assign var="lineItemCount" value=1}
275 {assign var="count" value=$count+$lineItemCount}
285 {ts}Registration Date{/ts}
288 {$register_date|crmDate}
296 {ts}Transaction Date{/ts}
299 {$receive_date|crmDate}
304 {if $contributionTypeName}
307 {ts}Financial Type{/ts}
310 {$contributionTypeName}
318 {ts}Transaction #{/ts}
340 {ts}Check Number{/ts}
348 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
351 {ts}Billing Name and Address{/ts}
355 <td colspan="2" {$valueStyle}>
362 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
365 {ts}Credit Card Information{/ts}
369 <td colspan="2" {$valueStyle}>
370 {$credit_card_type}<br />
371 {$credit_card_number}<br />
372 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
379 {/if} {* End of conditional section for Paid events *}
383 {foreach from=$customPre item=customPr key=i}
384 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
385 {foreach from=$customPr item=customValue key=customName}
386 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
388 <td {$labelStyle}>{$customName}</td>
389 <td {$valueStyle}>{$customValue}</td>
397 {foreach from=$customPost item=customPos key=j}
398 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
399 {foreach from=$customPos item=customValue key=customName}
400 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
402 <td {$labelStyle}>{$customName}</td>
403 <td {$valueStyle}>{$customValue}</td>
411 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
412 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr>
413 {foreach from=$eachParticipant item=eachProfile key=pid}
414 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
415 {foreach from=$eachProfile item=val key=field}
416 <tr>{foreach from=$val item=v key=f}
417 <td {$labelStyle}>{$field}</td>
418 <td {$valueStyle}>{$v}</td>
427 {foreach from=$customGroup item=value key=customName}
433 {foreach from=$value item=v key=n}