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 -->
25 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
26 <p>{$event.confirm_email_text|htmlize}</p>
30 <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
32 <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>
34 {elseif $isRequireApproval}
35 <p>{ts}Your registration has been submitted.{/ts}</p>
37 <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>
39 {elseif $is_pay_later}
40 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
42 <p>{ts}Please print this confirmation for your records.{/ts}</p>
49 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
52 {ts}Event Information and Location{/ts}
56 <td colspan="2" {$valueStyle}>
57 {$event.event_title}<br />
58 {$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}
62 {if $event.participant_role neq 'Attendee' and $defaultRole}
65 {ts}Participant Role{/ts}
68 {$event.participant_role}
75 <td colspan="2" {$valueStyle}>
76 {if $location.address.1.name}
77 {$location.address.1.name}<br />
79 {if $location.address.1.street_address}
80 {$location.address.1.street_address}<br />
82 {if $location.address.1.supplemental_address_1}
83 {$location.address.1.supplemental_address_1}<br />
85 {if $location.address.1.supplemental_address_2}
86 {$location.address.1.supplemental_address_2}<br />
88 {if $location.address.1.city}
89 {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
95 {if $location.phone.1.phone || $location.email.1.email}
97 <td colspan="2" {$labelStyle}>
98 {ts}Event Contacts:{/ts}
101 {foreach from=$location.phone item=phone}
105 {if $phone.phone_type}
106 {$phone.phone_type_display}
112 {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
117 {foreach from=$location.email item=eventEmail}
118 {if $eventEmail.email}
131 {if $event.is_public}
133 <td colspan="2" {$valueStyle}>
134 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
135 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
143 {ts}Registered Email{/ts}
147 <td colspan="2" {$valueStyle}>
154 {if $event.is_monetary}
163 {foreach from=$lineItem item=value key=priceset}
164 {if $value neq 'skip'}
166 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
168 <td colspan="2" {$labelStyle}>
169 {ts 1=$priceset+1}Participant %1{/ts}
175 <td colspan="2" {$valueStyle}>
176 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
178 <th>{ts}Item{/ts}</th>
179 <th>{ts}Qty{/ts}</th>
180 <th>{ts}Each{/ts}</th>
181 <th>{ts}Total{/ts}</th>
182 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
184 {foreach from=$value item=line}
187 {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}
193 {$line.unit_price|crmMoney}
196 {$line.line_total|crmMoney}
198 {if $pricesetFieldsCount }
200 {$line.participant_count}
212 {if $amount && !$lineItem}
213 {foreach from=$amount item=amnt key=level}
215 <td colspan="2" {$valueStyle}>
216 {$amnt.amount|crmMoney} {$amnt.label}
227 {ts}Total Amount{/ts}
231 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
240 {$balanceAmount|crmMoney}
244 {if $pricesetFieldsCount }
247 {ts}Total Participants{/ts}</td>
249 {assign var="count" value= 0}
250 {foreach from=$lineItem item=pcount}
251 {assign var="lineItemCount" value=0}
252 {if $pcount neq 'skip'}
253 {foreach from=$pcount item=p_count}
254 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
256 {if $lineItemCount < 1 }
257 assign var="lineItemCount" value=1}
259 {assign var="count" value=$count+$lineItemCount}
268 <td colspan="2" {$labelStyle}>
277 {ts}Registration Date{/ts}
280 {$register_date|crmDate}
288 {ts}Transaction Date{/ts}
291 {$receive_date|crmDate}
296 {if $contributionTypeName}
299 {ts}Financial Type{/ts}
302 {$contributionTypeName}
310 {ts}Transaction #{/ts}
332 {ts}Check Number{/ts}
340 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
343 {ts}Billing Name and Address{/ts}
347 <td colspan="2" {$valueStyle}>
354 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
357 {ts}Credit Card Information{/ts}
361 <td colspan="2" {$valueStyle}>
362 {$credit_card_type}<br />
363 {$credit_card_number}<br />
364 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
371 {/if} {* End of conditional section for Paid events *}
376 {$customPre_grouptitle}
379 {foreach from=$customPre item=value key=customName}
380 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
396 {$customPost_grouptitle}
399 {foreach from=$customPost item=value key=customName}
400 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
414 {foreach from=$customProfile item=value key=customName}
417 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
420 {foreach from=$value item=val key=field}
421 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
423 <td colspan="2" {$labelStyle}>
424 {if $field eq 'additionalCustomPre'}
425 {$additionalCustomPre_grouptitle}
427 {$additionalCustomPost_grouptitle}
431 {foreach from=$val item=v key=f}
447 {foreach from=$customGroup item=value key=customName}
453 {foreach from=$value item=v key=n}