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 id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;">
17 <!-- You can add table row(s) here with logo or other header elements -->
20 <!-- BEGIN CONTENT -->
24 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
26 {if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}
27 <p>{$event.confirm_email_text|htmlize}</p>
30 {if !empty($isOnWaitlist)}
31 <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
32 {if !empty($isPrimary)}
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 !empty($isRequireApproval)}
36 <p>{ts}Your registration has been submitted.{/ts}</p>
37 {if !empty($isPrimary)}
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 !empty($is_pay_later)}
41 <p>{if isset($pay_later_receipt)}{$pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *}
48 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
51 {ts}Event Information and Location{/ts}
55 <td colspan="2" {$valueStyle}>
56 {$event.event_title}<br />
57 {$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}
61 {if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and !empty($defaultRole)}
64 {ts}Participant Role{/ts}
67 {$event.participant_role}
72 {if !empty($isShowLocation)}
74 <td colspan="2" {$valueStyle}>
75 {$location.address.1.display|nl2br}
80 {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}
82 <td colspan="2" {$labelStyle}>
83 {ts}Event Contacts:{/ts}
86 {foreach from=$location.phone item=phone}
90 {if $phone.phone_type}
91 {$phone.phone_type_display}
97 {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
102 {foreach from=$location.email item=eventEmail}
103 {if $eventEmail.email}
116 {if !empty($event.is_public)}
118 <td colspan="2" {$valueStyle}>
119 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
120 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
128 {ts}Registered Email{/ts}
132 <td colspan="2" {$valueStyle}>
139 {if !empty($event.is_monetary)}
143 {if !empty($event.fee_label)}{$event.fee_label}{/if}
147 {if !empty($lineItem)}
148 {foreach from=$lineItem item=value key=priceset}
149 {if $value neq 'skip'}
150 {if !empty($isPrimary)}
151 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
153 <td colspan="2" {$labelStyle}>
154 {ts 1=$priceset+1}Participant %1{/ts}
160 <td colspan="2" {$valueStyle}>
161 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
163 <th>{ts}Item{/ts}</th>
164 <th>{ts}Qty{/ts}</th>
165 <th>{ts}Each{/ts}</th>
166 {if !empty($dataArray)}
167 <th>{ts}SubTotal{/ts}</th>
168 <th>{ts}Tax Rate{/ts}</th>
169 <th>{ts}Tax Amount{/ts}</th>
171 <th>{ts}Total{/ts}</th>
172 {if !empty($pricesetFieldsCount) }<th>{ts}Total Participants{/ts}</th>{/if}
174 {foreach from=$value item=line}
177 {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}
183 {$line.unit_price|crmMoney}
185 {if !empty($dataArray)}
187 {$line.unit_price*$line.qty|crmMoney}
189 {if isset($line.tax_rate) and ($line.tax_rate != "" || $line.tax_amount != "")}
191 {$line.tax_rate|string_format:"%.2f"}%
194 {$line.tax_amount|crmMoney}
202 {$line.line_total+$line.tax_amount|crmMoney}
204 {if !empty($pricesetFieldsCount) }
206 {$line.participant_count}
216 {if !empty($dataArray)}
217 {if isset($totalAmount) and isset($totalTaxAmount)}
220 {ts}Amount Before Tax:{/ts}
223 {$totalAmount-$totalTaxAmount|crmMoney}
227 {foreach from=$dataArray item=value key=priceset}
229 {if $priceset || $priceset == 0}
230 <td> {if isset($taxTerm)}{$taxTerm}{/if} {$priceset|string_format:"%.2f"}%</td>
231 <td> {$value|crmMoney:$currency}</td>
233 <td> {ts}No{/ts} {if isset($taxTerm)}{$taxTerm}{/if}</td>
234 <td> {$value|crmMoney:$currency}</td>
241 {if !empty($amount) && !$lineItem}
242 {foreach from=$amount item=amnt key=level}
244 <td colspan="2" {$valueStyle}>
245 {$amnt.amount|crmMoney} {$amnt.label}
250 {if isset($totalTaxAmount)}
253 {ts}Total Tax Amount{/ts}
256 {$totalTaxAmount|crmMoney:$currency}
260 {if !empty($isPrimary)}
263 {if isset($balanceAmount)}
266 {ts}Total Amount{/ts}
270 {if !empty($totalAmount)}{$totalAmount|crmMoney}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}
273 {if isset($balanceAmount)}
279 {$balanceAmount|crmMoney}
283 {if !empty($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}
305 {if !empty($is_pay_later)}
307 <td colspan="2" {$labelStyle}>
308 {if isset($pay_later_receipt)}{$pay_later_receipt}{/if}
316 {ts}Registration Date{/ts}
319 {$register_date|crmDate}
324 {if !empty($receive_date)}
327 {ts}Transaction Date{/ts}
330 {$receive_date|crmDate}
335 {if !empty($financialTypeName)}
338 {ts}Financial Type{/ts}
346 {if !empty($trxn_id)}
349 {ts}Transaction #{/ts}
368 {if !empty($checkNumber)}
371 {ts}Check Number{/ts}
379 {if !empty($billingName)}
382 {ts}Billing Name and Address{/ts}
386 <td colspan="2" {$valueStyle}>
393 {if !empty($credit_card_type)}
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 *}
412 {if !empty($customPre)}
415 {$customPre_grouptitle}
418 {foreach from=$customPre item=value key=customName}
419 {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
432 {if !empty($customPost)}
435 {$customPost_grouptitle}
438 {foreach from=$customPost item=value key=customName}
439 {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
452 {if !empty($customProfile)}
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}
485 {if !empty($customGroup)}
486 {foreach from=$customGroup item=value key=customName}
492 {foreach from=$value item=v key=n}