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}
13 <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;">
16 <!-- You can add table row(s) here with logo or other header elements -->
19 <!-- BEGIN CONTENT -->
23 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
25 {if !empty($event.confirm_email_text) AND (empty($isOnWaitlist) AND empty($isRequireApproval))}
26 <p>{$event.confirm_email_text|htmlize}</p>
29 {if !empty($isOnWaitlist)}
30 <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
31 {if !empty($isPrimary)}
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 !empty($isRequireApproval)}
35 <p>{ts}Your registration has been submitted.{/ts}</p>
36 {if !empty($isPrimary)}
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 !empty($is_pay_later)}
40 <p>{if isset($pay_later_receipt)}{$pay_later_receipt}{/if}</p> {* FIXME: this might be text rather than HTML *}
47 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
50 {ts}Event Information and Location{/ts}
54 <td colspan="2" {$valueStyle}>
55 {$event.event_title}<br />
56 {$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} {$event.event_tz}
60 {if !empty($event.participant_role) and $event.participant_role neq 'Attendee' and !empty($defaultRole)}
63 {ts}Participant Role{/ts}
66 {$event.participant_role}
71 {if !empty($isShowLocation)}
73 <td colspan="2" {$valueStyle}>
74 {$location.address.1.display|nl2br}
79 {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}
81 <td colspan="2" {$labelStyle}>
82 {ts}Event Contacts:{/ts}
85 {foreach from=$location.phone item=phone}
89 {if $phone.phone_type}
90 {$phone.phone_type_display}
96 {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
101 {foreach from=$location.email item=eventEmail}
102 {if $eventEmail.email}
115 {if !empty($event.is_public)}
117 <td colspan="2" {$valueStyle}>
118 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
119 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
127 {ts}Registered Email{/ts}
131 <td colspan="2" {$valueStyle}>
138 {if !empty($event.is_monetary)}
142 {if !empty($event.fee_label)}{$event.fee_label}{/if}
146 {if !empty($lineItem)}
147 {foreach from=$lineItem item=value key=priceset}
148 {if $value neq 'skip'}
149 {if !empty($isPrimary)}
150 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
152 <td colspan="2" {$labelStyle}>
153 {ts 1=$priceset+1}Participant %1{/ts}
159 <td colspan="2" {$valueStyle}>
160 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
162 <th>{ts}Item{/ts}</th>
163 <th>{ts}Qty{/ts}</th>
164 <th>{ts}Each{/ts}</th>
165 {if !empty($dataArray)}
166 <th>{ts}SubTotal{/ts}</th>
167 <th>{ts}Tax Rate{/ts}</th>
168 <th>{ts}Tax Amount{/ts}</th>
170 <th>{ts}Total{/ts}</th>
171 {if !empty($pricesetFieldsCount) }<th>{ts}Total Participants{/ts}</th>{/if}
173 {foreach from=$value item=line}
176 {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}
182 {$line.unit_price|crmMoney}
184 {if !empty($dataArray)}
186 {$line.unit_price*$line.qty|crmMoney}
188 {if $line.tax_rate || $line.tax_amount != ""}
190 {$line.tax_rate|string_format:"%.2f"}%
193 {$line.tax_amount|crmMoney}
201 {$line.line_total+$line.tax_amount|crmMoney}
203 {if !empty($pricesetFieldsCount) }
205 {$line.participant_count}
215 {if !empty($dataArray)}
216 {if isset($totalAmount) and isset($totalTaxAmount)}
219 {ts}Amount Before Tax:{/ts}
222 {$totalAmount-$totalTaxAmount|crmMoney}
226 {foreach from=$dataArray item=value key=priceset}
228 {if $priceset || $priceset == 0}
229 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
230 <td> {$value|crmMoney:$currency}</td>
232 <td> {ts}No{/ts} {$taxTerm}</td>
233 <td> {$value|crmMoney:$currency}</td>
240 {if !empty($amount) && !$lineItem}
241 {foreach from=$amount item=amnt key=level}
243 <td colspan="2" {$valueStyle}>
244 {$amnt.amount|crmMoney} {$amnt.label}
249 {if isset($totalTaxAmount)}
252 {ts}Total Tax Amount{/ts}
255 {$totalTaxAmount|crmMoney:$currency}
259 {if !empty($isPrimary)}
262 {if isset($balanceAmount)}
265 {ts}Total Amount{/ts}
269 {if !empty($totalAmount)}{$totalAmount|crmMoney}{/if} {if !empty($hookDiscount.message)}({$hookDiscount.message}){/if}
272 {if isset($balanceAmount)}
278 {$balanceAmount|crmMoney}
282 {if !empty($pricesetFieldsCount) }
285 {ts}Total Participants{/ts}</td>
287 {assign var="count" value= 0}
288 {foreach from=$lineItem item=pcount}
289 {assign var="lineItemCount" value=0}
290 {if $pcount neq 'skip'}
291 {foreach from=$pcount item=p_count}
292 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
294 {if $lineItemCount < 1 }
295 assign var="lineItemCount" value=1}
297 {assign var="count" value=$count+$lineItemCount}
304 {if !empty($is_pay_later)}
306 <td colspan="2" {$labelStyle}>
307 {if isset($pay_later_receipt)}{$pay_later_receipt}{/if}
315 {ts}Registration Date{/ts}
318 {$register_date|crmDate}
323 {if !empty($receive_date)}
326 {ts}Transaction Date{/ts}
329 {$receive_date|crmDate}
334 {if !empty($financialTypeName)}
337 {ts}Financial Type{/ts}
345 {if !empty($trxn_id)}
348 {ts}Transaction #{/ts}
367 {if !empty($checkNumber)}
370 {ts}Check Number{/ts}
378 {if !empty($billingName)}
381 {ts}Billing Name and Address{/ts}
385 <td colspan="2" {$valueStyle}>
392 {if !empty($credit_card_type)}
395 {ts}Credit Card Information{/ts}
399 <td colspan="2" {$valueStyle}>
400 {$credit_card_type}<br />
401 {$credit_card_number}<br />
402 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
409 {/if} {* End of conditional section for Paid events *}
411 {if !empty($customPre)}
414 {$customPre_grouptitle}
417 {foreach from=$customPre item=value key=customName}
418 {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
431 {if !empty($customPost)}
434 {$customPost_grouptitle}
437 {foreach from=$customPost item=value key=customName}
438 {if ( !empty($trackingFields) and ! in_array( $customName, $trackingFields ) ) or empty($trackingFields)}
451 {if !empty($customProfile)}
452 {foreach from=$customProfile item=value key=customName}
455 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
458 {foreach from=$value item=val key=field}
459 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
461 <td colspan="2" {$labelStyle}>
462 {if $field eq 'additionalCustomPre'}
463 {$additionalCustomPre_grouptitle}
465 {$additionalCustomPost_grouptitle}
469 {foreach from=$val item=v key=f}
484 {if !empty($customGroup)}
485 {foreach from=$customGroup item=value key=customName}
491 {foreach from=$value item=v key=n}