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