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 }<td>{$line.participant_count}</td> {/if} | |
195 | </tr> | |
196 | {/foreach} | |
197 | </table> | |
198 | </td> | |
199 | </tr> | |
200 | {/if} | |
201 | {/foreach} | |
202 | {/if} | |
203 | ||
204 | {if $amount && !$lineItem} | |
205 | {foreach from=$amount item=amnt key=level} | |
206 | <tr> | |
207 | <td colspan="2" {$valueStyle}> | |
208 | {$amnt.amount|crmMoney} {$amnt.label} | |
209 | </td> | |
210 | </tr> | |
211 | {/foreach} | |
212 | {/if} | |
213 | ||
214 | {if $isPrimary} | |
215 | <tr> | |
216 | <td {$labelStyle}> | |
217 | {ts}Total Amount{/ts} | |
218 | </td> | |
219 | <td {$valueStyle}> | |
220 | {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if} | |
221 | </td> | |
222 | </tr> | |
223 | {if $participantCount } | |
224 | <tr> | |
225 | <td {$labelStyle}> | |
226 | {ts}Total Participants{/ts}</td> | |
227 | <td {$valueStyle}> | |
228 | {assign var="count" value= 0} | |
229 | {foreach from=$lineItem item=pcount} | |
230 | {foreach from=$pcount item=p_count} | |
231 | {assign var="count" value=$count+$p_count.participant_count} | |
232 | {/foreach} | |
233 | {/foreach} | |
234 | {$count} | |
235 | </td> </tr> | |
236 | {/if} | |
237 | {if $is_pay_later} | |
238 | <tr> | |
239 | <td colspan="2" {$labelStyle}> | |
240 | {$pay_later_receipt} | |
241 | </td> | |
242 | </tr> | |
243 | {/if} | |
244 | ||
245 | {if $register_date} | |
246 | <tr> | |
247 | <td {$labelStyle}> | |
248 | {ts}Registration Date{/ts} | |
249 | </td> | |
250 | <td {$valueStyle}> | |
251 | {$register_date|crmDate} | |
252 | </td> | |
253 | </tr> | |
254 | {/if} | |
255 | ||
256 | {if $receive_date} | |
257 | <tr> | |
258 | <td {$labelStyle}> | |
259 | {ts}Transaction Date{/ts} | |
260 | </td> | |
261 | <td {$valueStyle}> | |
262 | {$receive_date|crmDate} | |
263 | </td> | |
264 | </tr> | |
265 | {/if} | |
266 | ||
267 | {if $contributionTypeName} | |
268 | <tr> | |
269 | <td {$labelStyle}> | |
270 | {ts}Contribution Type{/ts} | |
271 | </td> | |
272 | <td {$valueStyle}> | |
273 | {$contributionTypeName} | |
274 | </td> | |
275 | </tr> | |
276 | {/if} | |
277 | ||
278 | {if $trxn_id} | |
279 | <tr> | |
280 | <td {$labelStyle}> | |
281 | {ts}Transaction #{/ts} | |
282 | </td> | |
283 | <td {$valueStyle}> | |
284 | {$trxn_id} | |
285 | </td> | |
286 | </tr> | |
287 | {/if} | |
288 | ||
289 | {if $paidBy} | |
290 | <tr> | |
291 | <td {$labelStyle}> | |
292 | {ts}Paid By{/ts} | |
293 | </td> | |
294 | <td {$valueStyle}> | |
295 | {$paidBy} | |
296 | </td> | |
297 | </tr> | |
298 | {/if} | |
299 | ||
300 | {if $checkNumber} | |
301 | <tr> | |
302 | <td {$labelStyle}> | |
303 | {ts}Check Number{/ts} | |
304 | </td> | |
305 | <td {$valueStyle}> | |
306 | {$checkNumber} | |
307 | </td> | |
308 | </tr> | |
309 | {/if} | |
310 | ||
311 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
312 | <tr> | |
313 | <th {$headerStyle}> | |
314 | {ts}Billing Name and Address{/ts} | |
315 | </th> | |
316 | </tr> | |
317 | <tr> | |
318 | <td colspan="2" {$valueStyle}> | |
319 | {$billingName}<br /> | |
320 | {$address|nl2br} | |
321 | </td> | |
322 | </tr> | |
323 | {/if} | |
324 | ||
325 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} | |
326 | <tr> | |
327 | <th {$headerStyle}> | |
328 | {ts}Credit Card Information{/ts} | |
329 | </th> | |
330 | </tr> | |
331 | <tr> | |
332 | <td colspan="2" {$valueStyle}> | |
333 | {$credit_card_type}<br /> | |
334 | {$credit_card_number}<br /> | |
335 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
336 | </td> | |
337 | </tr> | |
338 | {/if} | |
339 | ||
340 | {/if} | |
341 | ||
342 | {/if} {* End of conditional section for Paid events *} | |
343 | ||
344 | {if $customPre} | |
345 | <tr> | |
346 | <th {$headerStyle}> | |
347 | {$customPre_grouptitle} | |
348 | </th> | |
349 | </tr> | |
350 | {foreach from=$customPre item=value key=customName} | |
351 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
352 | <tr> | |
353 | <td {$labelStyle}> | |
354 | {$customName} | |
355 | </td> | |
356 | <td {$valueStyle}> | |
357 | {$value} | |
358 | </td> | |
359 | </tr> | |
360 | {/if} | |
361 | {/foreach} | |
362 | {/if} | |
363 | ||
364 | {if $customPost} | |
365 | <tr> | |
366 | <th {$headerStyle}> | |
367 | {$customPost_grouptitle} | |
368 | </th> | |
369 | </tr> | |
370 | {foreach from=$customPost item=value key=customName} | |
371 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} | |
372 | <tr> | |
373 | <td {$labelStyle}> | |
374 | {$customName} | |
375 | </td> | |
376 | <td {$valueStyle}> | |
377 | {$value} | |
378 | </td> | |
379 | </tr> | |
380 | {/if} | |
381 | {/foreach} | |
382 | {/if} | |
383 | ||
384 | {if $customProfile} | |
385 | {foreach from=$customProfile item=value key=customName} | |
386 | <tr> | |
387 | <th {$headerStyle}> | |
388 | {ts 1=$customName+1}Participant Information - Participant %1{/ts} | |
389 | </th> | |
390 | <tr> | |
391 | {foreach from=$value item=val key=field} | |
392 | {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'} | |
393 | <tr> | |
394 | <td colspan="2" {$labelStyle}> | |
395 | {if $field eq 'additionalCustomPre'} | |
396 | {$additionalCustomPre_grouptitle} | |
397 | {else} | |
398 | {$additionalCustomPost_grouptitle} | |
399 | {/if} | |
400 | </td> | |
401 | </tr> | |
402 | {foreach from=$val item=v key=f} | |
403 | <tr> | |
404 | <td {$labelStyle}> | |
405 | {$f} | |
406 | </td> | |
407 | <td {$valueStyle}> | |
408 | {$v} | |
409 | </td> | |
410 | </tr> | |
411 | {/foreach} | |
412 | {/if} | |
413 | {/foreach} | |
414 | {/foreach} | |
415 | {/if} | |
416 | ||
417 | {if $customGroup} | |
418 | {foreach from=$customGroup item=value key=customName} | |
419 | <tr> | |
420 | <th {$headerStyle}> | |
421 | {$customName} | |
422 | </th> | |
423 | </tr> | |
424 | {foreach from=$value item=v key=n} | |
425 | <tr> | |
426 | <td {$labelStyle}> | |
427 | {$n} | |
428 | </td> | |
429 | <td {$valueStyle}> | |
430 | {$v} | |
431 | </td> | |
432 | </tr> | |
433 | {/foreach} | |
434 | {/foreach} | |
435 | {/if} | |
436 | ||
437 | </table> | |
438 | </td> | |
439 | </tr> | |
440 | ||
441 | </table> | |
442 | </center> | |
443 | ||
444 | </body> | |
445 | </html> |