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 $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 *}
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 $event.participant_role neq 'Attendee' and $defaultRole}
64 {ts}Participant Role{/ts}
67 {$event.participant_role}
74 <td colspan="2" {$valueStyle}>
75 {$location.address.1.display|nl2br}
80 {if $location.phone.1.phone || $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 $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 $event.is_monetary}
148 {foreach from=$lineItem item=value key=priceset}
149 {if $value neq 'skip'}
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>
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 $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}
187 {$line.unit_price*$line.qty|crmMoney}
189 {if $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 $pricesetFieldsCount }
206 {$line.participant_count}
219 {ts}Amount Before Tax:{/ts}
222 {$totalAmount-$totalTaxAmount|crmMoney}
225 {foreach from=$dataArray item=value key=priceset}
227 {if $priceset || $priceset == 0}
228 <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
229 <td> {$value|crmMoney:$currency}</td>
231 <td> {ts}No{/ts} {$taxTerm}</td>
232 <td> {$value|crmMoney:$currency}</td>
239 {if $amount && !$lineItem}
240 {foreach from=$amount item=amnt key=level}
242 <td colspan="2" {$valueStyle}>
243 {$amnt.amount|crmMoney} {$amnt.label}
251 {ts}Total Tax Amount{/ts}
254 {$totalTaxAmount|crmMoney:$currency}
264 {ts}Total Amount{/ts}
268 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
277 {$balanceAmount|crmMoney}
281 {if $pricesetFieldsCount }
284 {ts}Total Participants{/ts}</td>
286 {assign var="count" value= 0}
287 {foreach from=$lineItem item=pcount}
288 {assign var="lineItemCount" value=0}
289 {if $pcount neq 'skip'}
290 {foreach from=$pcount item=p_count}
291 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
293 {if $lineItemCount < 1 }
294 assign var="lineItemCount" value=1}
296 {assign var="count" value=$count+$lineItemCount}
305 <td colspan="2" {$labelStyle}>
314 {ts}Registration Date{/ts}
317 {$register_date|crmDate}
325 {ts}Transaction Date{/ts}
328 {$receive_date|crmDate}
333 {if $financialTypeName}
336 {ts}Financial Type{/ts}
347 {ts}Transaction #{/ts}
369 {ts}Check Number{/ts}
380 {ts}Billing Name and Address{/ts}
384 <td colspan="2" {$valueStyle}>
391 {if $credit_card_type}
394 {ts}Credit Card Information{/ts}
398 <td colspan="2" {$valueStyle}>
399 {$credit_card_type}<br />
400 {$credit_card_number}<br />
401 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
408 {/if} {* End of conditional section for Paid events *}
413 {$customPre_grouptitle}
416 {foreach from=$customPre item=value key=customName}
417 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
433 {$customPost_grouptitle}
436 {foreach from=$customPost item=value key=customName}
437 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
451 {foreach from=$customProfile item=value key=customName}
454 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
457 {foreach from=$value item=val key=field}
458 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
460 <td colspan="2" {$labelStyle}>
461 {if $field eq 'additionalCustomPre'}
462 {$additionalCustomPre_grouptitle}
464 {$additionalCustomPost_grouptitle}
468 {foreach from=$val item=v key=f}
484 {foreach from=$customGroup item=value key=customName}
490 {foreach from=$value item=v key=n}