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="620" 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>{contact.email_greeting}</p>
26 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
27 <p>{$event.confirm_email_text|htmlize}</p>
31 <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
33 <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>
35 {elseif $isRequireApproval}
36 <p>{ts}Your registration has been submitted.{/ts}</p>
38 <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>
40 {elseif $is_pay_later}
41 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
43 <p>{ts}Please print this confirmation for your records.{/ts}</p>
50 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
53 {ts}Event Information and Location{/ts}
57 <td colspan="2" {$valueStyle}>
58 {$event.event_title}<br />
59 {$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|crmDate}{/if}{/if}
63 {if $event.participant_role neq 'Attendee' and $defaultRole}
66 {ts}Participant Role{/ts}
69 {$event.participant_role}
76 <td colspan="2" {$valueStyle}>
77 {$location.address.1.display|nl2br}
82 {if $location.phone.1.phone || $location.email.1.email}
84 <td colspan="2" {$labelStyle}>
85 {ts}Event Contacts:{/ts}
88 {foreach from=$location.phone item=phone}
92 {if $phone.phone_type}
93 {$phone.phone_type_display}
99 {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
104 {foreach from=$location.email item=eventEmail}
105 {if $eventEmail.email}
118 {if $event.is_public}
120 <td colspan="2" {$valueStyle}>
121 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
122 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
130 {ts}Registered Email{/ts}
134 <td colspan="2" {$valueStyle}>
141 {if $event.is_monetary}
150 {foreach from=$lineItem item=value key=priceset}
151 {if $value neq 'skip'}
153 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
155 <td colspan="2" {$labelStyle}>
156 {ts 1=$priceset+1}Participant %1{/ts}
162 <td colspan="2" {$valueStyle}>
163 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
165 <th>{ts}Item{/ts}</th>
166 <th>{ts}Qty{/ts}</th>
167 <th>{ts}Each{/ts}</th>
169 <th>{ts}SubTotal{/ts}</th>
170 <th>{ts}Tax Rate{/ts}</th>
171 <th>{ts}Tax Amount{/ts}</th>
173 <th>{ts}Total{/ts}</th>
174 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
176 {foreach from=$value item=line}
179 {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}
185 {$line.unit_price|crmMoney}
189 {$line.unit_price*$line.qty|crmMoney}
191 {if $line.tax_rate != "" || $line.tax_amount != ""}
193 {$line.tax_rate|string_format:"%.2f"}%
196 {$line.tax_amount|crmMoney}
204 {$line.line_total+$line.tax_amount|crmMoney}
206 {if $pricesetFieldsCount }
208 {$line.participant_count}
221 {ts}Amount Before Tax:{/ts}
224 {$totalAmount-$totalTaxAmount|crmMoney}
227 {foreach from=$dataArray item=value key=priceset}
229 {if $priceset || $priceset == 0}
230 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
231 <td> {$value|crmMoney:$currency}</td>
233 <td> {ts}No{/ts} {$taxTerm}</td>
234 <td> {$value|crmMoney:$currency}</td>
241 {if $amount && !$lineItem}
242 {foreach from=$amount item=amnt key=level}
244 <td colspan="2" {$valueStyle}>
245 {$amnt.amount|crmMoney} {$amnt.label}
253 {ts}Total Tax Amount{/ts}
256 {$totalTaxAmount|crmMoney:$currency}
266 {ts}Total Amount{/ts}
270 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
279 {$balanceAmount|crmMoney}
283 {if $pricesetFieldsCount }
286 {ts}Total Participants{/ts}</td>
288 {assign var="count" value= 0}
289 {foreach from=$lineItem item=pcount}
290 {assign var="lineItemCount" value=0}
291 {if $pcount neq 'skip'}
292 {foreach from=$pcount item=p_count}
293 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
295 {if $lineItemCount < 1 }
296 assign var="lineItemCount" value=1}
298 {assign var="count" value=$count+$lineItemCount}
307 <td colspan="2" {$labelStyle}>
316 {ts}Registration Date{/ts}
319 {$register_date|crmDate}
327 {ts}Transaction Date{/ts}
330 {$receive_date|crmDate}
335 {if $financialTypeName}
338 {ts}Financial Type{/ts}
349 {ts}Transaction #{/ts}
371 {ts}Check Number{/ts}
379 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
382 {ts}Billing Name and Address{/ts}
386 <td colspan="2" {$valueStyle}>
393 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
396 {ts}Credit Card Information{/ts}
400 <td colspan="2" {$valueStyle}>
401 {$credit_card_type}<br />
402 {$credit_card_number}<br />
403 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
410 {/if} {* End of conditional section for Paid events *}
415 {$customPre_grouptitle}
418 {foreach from=$customPre item=value key=customName}
419 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
435 {$customPost_grouptitle}
438 {foreach from=$customPost item=value key=customName}
439 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
453 {foreach from=$customProfile item=value key=customName}
456 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
459 {foreach from=$value item=val key=field}
460 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
462 <td colspan="2" {$labelStyle}>
463 {if $field eq 'additionalCustomPre'}
464 {$additionalCustomPre_grouptitle}
466 {$additionalCustomPost_grouptitle}
470 {foreach from=$val item=v key=f}
486 {foreach from=$customGroup item=value key=customName}
492 {foreach from=$value item=v key=n}