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 -->
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
33 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
39 an email with a link to a web page where you can complete the
40 registration process.{/ts}</p>
42 {elseif $is_pay_later && !$isAmountzero}
43 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
45 <p>{ts}Please print this confirmation for your records.{/ts}</p>
51 <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
54 {ts}Event Information and Location{/ts}
58 <td colspan="2" {$valueStyle}>
59 {$event.event_title}<br />
60 {$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}
64 {if $event.participant_role neq 'Attendee' and $defaultRole}
67 {ts}Participant Role{/ts}
70 {$event.participant_role}
77 <td colspan="2" {$valueStyle}>
78 {if $location.address.1.name}
79 {$location.address.1.name}<br />
81 {if $location.address.1.street_address}
82 {$location.address.1.street_address}<br />
84 {if $location.address.1.supplemental_address_1}
85 {$location.address.1.supplemental_address_1}<br />
87 {if $location.address.1.supplemental_address_2}
88 {$location.address.1.supplemental_address_2}<br />
90 {if $location.address.1.city}
91 {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
97 {if $location.phone.1.phone || $location.email.1.email}
99 <td colspan="2" {$labelStyle}>
100 {ts}Event Contacts:{/ts}
103 {foreach from=$location.phone item=phone}
107 {if $phone.phone_type}
108 {$phone.phone_type_display}
119 {foreach from=$location.email item=eventEmail}
120 {if $eventEmail.email}
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>
141 {ts}Registered Email{/ts}
145 <td colspan="2" {$valueStyle}>
152 {if $event.is_monetary}
161 {foreach from=$lineItem item=value key=priceset}
162 {if $value neq 'skip'}
164 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
166 <td colspan="2" {$labelStyle}>
167 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
173 <td colspan="2" {$valueStyle}>
174 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
176 <th>{ts}Item{/ts}</th>
177 <th>{ts}Qty{/ts}</th>
178 <th>{ts}Each{/ts}</th>
179 <th>{ts}Total{/ts}</th>
180 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
182 {foreach from=$value item=line}
185 {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}
191 {$line.unit_price|crmMoney}
194 {$line.line_total|crmMoney}
196 {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if}
206 {if $amount && !$lineItem}
207 {foreach from=$amount item=amnt key=level}
209 <td colspan="2" {$valueStyle}>
210 {$amnt.amount|crmMoney} {$amnt.label}
219 {ts}Total Amount{/ts}
222 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
225 {if $pricesetFieldsCount }
228 {ts}Total Participants{/ts}</td>
230 {assign var="count" value= 0}
231 {foreach from=$lineItem item=pcount}
232 {assign var="lineItemCount" value=0}
233 {if $pcount neq 'skip'}
234 {foreach from=$pcount item=p_count}
235 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
237 {if $lineItemCount < 1 }
238 {assign var="lineItemCount" value=1}
240 {assign var="count" value=$count+$lineItemCount}
248 <td colspan="2" {$labelStyle}>
257 {ts}Registration Date{/ts}
260 {$register_date|crmDate}
268 {ts}Transaction Date{/ts}
271 {$receive_date|crmDate}
276 {if $contributionTypeName}
279 {ts}Contribution Type{/ts}
282 {$contributionTypeName}
290 {ts}Transaction #{/ts}
312 {ts}Check Number{/ts}
320 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
323 {ts}Billing Name and Address{/ts}
327 <td colspan="2" {$valueStyle}>
334 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
337 {ts}Credit Card Information{/ts}
341 <td colspan="2" {$valueStyle}>
342 {$credit_card_type}<br />
343 {$credit_card_number}<br />
344 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
351 {/if} {* End of conditional section for Paid events *}
354 {foreach from=$customPre item=customPr key=i}
355 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
356 {foreach from=$customPr item=customValue key=customName}
357 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
359 <td {$labelStyle}>{$customName}</td>
360 <td {$valueStyle}>{$customValue}</td>
368 {foreach from=$customPost item=customPos key=j}
369 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
370 {foreach from=$customPos item=customValue key=customName}
371 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
373 <td {$labelStyle}>{$customName}</td>
374 <td {$valueStyle}>{$customValue}</td>
382 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
383 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant Information - Participant %1{/ts} </th></tr>
384 {foreach from=$eachParticipant item=eachProfile key=pid}
385 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
386 {foreach from=$eachProfile item=val key=field}
387 <tr>{foreach from=$val item=v key=f}
388 <td {$labelStyle}>{$field}</td>
389 <td {$valueStyle}>{$v}</td>
398 {foreach from=$customGroup item=value key=customName}
404 {foreach from=$value item=v key=n}