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}
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}Registered Email{/ts}
182 <td colspan="2" {$valueStyle}>
190 {ts}You were registered by:{/ts}
194 <td colspan="2" {$valueStyle}>
199 {if $event.is_monetary}
208 {foreach from=$lineItem item=value key=priceset}
209 {if $value neq 'skip'}
211 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
213 <td colspan="2" {$labelStyle}>
214 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
220 <td colspan="2" {$valueStyle}>
221 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
223 <th>{ts}Item{/ts}</th>
224 <th>{ts}Qty{/ts}</th>
225 <th>{ts}Each{/ts}</th>
226 <th>{ts}Total{/ts}</th>
227 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
229 {foreach from=$value item=line}
232 {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}
238 {$line.unit_price|crmMoney}
241 {$line.line_total|crmMoney}
243 {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if}
253 {if $amount && !$lineItem}
254 {foreach from=$amount item=amnt key=level}
256 <td colspan="2" {$valueStyle}>
257 {$amnt.amount|crmMoney} {$amnt.label}
266 {ts}Total Amount{/ts}
269 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
272 {if $pricesetFieldsCount }
275 {ts}Total Participants{/ts}</td>
277 {assign var="count" value= 0}
278 {foreach from=$lineItem item=pcount}
279 {assign var="lineItemCount" value=0}
280 {if $pcount neq 'skip'}
281 {foreach from=$pcount item=p_count}
282 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
284 {if $lineItemCount < 1 }
285 {assign var="lineItemCount" value=1}
287 {assign var="count" value=$count+$lineItemCount}
295 <td colspan="2" {$labelStyle}>
304 {ts}Registration Date{/ts}
307 {$register_date|crmDate}
315 {ts}Transaction Date{/ts}
318 {$receive_date|crmDate}
323 {if $contributionTypeName}
326 {ts}Contribution Type{/ts}
329 {$contributionTypeName}
337 {ts}Transaction #{/ts}
359 {ts}Check Number{/ts}
367 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
370 {ts}Billing Name and Address{/ts}
374 <td colspan="2" {$valueStyle}>
381 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
384 {ts}Credit Card Information{/ts}
388 <td colspan="2" {$valueStyle}>
389 {$credit_card_type}<br />
390 {$credit_card_number}<br />
391 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
398 {/if} {* End of conditional section for Paid events *}
402 {foreach from=$customPre item=customPr key=i}
403 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
404 {foreach from=$customPr item=customValue key=customName}
405 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
407 <td {$labelStyle}>{$customName}</td>
408 <td {$valueStyle}>{$customValue}</td>
416 {foreach from=$customPost item=customPos key=j}
417 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
418 {foreach from=$customPos item=customValue key=customName}
419 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
421 <td {$labelStyle}>{$customName}</td>
422 <td {$valueStyle}>{$customValue}</td>
430 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
431 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant Information - Participant %1{/ts} </th></tr>
432 {foreach from=$eachParticipant item=eachProfile key=pid}
433 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
434 {foreach from=$eachProfile item=val key=field}
435 <tr>{foreach from=$val item=v key=f}
436 <td {$labelStyle}>{$field}</td>
437 <td {$valueStyle}>{$v}</td>
446 {foreach from=$customGroup item=value key=customName}
452 {foreach from=$value item=v key=n}