Commit | Line | Data |
---|---|---|
6a488035 TO |
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"> | |
3 | <head> | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
5 | <title></title> | |
6 | </head> | |
7 | <body> | |
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} | |
12 | ||
13 | <center> | |
14 | <table width="500" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;"> | |
15 | ||
16 | <!-- BEGIN HEADER --> | |
17 | <!-- You can add table row(s) here with logo or other header elements --> | |
18 | <!-- END HEADER --> | |
19 | ||
20 | <!-- BEGIN CONTENT --> | |
21 | ||
22 | <tr> | |
23 | <td> | |
24 | ||
25 | {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)} | |
26 | <p>{$event.confirm_email_text|htmlize}</p> | |
27 | {/if} | |
28 | ||
29 | {if $isOnWaitlist} | |
30 | <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> | |
31 | {if $isPrimary} | |
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> | |
34 | {/if} | |
35 | {elseif $isRequireApproval} | |
36 | <p>{ts}Your registration has been submitted.{/ts}</p> | |
37 | {if $isPrimary} | |
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> | |
41 | {/if} | |
42 | {elseif $is_pay_later && !$isAmountzero} | |
43 | <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} | |
44 | {else} | |
45 | <p>{ts}Please print this confirmation for your records.{/ts}</p> | |
46 | {/if} | |
47 | ||
48 | </td> | |
49 | </tr> | |
50 | </table> | |
51 | <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> | |
52 | <tr> | |
53 | <th {$headerStyle}> | |
54 | {ts}Event Information and Location{/ts} | |
55 | </th> | |
56 | </tr> | |
57 | <tr> | |
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} | |
61 | </td> | |
62 | </tr> | |
63 | ||
64 | {if $event.participant_role neq 'Attendee' and $defaultRole} | |
65 | <tr> | |
66 | <td {$labelStyle}> | |
67 | {ts}Participant Role{/ts} | |
68 | </td> | |
69 | <td {$valueStyle}> | |
70 | {$event.participant_role} | |
71 | </td> | |
72 | </tr> | |
73 | {/if} | |
74 | ||
75 | {if $isShowLocation} | |
76 | <tr> | |
77 | <td colspan="2" {$valueStyle}> | |
78 | {if $location.address.1.name} | |
79 | {$location.address.1.name}<br /> | |
80 | {/if} | |
81 | {if $location.address.1.street_address} | |
82 | {$location.address.1.street_address}<br /> | |
83 | {/if} | |
84 | {if $location.address.1.supplemental_address_1} | |
85 | {$location.address.1.supplemental_address_1}<br /> | |
86 | {/if} | |
87 | {if $location.address.1.supplemental_address_2} | |
88 | {$location.address.1.supplemental_address_2}<br /> | |
89 | {/if} | |
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 /> | |
92 | {/if} | |
93 | </td> | |
94 | </tr> | |
95 | {/if} | |
96 | ||
97 | {if $location.phone.1.phone || $location.email.1.email} | |
98 | <tr> | |
99 | <td colspan="2" {$labelStyle}> | |
100 | {ts}Event Contacts:{/ts} | |
101 | </td> | |
102 | </tr> | |
103 | {foreach from=$location.phone item=phone} | |
104 | {if $phone.phone} | |
105 | <tr> | |
106 | <td {$labelStyle}> | |
107 | {if $phone.phone_type} | |
108 | {$phone.phone_type_display} | |
109 | {else} | |
110 | {ts}Phone{/ts} | |
111 | {/if} | |
112 | </td> | |
113 | <td {$valueStyle}> | |
114 | {$phone.phone} | |
115 | </td> | |
116 | </tr> | |
117 | {/if} | |
118 | {/foreach} | |
119 | {foreach from=$location.email item=eventEmail} | |
120 | {if $eventEmail.email} | |
121 | <tr> | |
122 | <td {$labelStyle}> | |
123 | {ts}Email{/ts} | |
124 | </td> | |
125 | <td {$valueStyle}> | |
126 | {$eventEmail.email} | |
127 | </td> | |
128 | </tr> | |
129 | {/if} | |
130 | {/foreach} | |
131 | {/if} | |
132 | <tr> | |
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> | |
136 | </td> | |
137 | </tr> | |
138 | {if $email} | |
139 | <tr> | |
140 | <th {$headerStyle}> | |
141 | {ts}Registered Email{/ts} | |
142 | </th> | |
143 | </tr> | |
144 | <tr> | |
145 | <td colspan="2" {$valueStyle}> | |
146 | {$email} | |
147 | </td> | |
148 | </tr> | |
149 | {/if} | |
150 | ||
151 | ||
152 | {if $event.is_monetary} | |
153 | ||
154 | <tr> | |
155 | <th {$headerStyle}> | |
156 | {$event.fee_label} | |
157 | </th> | |
158 | </tr> | |
159 | ||
160 | {if $lineItem} | |
161 | {foreach from=$lineItem item=value key=priceset} | |
162 | {if $value neq 'skip'} | |
163 | {if $isPrimary} | |
164 | {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} | |
165 | <tr> | |
166 | <td colspan="2" {$labelStyle}> | |
167 | {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info} | |
168 | </td> | |
169 | </tr> | |
170 | {/if} | |
171 | {/if} | |
172 | <tr> | |
173 | <td colspan="2" {$valueStyle}> | |
174 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
175 | <tr> | |
176 | <th>{ts}Item{/ts}</th> | |
177 | <th>{ts}Qty{/ts}</th> | |
178 | <th>{ts}Each{/ts}</th> | |
179 | <th>{ts}Total{/ts}</th> | |
10824d34 | 180 | {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if} |
6a488035 TO |
181 | </tr> |
182 | {foreach from=$value item=line} | |
183 | <tr> | |
184 | <td> | |
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} | |
186 | </td> | |
187 | <td> | |
188 | {$line.qty} | |
189 | </td> | |
190 | <td> | |
191 | {$line.unit_price|crmMoney} | |
192 | </td> | |
193 | <td> | |
194 | {$line.line_total|crmMoney} | |
195 | </td> | |
10824d34 | 196 | {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if} |
6a488035 TO |
197 | </tr> |
198 | {/foreach} | |
199 | </table> | |
200 | </td> | |
201 | </tr> | |
202 | {/if} | |
203 | {/foreach} | |
204 | {/if} | |
205 | ||
206 | {if $amount && !$lineItem} | |
207 | {foreach from=$amount item=amnt key=level} | |
208 | <tr> | |
209 | <td colspan="2" {$valueStyle}> | |
210 | {$amnt.amount|crmMoney} {$amnt.label} | |
211 | </td> | |
212 | </tr> | |
213 | {/foreach} | |
214 | {/if} | |
215 | ||
216 | {if $isPrimary} | |
217 | <tr> | |
218 | <td {$labelStyle}> | |
219 | {ts}Total Amount{/ts} | |
10824d34 | 220 | </td> |
6a488035 TO |
221 | <td {$valueStyle}> |
222 | {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if} | |
223 | </td> | |
224 | </tr> | |
225 | {if $pricesetFieldsCount } | |
226 | <tr> | |
10824d34 | 227 | <td {$labelStyle}> |
228 | {ts}Total Participants{/ts}</td> | |
6a488035 | 229 | <td {$valueStyle}> |
10824d34 | 230 | {assign var="count" value= 0} |
6a488035 TO |
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} | |
236 | {/foreach} | |
237 | {if $lineItemCount < 1 } | |
238 | {assign var="lineItemCount" value=1} | |
10824d34 | 239 | {/if} |
6a488035 TO |
240 | {assign var="count" value=$count+$lineItemCount} |
241 | {/if} | |
242 | {/foreach} | |
243 | {$count} | |
244 | </td> </tr> | |
245 | {/if} | |
246 | {if $is_pay_later} | |
247 | <tr> | |
248 | <td colspan="2" {$labelStyle}> | |
249 | {$pay_later_receipt} | |
250 | </td> | |
251 | </tr> | |
252 | {/if} | |
253 | ||
254 | {if $register_date} | |
255 | <tr> | |
256 | <td {$labelStyle}> | |
257 | {ts}Registration Date{/ts} | |
258 | </td> | |
259 | <td {$valueStyle}> | |
260 | {$register_date|crmDate} | |
261 | </td> | |
262 | </tr> | |
263 | {/if} | |
264 | ||
265 | {if $receive_date} | |
266 | <tr> | |
267 | <td {$labelStyle}> | |
268 | {ts}Transaction Date{/ts} | |
269 | </td> | |
270 | <td {$valueStyle}> | |
271 | {$receive_date|crmDate} | |
272 | </td> | |
273 | </tr> | |
274 | {/if} | |
275 | ||
276 | {if $contributionTypeName} | |
277 | <tr> | |
278 | <td {$labelStyle}> | |
279 | {ts}Contribution Type{/ts} | |
280 | </td> | |
281 | <td {$valueStyle}> | |
282 | {$contributionTypeName} | |
283 | </td> | |
284 | </tr> | |
285 | {/if} | |
286 | ||
287 | {if $trxn_id} | |
288 | <tr> | |
289 | <td {$labelStyle}> | |
290 | {ts}Transaction #{/ts} | |
291 | </td> | |
292 | <td {$valueStyle}> | |
293 | {$trxn_id} | |
294 | </td> | |
295 | </tr> | |
296 | {/if} | |
297 | ||
298 | {if $paidBy} | |
299 | <tr> | |
300 | <td {$labelStyle}> | |
301 | {ts}Paid By{/ts} | |
302 | </td> | |
303 | <td {$valueStyle}> | |
304 | {$paidBy} | |
305 | </td> | |
306 | </tr> | |
307 | {/if} | |
308 | ||
309 | {if $checkNumber} | |
310 | <tr> | |
311 | <td {$labelStyle}> | |
312 | {ts}Check Number{/ts} | |
313 | </td> | |
314 | <td {$valueStyle}> | |
315 | {$checkNumber} | |
316 | </td> | |
317 | </tr> | |
318 | {/if} | |
319 | ||
320 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
321 | <tr> | |
322 | <th {$headerStyle}> | |
323 | {ts}Billing Name and Address{/ts} | |
324 | </th> | |
325 | </tr> | |
326 | <tr> | |
327 | <td colspan="2" {$valueStyle}> | |
328 | {$billingName}<br /> | |
329 | {$address|nl2br} | |
330 | </td> | |
331 | </tr> | |
332 | {/if} | |
333 | ||
334 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
335 | <tr> | |
336 | <th {$headerStyle}> | |
337 | {ts}Credit Card Information{/ts} | |
338 | </th> | |
339 | </tr> | |
340 | <tr> | |
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} | |
345 | </td> | |
346 | </tr> | |
347 | {/if} | |
348 | ||
349 | {/if} | |
350 | ||
351 | {/if} {* End of conditional section for Paid events *} | |
352 | ||
353 | {if $customPre} | |
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} | |
358 | <tr> | |
359 | <td {$labelStyle}>{$customName}</td> | |
360 | <td {$valueStyle}>{$customValue}</td> | |
361 | </tr> | |
362 | {/if} | |
363 | {/foreach} | |
364 | {/foreach} | |
365 | {/if} | |
366 | ||
367 | {if $customPost} | |
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} | |
372 | <tr> | |
373 | <td {$labelStyle}>{$customName}</td> | |
374 | <td {$valueStyle}>{$customValue}</td> | |
375 | </tr> | |
376 | {/if} | |
377 | {/foreach} | |
378 | {/foreach} | |
379 | {/if} | |
380 | ||
381 | {if $customProfile} | |
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} | |
10824d34 | 388 | <td {$labelStyle}>{$field}</td> |
389 | <td {$valueStyle}>{$v}</td> | |
6a488035 TO |
390 | {/foreach} |
391 | </tr> | |
392 | {/foreach} | |
393 | {/foreach} | |
394 | {/foreach} | |
395 | {/if} | |
396 | ||
397 | {if $customGroup} | |
398 | {foreach from=$customGroup item=value key=customName} | |
399 | <tr> | |
400 | <th {$headerStyle}> | |
401 | {$customName} | |
402 | </th> | |
403 | </tr> | |
404 | {foreach from=$value item=v key=n} | |
405 | <tr> | |
406 | <td {$labelStyle}> | |
407 | {$n} | |
408 | </td> | |
409 | <td {$valueStyle}> | |
410 | {$v} | |
411 | </td> | |
412 | </tr> | |
413 | {/foreach} | |
414 | {/foreach} | |
415 | {/if} | |
416 | ||
417 | </table> | |
418 | </center> | |
419 | ||
420 | </body> | |
421 | </html> |