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 a link to a web page where you can complete your registration.{/ts}</p>
40 {elseif $isRequireApproval}
41 <p>{ts}Your registration has been submitted.{/ts}</p>
43 <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>
45 {elseif $is_pay_later && !$isAmountzero}
46 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
48 <p>{ts}Please print this confirmation for your records.{/ts}</p>
55 <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
58 {ts}Event Information and Location{/ts}
62 <td colspan="2" {$valueStyle}>
63 {$event.event_title}<br />
64 {$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}
69 {if $conference_sessions}
71 <td colspan="2" {$labelStyle}>
72 {ts}Your schedule:{/ts}
76 <td colspan="2" {$valueStyle}>
77 {assign var='group_by_day' value='NA'}
78 {foreach from=$conference_sessions item=session}
79 {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
80 {assign var='group_by_day' value=$session.start_date}
81 <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br />
83 {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />
84 {if $session.location} {$session.location}<br />{/if}
90 {if $event.participant_role neq 'Attendee' and $defaultRole}
93 {ts}Participant Role{/ts}
96 {$event.participant_role}
103 <td colspan="2" {$valueStyle}>
104 {if $location.address.1.name}
105 {$location.address.1.name}<br />
107 {if $location.address.1.street_address}
108 {$location.address.1.street_address}<br />
110 {if $location.address.1.supplemental_address_1}
111 {$location.address.1.supplemental_address_1}<br />
113 {if $location.address.1.supplemental_address_2}
114 {$location.address.1.supplemental_address_2}<br />
116 {if $location.address.1.city}
117 {$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 />
123 {if $location.phone.1.phone || $location.email.1.email}
125 <td colspan="2" {$labelStyle}>
126 {ts}Event Contacts:{/ts}
129 {foreach from=$location.phone item=phone}
133 {if $phone.phone_type}
134 {$phone.phone_type_display}
145 {foreach from=$location.email item=eventEmail}
146 {if $eventEmail.email}
159 <td colspan="2" {$valueStyle}>
160 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
161 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
166 <td colspan="2" {$valueStyle}>
167 {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture}
168 {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
175 {ts}Registered Email{/ts}
179 <td colspan="2" {$valueStyle}>
187 {ts}You were registered by:{/ts}
191 <td colspan="2" {$valueStyle}>
196 {if $event.is_monetary}
205 {foreach from=$lineItem item=value key=priceset}
206 {if $value neq 'skip'}
208 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
210 <td colspan="2" {$labelStyle}>
211 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
217 <td colspan="2" {$valueStyle}>
218 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
220 <th>{ts}Item{/ts}</th>
221 <th>{ts}Qty{/ts}</th>
222 <th>{ts}Each{/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}
238 {$line.line_total|crmMoney}
240 {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if}
250 {if $amount && !$lineItem}
251 {foreach from=$amount item=amnt key=level}
253 <td colspan="2" {$valueStyle}>
254 {$amnt.amount|crmMoney} {$amnt.label}
263 {ts}Total Amount{/ts}
266 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
269 {if $pricesetFieldsCount }
272 {ts}Total Participants{/ts}</td>
274 {assign var="count" value= 0}
275 {foreach from=$lineItem item=pcount}
276 {assign var="lineItemCount" value=0}
277 {if $pcount neq 'skip'}
278 {foreach from=$pcount item=p_count}
279 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
281 {if $lineItemCount < 1 }
282 {assign var="lineItemCount" value=1}
284 {assign var="count" value=$count+$lineItemCount}
292 <td colspan="2" {$labelStyle}>
301 {ts}Registration Date{/ts}
304 {$register_date|crmDate}
312 {ts}Transaction Date{/ts}
315 {$receive_date|crmDate}
320 {if $contributionTypeName}
323 {ts}Contribution Type{/ts}
326 {$contributionTypeName}
334 {ts}Transaction #{/ts}
356 {ts}Check Number{/ts}
364 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
367 {ts}Billing Name and Address{/ts}
371 <td colspan="2" {$valueStyle}>
378 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
381 {ts}Credit Card Information{/ts}
385 <td colspan="2" {$valueStyle}>
386 {$credit_card_type}<br />
387 {$credit_card_number}<br />
388 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
395 {/if} {* End of conditional section for Paid events *}
399 {foreach from=$customPre item=customPr key=i}
400 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
401 {foreach from=$customPr item=customValue key=customName}
402 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
404 <td {$labelStyle}>{$customName}</td>
405 <td {$valueStyle}>{$customValue}</td>
413 {foreach from=$customPost item=customPos key=j}
414 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
415 {foreach from=$customPos item=customValue key=customName}
416 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
418 <td {$labelStyle}>{$customName}</td>
419 <td {$valueStyle}>{$customValue}</td>
427 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
428 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant Information - Participant %1{/ts} </th></tr>
429 {foreach from=$eachParticipant item=eachProfile key=pid}
430 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
431 {foreach from=$eachProfile item=val key=field}
432 <tr>{foreach from=$val item=v key=f}
433 <td {$labelStyle}>{$field}</td>
434 <td {$valueStyle}>{$v}</td>
443 {foreach from=$customGroup item=value key=customName}
449 {foreach from=$value item=v key=n}