Commit | Line | Data |
---|---|---|
7f254ad8 AE |
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="620" 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 a link to a web page where you can complete your registration.{/ts}</p> | |
33 | {/if} | |
34 | {elseif $isRequireApproval} | |
35 | <p>{ts}Your registration has been submitted.{/ts}</p> | |
36 | {if $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> | |
38 | {/if} | |
39 | {elseif $is_pay_later} | |
40 | <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} | |
41 | {else} | |
42 | <p>{ts}Please print this confirmation for your records.{/ts}</p> | |
43 | {/if} | |
44 | ||
45 | </td> | |
46 | </tr> | |
47 | <tr> | |
48 | <td> | |
49 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> | |
50 | <tr> | |
51 | <th {$headerStyle}> | |
52 | {ts}Event Information and Location{/ts} | |
53 | </th> | |
54 | </tr> | |
55 | <tr> | |
56 | <td colspan="2" {$valueStyle}> | |
57 | {$event.event_title}<br /> | |
58 | {$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} | |
59 | </td> | |
60 | </tr> | |
61 | ||
62 | {if $event.participant_role neq 'Attendee' and $defaultRole} | |
63 | <tr> | |
64 | <td {$labelStyle}> | |
65 | {ts}Participant Role{/ts} | |
66 | </td> | |
67 | <td {$valueStyle}> | |
68 | {$event.participant_role} | |
69 | </td> | |
70 | </tr> | |
71 | {/if} | |
72 | ||
73 | {if $isShowLocation} | |
74 | <tr> | |
75 | <td colspan="2" {$valueStyle}> | |
76 | {if $location.address.1.name} | |
77 | {$location.address.1.name}<br /> | |
78 | {/if} | |
79 | {if $location.address.1.street_address} | |
80 | {$location.address.1.street_address}<br /> | |
81 | {/if} | |
82 | {if $location.address.1.supplemental_address_1} | |
83 | {$location.address.1.supplemental_address_1}<br /> | |
84 | {/if} | |
85 | {if $location.address.1.supplemental_address_2} | |
86 | {$location.address.1.supplemental_address_2}<br /> | |
87 | {/if} | |
88 | {if $location.address.1.city} | |
89 | {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br /> | |
90 | {/if} | |
91 | </td> | |
92 | </tr> | |
93 | {/if} | |
94 | ||
95 | {if $location.phone.1.phone || $location.email.1.email} | |
96 | <tr> | |
97 | <td colspan="2" {$labelStyle}> | |
98 | {ts}Event Contacts:{/ts} | |
99 | </td> | |
100 | </tr> | |
101 | {foreach from=$location.phone item=phone} | |
102 | {if $phone.phone} | |
103 | <tr> | |
104 | <td {$labelStyle}> | |
105 | {if $phone.phone_type} | |
106 | {$phone.phone_type_display} | |
107 | {else} | |
108 | {ts}Phone{/ts} | |
109 | {/if} | |
110 | </td> | |
111 | <td {$valueStyle}> | |
112 | {$phone.phone} | |
113 | </td> | |
114 | </tr> | |
115 | {/if} | |
116 | {/foreach} | |
117 | {foreach from=$location.email item=eventEmail} | |
118 | {if $eventEmail.email} | |
119 | <tr> | |
120 | <td {$labelStyle}> | |
121 | {ts}Email{/ts} | |
122 | </td> | |
123 | <td {$valueStyle}> | |
124 | {$eventEmail.email} | |
125 | </td> | |
126 | </tr> | |
127 | {/if} | |
128 | {/foreach} | |
129 | {/if} | |
130 | <tr> | |
131 | <td colspan="2" {$valueStyle}> | |
132 | {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} | |
133 | <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a> | |
134 | </td> | |
135 | </tr> | |
136 | {if $email} | |
137 | <tr> | |
138 | <th {$headerStyle}> | |
139 | {ts}Registered Email{/ts} | |
140 | </th> | |
141 | </tr> | |
142 | <tr> | |
143 | <td colspan="2" {$valueStyle}> | |
144 | {$email} | |
145 | </td> | |
146 | </tr> | |
147 | {/if} | |
148 | ||
149 | ||
150 | {if $event.is_monetary} | |
151 | ||
152 | <tr> | |
153 | <th {$headerStyle}> | |
154 | {$event.fee_label} | |
155 | </th> | |
156 | </tr> | |
157 | ||
158 | {if $lineItem} | |
159 | {foreach from=$lineItem item=value key=priceset} | |
160 | {if $value neq 'skip'} | |
161 | {if $isPrimary} | |
162 | {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} | |
163 | <tr> | |
164 | <td colspan="2" {$labelStyle}> | |
165 | {ts 1=$priceset+1}Participant %1{/ts} | |
166 | </td> | |
167 | </tr> | |
168 | {/if} | |
169 | {/if} | |
170 | <tr> | |
171 | <td colspan="2" {$valueStyle}> | |
172 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
173 | <tr> | |
174 | <th>{ts}Item{/ts}</th> | |
175 | <th>{ts}Qty{/ts}</th> | |
176 | <th>{ts}Each{/ts}</th> | |
177 | <th>{ts}Total{/ts}</th> | |
178 | {if $participantCount }<th>{ts}Total Participants{/ts}</th>{/if} | |
179 | </tr> | |
180 | {foreach from=$value item=line} | |
181 | <tr> | |
182 | <td> | |
183 | {$line.description|truncate:30:"..."} | |
184 | </td> | |
185 | <td> | |
186 | {$line.qty} | |
187 | </td> | |
188 | <td> | |
189 | {$line.unit_price|crmMoney} | |
190 | </td> | |
191 | <td> | |
192 | {$line.line_total|crmMoney} | |
193 | </td> | |
194 | {if $participantCount } | |
195 | <td> | |
196 | {$line.participant_count} | |
197 | </td> | |
198 | {/if} | |
199 | </tr> | |
200 | {/foreach} | |
201 | </table> | |
202 | </td> | |
203 | </tr> | |
204 | {/if} | |
205 | {/foreach} | |
206 | {/if} | |
207 | ||
208 | {if $amount && !$lineItem} | |
209 | {foreach from=$amount item=amnt key=level} | |
210 | <tr> | |
211 | <td colspan="2" {$valueStyle}> | |
212 | {$amnt.amount|crmMoney} {$amnt.label} | |
213 | </td> | |
214 | </tr> | |
215 | {/foreach} | |
216 | {/if} | |
217 | ||
218 | {if $isPrimary} | |
219 | <tr> | |
220 | <td {$labelStyle}> | |
221 | {ts}Total Amount{/ts} | |
222 | </td> | |
223 | <td {$valueStyle}> | |
224 | {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if} | |
225 | </td> | |
226 | </tr> | |
227 | {if $participantCount } | |
228 | <tr> | |
229 | <td {$labelStyle}> | |
230 | {ts}Total Participants{/ts}</td> | |
231 | <td {$valueStyle}> | |
232 | {assign var="count" value= 0} | |
233 | {foreach from=$lineItem item=pcount} | |
234 | {foreach from=$pcount item=p_count} | |
235 | {assign var="count" value=$count+$p_count.participant_count} | |
236 | {/foreach} | |
237 | {/foreach} | |
238 | {$count} | |
239 | </td> | |
240 | </tr> | |
241 | {/if} | |
242 | {if $is_pay_later} | |
243 | <tr> | |
244 | <td colspan="2" {$labelStyle}> | |
245 | {$pay_later_receipt} | |
246 | </td> | |
247 | </tr> | |
248 | {/if} | |
249 | ||
250 | {if $register_date} | |
251 | <tr> | |
252 | <td {$labelStyle}> | |
253 | {ts}Registration Date{/ts} | |
254 | </td> | |
255 | <td {$valueStyle}> | |
256 | {$register_date|crmDate} | |
257 | </td> | |
258 | </tr> | |
259 | {/if} | |
260 | ||
261 | {if $receive_date} | |
262 | <tr> | |
263 | <td {$labelStyle}> | |
264 | {ts}Transaction Date{/ts} | |
265 | </td> | |
266 | <td {$valueStyle}> | |
267 | {$receive_date|crmDate} | |
268 | </td> | |
269 | </tr> | |
270 | {/if} | |
271 | ||
272 | {if $contributionTypeName} | |
273 | <tr> | |
274 | <td {$labelStyle}> | |
275 | {ts}Contribution Type{/ts} | |
276 | </td> | |
277 | <td {$valueStyle}> | |
278 | {$contributionTypeName} | |
279 | </td> | |
280 | </tr> | |
281 | {/if} | |
282 | ||
283 | {if $trxn_id} | |
284 | <tr> | |
285 | <td {$labelStyle}> | |
286 | {ts}Transaction #{/ts} | |
287 | </td> | |
288 | <td {$valueStyle}> | |
289 | {$trxn_id} | |
290 | </td> | |
291 | </tr> | |
292 | {/if} | |
293 | ||
294 | {if $paidBy} | |
295 | <tr> | |
296 | <td {$labelStyle}> | |
297 | {ts}Paid By{/ts} | |
298 | </td> | |
299 | <td {$valueStyle}> | |
300 | {$paidBy} | |
301 | </td> | |
302 | </tr> | |
303 | {/if} | |
304 | ||
305 | {if $checkNumber} | |
306 | <tr> | |
307 | <td {$labelStyle}> | |
308 | {ts}Check Number{/ts} | |
309 | </td> | |
310 | <td {$valueStyle}> | |
311 | {$checkNumber} | |
312 | </td> | |
313 | </tr> | |
314 | {/if} | |
315 | ||
316 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
317 | <tr> | |
318 | <th {$headerStyle}> | |
319 | {ts}Billing Name and Address{/ts} | |
320 | </th> | |
321 | </tr> | |
322 | <tr> | |
323 | <td colspan="2" {$valueStyle}> | |
324 | {$billingName}<br /> | |
325 | {$address|nl2br} | |
326 | </td> | |
327 | </tr> | |
328 | {/if} | |
329 | ||
330 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
331 | <tr> | |
332 | <th {$headerStyle}> | |
333 | {ts}Credit Card Information{/ts} | |
334 | </th> | |
335 | </tr> | |
336 | <tr> | |
337 | <td colspan="2" {$valueStyle}> | |
338 | {$credit_card_type}<br /> | |
339 | {$credit_card_number}<br /> | |
340 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
341 | </td> | |
342 | </tr> | |
343 | {/if} | |
344 | ||
345 | {/if} | |
346 | ||
347 | {/if} {* End of conditional section for Paid events *} | |
348 | ||
349 | {if $customPre} | |
350 | <tr> | |
351 | <th {$headerStyle}> | |
352 | {$customPre_grouptitle} | |
353 | </th> | |
354 | </tr> | |
355 | {foreach from=$customPre item=value key=customName} | |
356 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
357 | <tr> | |
358 | <td {$labelStyle}> | |
359 | {$customName} | |
360 | </td> | |
361 | <td {$valueStyle}> | |
362 | {$value} | |
363 | </td> | |
364 | </tr> | |
365 | {/if} | |
366 | {/foreach} | |
367 | {/if} | |
368 | ||
369 | {if $customPost} | |
370 | <tr> | |
371 | <th {$headerStyle}> | |
372 | {$customPost_grouptitle} | |
373 | </th> | |
374 | </tr> | |
375 | {foreach from=$customPost item=value key=customName} | |
376 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
377 | <tr> | |
378 | <td {$labelStyle}> | |
379 | {$customName} | |
380 | </td> | |
381 | <td {$valueStyle}> | |
382 | {$value} | |
383 | </td> | |
384 | </tr> | |
385 | {/if} | |
386 | {/foreach} | |
387 | {/if} | |
388 | ||
389 | {if $customProfile} | |
390 | {foreach from=$customProfile item=value key=customName} | |
391 | <tr> | |
392 | <th {$headerStyle}> | |
393 | {ts 1=$customName+1}Participant Information - Participant %1{/ts} | |
394 | </th> | |
395 | <tr> | |
396 | {foreach from=$value item=val key=field} | |
397 | {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'} | |
398 | <tr> | |
399 | <td colspan="2" {$labelStyle}> | |
400 | {if $field eq 'additionalCustomPre'} | |
401 | {$additionalCustomPre_grouptitle} | |
402 | {else} | |
403 | {$additionalCustomPost_grouptitle} | |
404 | {/if} | |
405 | </td> | |
406 | </tr> | |
407 | {foreach from=$val item=v key=f} | |
408 | <tr> | |
409 | <td {$labelStyle}> | |
410 | {$f} | |
411 | </td> | |
412 | <td {$valueStyle}> | |
413 | {$v} | |
414 | </td> | |
415 | </tr> | |
416 | {/foreach} | |
417 | {/if} | |
418 | {/foreach} | |
419 | {/foreach} | |
420 | {/if} | |
421 | ||
422 | {if $customGroup} | |
423 | {foreach from=$customGroup item=value key=customName} | |
424 | <tr> | |
425 | <th {$headerStyle}> | |
426 | {$customName} | |
427 | </th> | |
428 | </tr> | |
429 | {foreach from=$value item=v key=n} | |
430 | <tr> | |
431 | <td {$labelStyle}> | |
432 | {$n} | |
433 | </td> | |
434 | <td {$valueStyle}> | |
435 | {$v} | |
436 | </td> | |
437 | </tr> | |
438 | {/foreach} | |
439 | {/foreach} | |
440 | {/if} | |
441 | ||
442 | </table> | |
443 | </td> | |
444 | </tr> | |
445 | ||
446 | </table> | |
447 | </center> | |
448 | ||
449 | </body> | |
450 | </html> |