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}You were registered by:{/ts}
179 <td colspan="2" {$valueStyle}>
184 {if $event.is_monetary}
193 {foreach from=$lineItem item=value key=priceset}
194 {if $value neq 'skip'}
196 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
198 <td colspan="2" {$labelStyle}>
199 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
205 <td colspan="2" {$valueStyle}>
206 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
208 <th>{ts}Item{/ts}</th>
209 <th>{ts}Qty{/ts}</th>
210 <th>{ts}Each{/ts}</th>
211 <th>{ts}Total{/ts}</th>
212 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
214 {foreach from=$value item=line}
217 {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}
223 {$line.unit_price|crmMoney}
226 {$line.line_total|crmMoney}
228 {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if}
242 {ts}Total Amount{/ts}
245 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
248 {if $pricesetFieldsCount }
251 {ts}Total Participants{/ts}</td>
253 {assign var="count" value= 0}
254 {foreach from=$lineItem item=pcount}
255 {assign var="lineItemCount" value=0}
256 {if $pcount neq 'skip'}
257 {foreach from=$pcount item=p_count}
258 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
260 {if $lineItemCount < 1 }
261 {assign var="lineItemCount" value=1}
263 {assign var="count" value=$count+$lineItemCount}
271 <td colspan="2" {$labelStyle}>
280 {ts}Registration Date{/ts}
283 {$register_date|crmDate}
291 {ts}Transaction Date{/ts}
294 {$receive_date|crmDate}
299 {if $contributionTypeName}
302 {ts}Contribution Type{/ts}
305 {$contributionTypeName}
313 {ts}Transaction #{/ts}
335 {ts}Check Number{/ts}
343 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
346 {ts}Billing Name and Address{/ts}
350 <td colspan="2" {$valueStyle}>
357 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
360 {ts}Credit Card Information{/ts}
364 <td colspan="2" {$valueStyle}>
365 {$credit_card_type}<br />
366 {$credit_card_number}<br />
367 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
374 {/if} {* End of conditional section for Paid events *}
378 {foreach from=$customPre item=customPr key=i}
379 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
380 {foreach from=$customPr item=customValue key=customName}
381 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
383 <td {$labelStyle}>{$customName}</td>
384 <td {$valueStyle}>{$customValue}</td>
392 {foreach from=$customPost item=customPos key=j}
393 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
394 {foreach from=$customPos item=customValue key=customName}
395 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
397 <td {$labelStyle}>{$customName}</td>
398 <td {$valueStyle}>{$customValue}</td>
406 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
407 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr>
408 {foreach from=$eachParticipant item=eachProfile key=pid}
409 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
410 {foreach from=$eachProfile item=val key=field}
411 <tr>{foreach from=$val item=v key=f}
412 <td {$labelStyle}>{$field}</td>
413 <td {$valueStyle}>{$v}</td>
422 {foreach from=$customGroup item=value key=customName}
428 {foreach from=$value item=v key=n}