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>{contact.email_greeting},</p>
30 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
31 <p>{$event.confirm_email_text|htmlize}</p>
34 <p>{ts}Thank you for your participation.{/ts}
35 {if $participant_status}{ts 1=$participant_status}This letter is a confirmation that your registration has been received and your status has been updated to <strong> %1</strong>.{/ts}
36 {else}{if $isOnWaitlist}{ts}This letter is a confirmation that your registration has been received and your status has been updated to <strong>waitlisted</strong>.{/ts}{else}{ts}This letter is a confirmation that your registration has been received and your status has been updated to <strong>registered<strong>.{/ts}{/if}{/if}.</p>
42 <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
44 <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>
46 {elseif $isRequireApproval}
47 <p>{ts}Your registration has been submitted.{/ts}</p>
49 <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>
51 {elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
52 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
54 <p>{ts}Please print this confirmation for your records.{/ts}</p>
61 <table width="700" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
64 {ts}Event Information and Location{/ts}
68 <td colspan="2" {$valueStyle}>
69 {$event.event_title}<br />
70 {$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}
75 {if $conference_sessions}
77 <td colspan="2" {$labelStyle}>
78 {ts}Your schedule:{/ts}
82 <td colspan="2" {$valueStyle}>
83 {assign var='group_by_day' value='NA'}
84 {foreach from=$conference_sessions item=session}
85 {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
86 {assign var='group_by_day' value=$session.start_date}
87 <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br />
89 {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />
90 {if $session.location} {$session.location}<br />{/if}
96 {if $event.participant_role neq 'Attendee' and $defaultRole}
99 {ts}Participant Role{/ts}
102 {$event.participant_role}
109 <td colspan="2" {$valueStyle}>
110 {$location.address.1.display|nl2br}
115 {if $location.phone.1.phone || $location.email.1.email}
117 <td colspan="2" {$labelStyle}>
118 {ts}Event Contacts:{/ts}
121 {foreach from=$location.phone item=phone}
125 {if $phone.phone_type}
126 {$phone.phone_type_display}
132 {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
137 {foreach from=$location.email item=eventEmail}
138 {if $eventEmail.email}
151 {if $event.is_public}
153 <td colspan="2" {$valueStyle}>
154 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
155 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
162 <td colspan="2" {$valueStyle}>
163 {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture}
164 {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
171 {ts}You were registered by:{/ts}
175 <td colspan="2" {$valueStyle}>
180 {if $event.is_monetary and not $isRequireApproval}
189 {foreach from=$lineItem item=value key=priceset}
190 {if $value neq 'skip'}
192 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
194 <td colspan="2" {$labelStyle}>
195 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
201 <td colspan="2" {$valueStyle}>
202 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
204 <th>{ts}Item{/ts}</th>
205 <th>{ts}Qty{/ts}</th>
206 <th>{ts}Each{/ts}</th>
208 <th>{ts}SubTotal{/ts}</th>
209 <th>{ts}Tax Rate{/ts}</th>
210 <th>{ts}Tax Amount{/ts}</th>
212 <th>{ts}Total{/ts}</th>
213 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
215 {foreach from=$value item=line}
218 {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}
220 <td {$tdStyle} align="middle">
224 {$line.unit_price|crmMoney:$currency}
228 {$line.unit_price*$line.qty|crmMoney}
230 {if $line.tax_rate != "" || $line.tax_amount != ""}
232 {$line.tax_rate|string_format:"%.2f"}%
235 {$line.tax_amount|crmMoney}
243 {$line.line_total+$line.tax_amount|crmMoney:$currency}
245 {if $pricesetFieldsCount }<td {$tdStyle}>{$line.participant_count}</td> {/if}
249 <tr {$participantTotal}>
250 <td colspan=3>{ts}Participant Total{/ts}</td>
251 <td colspan=2>{$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney}</td>
252 <td colspan=1>{$individual.$priceset.totalTaxAmt|crmMoney}</td>
253 <td colspan=2>{$individual.$priceset.totalAmtWithTax|crmMoney}</td>
264 {ts} Amount Before Tax: {/ts}
267 {$totalAmount-$totalTaxAmount|crmMoney}
270 {foreach from=$dataArray item=value key=priceset}
272 {if $priceset || $priceset == 0}
273 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
274 <td> {$value|crmMoney:$currency}</td>
276 <td> {ts}No{/ts} {$taxTerm}</td>
277 <td> {$value|crmMoney:$currency}</td>
284 {if $amounts && !$lineItem}
285 {foreach from=$amounts item=amnt key=level}
287 <td colspan="2" {$valueStyle}>
288 {$amnt.amount|crmMoney:$currency} {$amnt.label}
297 {ts}Total Tax Amount{/ts}
300 {$totalTaxAmount|crmMoney:$currency}
307 {ts}Total Amount{/ts}
310 {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
313 {if $pricesetFieldsCount }
316 {ts}Total Participants{/ts}</td>
318 {assign var="count" value= 0}
319 {foreach from=$lineItem item=pcount}
320 {assign var="lineItemCount" value=0}
321 {if $pcount neq 'skip'}
322 {foreach from=$pcount item=p_count}
323 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
325 {if $lineItemCount < 1 }
326 {assign var="lineItemCount" value=1}
328 {assign var="count" value=$count+$lineItemCount}
338 {ts}Registration Date{/ts}
341 {$register_date|crmDate}
349 {ts}Transaction Date{/ts}
352 {$receive_date|crmDate}
357 {if $financialTypeName}
360 {ts}Financial Type{/ts}
371 {ts}Transaction #{/ts}
393 {ts}Check Number{/ts}
401 {if $contributeMode ne 'notify' and !$isAmountzero and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and !$isOnWaitlist and !$isRequireApproval}
404 {ts}Billing Name and Address{/ts}
408 <td colspan="2" {$valueStyle}>
415 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
418 {ts}Credit Card Information{/ts}
422 <td colspan="2" {$valueStyle}>
423 {$credit_card_type}<br />
424 {$credit_card_number}<br />
425 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
432 {/if} {* End of conditional section for Paid events *}
436 {foreach from=$customPre item=customPr key=i}
437 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
438 {foreach from=$customPr item=customValue key=customName}
439 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
441 <td {$labelStyle}>{$customName}</td>
442 <td {$valueStyle}>{$customValue}</td>
450 {foreach from=$customPost item=customPos key=j}
451 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
452 {foreach from=$customPos item=customValue key=customName}
453 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
455 <td {$labelStyle}>{$customName}</td>
456 <td {$valueStyle}>{$customValue}</td>
464 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
465 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr>
466 {foreach from=$eachParticipant item=eachProfile key=pid}
467 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
468 {foreach from=$eachProfile item=val key=field}
469 <tr>{foreach from=$val item=v key=f}
470 <td {$labelStyle}>{$field}</td>
471 <td {$valueStyle}>{$v}</td>
480 {foreach from=$customGroup item=value key=customName}
486 {foreach from=$value item=v key=n}
499 {if $event.allow_selfcancelxfer }
501 <td colspan="2" {$valueStyle}>
502 {ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br />
503 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
504 <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a>