commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / CRM / Upgrade / 4.6.3.msg_template / message_templates / event_online_receipt_html.tpl
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 {capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture}
13 {capture assign=tdStyle}style="width: 100px;"{/capture}
14 {capture assign=participantTotal}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture}
15
16
17 <center>
18 <table width="700" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
19
20 <!-- BEGIN HEADER -->
21 <!-- You can add table row(s) here with logo or other header elements -->
22 <!-- END HEADER -->
23
24 <!-- BEGIN CONTENT -->
25
26 <tr>
27 <td>
28 <p>Dear {contact.display_name},</p>
29
30 {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
31 <p>{$event.confirm_email_text|htmlize}</p>
32
33 {else}
34 <p>Thank you for your participation. This letter is a confirmation that your registration has been received and your status has been updated to <strong>{if $participant_status}{$participant_status}{else}{if $isOnWaitlist}waitlisted{else}registered{/if}{/if}</strong>.</p>
35
36 {/if}
37
38 <p>
39 {if $isOnWaitlist}
40 <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
41 {if $isPrimary}
42 <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>
43 {/if}
44 {elseif $isRequireApproval}
45 <p>{ts}Your registration has been submitted.{/ts}</p>
46 {if $isPrimary}
47 <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>
48 {/if}
49 {elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
50 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
51 {else}
52 <p>{ts}Please print this confirmation for your records.{/ts}</p>
53 {/if}
54
55 </td>
56 </tr>
57 <tr>
58 <td>
59 <table width="700" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;">
60 <tr>
61 <th {$headerStyle}>
62 {ts}Event Information and Location{/ts}
63 </th>
64 </tr>
65 <tr>
66 <td colspan="2" {$valueStyle}>
67 {$event.event_title}<br />
68 {$event.event_start_date|date_format:"%A"} {$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|date_format:"%A"} {$event.event_end_date|crmDate}{/if}{/if}
69 </td>
70 </tr>
71
72
73 {if $conference_sessions}
74 <tr>
75 <td colspan="2" {$labelStyle}>
76 {ts}Your schedule:{/ts}
77 </td>
78 </tr>
79 <tr>
80 <td colspan="2" {$valueStyle}>
81 {assign var='group_by_day' value='NA'}
82 {foreach from=$conference_sessions item=session}
83 {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
84 {assign var='group_by_day' value=$session.start_date}
85 <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br />
86 {/if}
87 {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />
88 {if $session.location}&nbsp;&nbsp;&nbsp;&nbsp;{$session.location}<br />{/if}
89 {/foreach}
90 </td>
91 </tr>
92 {/if}
93
94 {if $event.participant_role neq 'Attendee' and $defaultRole}
95 <tr>
96 <td {$labelStyle}>
97 {ts}Participant Role{/ts}
98 </td>
99 <td {$valueStyle}>
100 {$event.participant_role}
101 </td>
102 </tr>
103 {/if}
104
105 {if $isShowLocation}
106 <tr>
107 <td colspan="2" {$valueStyle}>
108 {if $location.address.1.name}
109 {$location.address.1.name}<br />
110 {/if}
111 {if $location.address.1.street_address}
112 {$location.address.1.street_address}<br />
113 {/if}
114 {if $location.address.1.supplemental_address_1}
115 {$location.address.1.supplemental_address_1}<br />
116 {/if}
117 {if $location.address.1.supplemental_address_2}
118 {$location.address.1.supplemental_address_2}<br />
119 {/if}
120 {if $location.address.1.city}
121 {$location.address.1.city}, {$location.address.1.state_province} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
122 {/if}
123 </td>
124 </tr>
125 {/if}
126
127 {if $location.phone.1.phone || $location.email.1.email}
128 <tr>
129 <td colspan="2" {$labelStyle}>
130 {ts}Event Contacts:{/ts}
131 </td>
132 </tr>
133 {foreach from=$location.phone item=phone}
134 {if $phone.phone}
135 <tr>
136 <td {$labelStyle}>
137 {if $phone.phone_type}
138 {$phone.phone_type_display}
139 {else}
140 {ts}Phone{/ts}
141 {/if}
142 </td>
143 <td {$valueStyle}>
144 {$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
145 </td>
146 </tr>
147 {/if}
148 {/foreach}
149 {foreach from=$location.email item=eventEmail}
150 {if $eventEmail.email}
151 <tr>
152 <td {$labelStyle}>
153 {ts}Email{/ts}
154 </td>
155 <td {$valueStyle}>
156 {$eventEmail.email}
157 </td>
158 </tr>
159 {/if}
160 {/foreach}
161 {/if}
162
163 {if $event.is_public}
164 <tr>
165 <td colspan="2" {$valueStyle}>
166 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
167 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
168 </td>
169 </tr>
170 {/if}
171
172 {if $event.is_share}
173 <tr>
174 <td colspan="2" {$valueStyle}>
175 {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture}
176 {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
177 </td>
178 </tr>
179 {/if}
180 {if $payer.name}
181 <tr>
182 <th {$headerStyle}>
183 {ts}You were registered by:{/ts}
184 </th>
185 </tr>
186 <tr>
187 <td colspan="2" {$valueStyle}>
188 {$payer.name}
189 </td>
190 </tr>
191 {/if}
192 {if $event.is_monetary}
193
194 <tr>
195 <th {$headerStyle}>
196 {$event.fee_label}
197 </th>
198 </tr>
199
200 {if $lineItem}
201 {foreach from=$lineItem item=value key=priceset}
202 {if $value neq 'skip'}
203 {if $isPrimary}
204 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
205 <tr>
206 <td colspan="2" {$labelStyle}>
207 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
208 </td>
209 </tr>
210 {/if}
211 {/if}
212 <tr>
213 <td colspan="2" {$valueStyle}>
214 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
215 <tr>
216 <th>{ts}Item{/ts}</th>
217 <th>{ts}Qty{/ts}</th>
218 <th>{ts}Each{/ts}</th>
219 {if $dataArray}
220 <th>{ts}SubTotal{/ts}</th>
221 <th>{ts}Tax Rate{/ts}</th>
222 <th>{ts}Tax Amount{/ts}</th>
223 {/if}
224 <th>{ts}Total{/ts}</th>
225 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
226 </tr>
227 {foreach from=$value item=line}
228 <tr>
229 <td {$tdfirstStyle}>
230 {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}
231 </td>
232 <td {$tdStyle} align="middle">
233 {$line.qty}
234 </td>
235 <td {$tdStyle}>
236 {$line.unit_price|crmMoney:$currency}
237 </td>
238 {if $dataArray}
239 <td {$tdStyle}>
240 {$line.unit_price*$line.qty|crmMoney}
241 </td>
242 {if $line.tax_rate != "" || $line.tax_amount != ""}
243 <td {$tdStyle}>
244 {$line.tax_rate|string_format:"%.2f"}%
245 </td>
246 <td {$tdStyle}>
247 {$line.tax_amount|crmMoney}
248 </td>
249 {else}
250 <td></td>
251 <td></td>
252 {/if}
253 {/if}
254 <td {$tdStyle}>
255 {$line.line_total+$line.tax_amount|crmMoney:$currency}
256 </td>
257 {if $pricesetFieldsCount }<td {$tdStyle}>{$line.participant_count}</td> {/if}
258 </tr>
259 {/foreach}
260 {if $individual}
261 <tr {$participantTotal}>
262 <td colspan=3>{ts}Participant Total{/ts}</td>
263 <td colspan=2>{$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney}</td>
264 <td colspan=1>{$individual.$priceset.totalTaxAmt|crmMoney}</td>
265 <td colspan=2>{$individual.$priceset.totalAmtWithTax|crmMoney}</td>
266 </tr>
267 {/if}
268 </table>
269 </td>
270 </tr>
271 {/if}
272 {/foreach}
273 {if $dataArray}
274 <tr>
275 <td {$labelStyle}>
276 {ts} Amount Before Tax: {/ts}
277 </td>
278 <td {$valueStyle}>
279 {$totalAmount-$totalTaxAmount|crmMoney}
280 </td>
281 </tr>
282 {foreach from=$dataArray item=value key=priceset}
283 <tr>
284 {if $priceset || $priceset == 0}
285 <td>&nbsp;{$taxTerm} {$priceset|string_format:"%.2f"}%</td>
286 <td>&nbsp;{$value|crmMoney:$currency}</td>
287 {else}
288 <td>&nbsp;{ts}No{/ts} {$taxTerm}</td>
289 <td>&nbsp;{$value|crmMoney:$currency}</td>
290 {/if}
291 </tr>
292 {/foreach}
293 {/if}
294 {/if}
295
296 {if $amounts && !$lineItem}
297 {foreach from=$amounts item=amnt key=level}
298 <tr>
299 <td colspan="2" {$valueStyle}>
300 {$amnt.amount|crmMoney:$currency} {$amnt.label}
301 </td>
302 </tr>
303 {/foreach}
304 {/if}
305
306 {if $totalTaxAmount}
307 <tr>
308 <td {$labelStyle}>
309 {ts}Total Tax Amount{/ts}
310 </td>
311 <td {$valueStyle}>
312 {$totalTaxAmount|crmMoney:$currency}
313 </td>
314 </tr>
315 {/if}
316 {if $isPrimary}
317 <tr>
318 <td {$labelStyle}>
319 {ts}Total Amount{/ts}
320 </td>
321 <td {$valueStyle}>
322 {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
323 </td>
324 </tr>
325 {if $pricesetFieldsCount }
326 <tr>
327 <td {$labelStyle}>
328 {ts}Total Participants{/ts}</td>
329 <td {$valueStyle}>
330 {assign var="count" value= 0}
331 {foreach from=$lineItem item=pcount}
332 {assign var="lineItemCount" value=0}
333 {if $pcount neq 'skip'}
334 {foreach from=$pcount item=p_count}
335 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
336 {/foreach}
337 {if $lineItemCount < 1 }
338 {assign var="lineItemCount" value=1}
339 {/if}
340 {assign var="count" value=$count+$lineItemCount}
341 {/if}
342 {/foreach}
343 {$count}
344 </td> </tr>
345 {/if}
346
347 {if $register_date}
348 <tr>
349 <td {$labelStyle}>
350 {ts}Registration Date{/ts}
351 </td>
352 <td {$valueStyle}>
353 {$register_date|crmDate}
354 </td>
355 </tr>
356 {/if}
357
358 {if $receive_date}
359 <tr>
360 <td {$labelStyle}>
361 {ts}Transaction Date{/ts}
362 </td>
363 <td {$valueStyle}>
364 {$receive_date|crmDate}
365 </td>
366 </tr>
367 {/if}
368
369 {if $contributionTypeName}
370 <tr>
371 <td {$labelStyle}>
372 {ts}Financial Type{/ts}
373 </td>
374 <td {$valueStyle}>
375 {$contributionTypeName}
376 </td>
377 </tr>
378 {/if}
379
380 {if $trxn_id}
381 <tr>
382 <td {$labelStyle}>
383 {ts}Transaction #{/ts}
384 </td>
385 <td {$valueStyle}>
386 {$trxn_id}
387 </td>
388 </tr>
389 {/if}
390
391 {if $paidBy}
392 <tr>
393 <td {$labelStyle}>
394 {ts}Paid By{/ts}
395 </td>
396 <td {$valueStyle}>
397 {$paidBy}
398 </td>
399 </tr>
400 {/if}
401
402 {if $checkNumber}
403 <tr>
404 <td {$labelStyle}>
405 {ts}Check Number{/ts}
406 </td>
407 <td {$valueStyle}>
408 {$checkNumber}
409 </td>
410 </tr>
411 {/if}
412
413 {if $contributeMode ne 'notify' and !$isAmountzero and (!$is_pay_later or $isBillingAddressRequiredForPayLater) and !$isOnWaitlist and !$isRequireApproval}
414 <tr>
415 <th {$headerStyle}>
416 {ts}Billing Name and Address{/ts}
417 </th>
418 </tr>
419 <tr>
420 <td colspan="2" {$valueStyle}>
421 {$billingName}<br />
422 {$address|nl2br}
423 </td>
424 </tr>
425 {/if}
426
427 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
428 <tr>
429 <th {$headerStyle}>
430 {ts}Credit Card Information{/ts}
431 </th>
432 </tr>
433 <tr>
434 <td colspan="2" {$valueStyle}>
435 {$credit_card_type}<br />
436 {$credit_card_number}<br />
437 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
438 </td>
439 </tr>
440 {/if}
441
442 {/if}
443
444 {/if} {* End of conditional section for Paid events *}
445
446
447 {if $customPre}
448 {foreach from=$customPre item=customPr key=i}
449 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
450 {foreach from=$customPr item=customValue key=customName}
451 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
452 <tr>
453 <td {$labelStyle}>{$customName}</td>
454 <td {$valueStyle}>{$customValue}</td>
455 </tr>
456 {/if}
457 {/foreach}
458 {/foreach}
459 {/if}
460
461 {if $customPost}
462 {foreach from=$customPost item=customPos key=j}
463 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
464 {foreach from=$customPos item=customValue key=customName}
465 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
466 <tr>
467 <td {$labelStyle}>{$customName}</td>
468 <td {$valueStyle}>{$customValue}</td>
469 </tr>
470 {/if}
471 {/foreach}
472 {/foreach}
473 {/if}
474
475 {if $customProfile}
476 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
477 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr>
478 {foreach from=$eachParticipant item=eachProfile key=pid}
479 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
480 {foreach from=$eachProfile item=val key=field}
481 <tr>{foreach from=$val item=v key=f}
482 <td {$labelStyle}>{$field}</td>
483 <td {$valueStyle}>{$v}</td>
484 {/foreach}
485 </tr>
486 {/foreach}
487 {/foreach}
488 {/foreach}
489 {/if}
490
491 {if $customGroup}
492 {foreach from=$customGroup item=value key=customName}
493 <tr>
494 <th {$headerStyle}>
495 {$customName}
496 </th>
497 </tr>
498 {foreach from=$value item=v key=n}
499 <tr>
500 <td {$labelStyle}>
501 {$n}
502 </td>
503 <td {$valueStyle}>
504 {$v}
505 </td>
506 </tr>
507 {/foreach}
508 {/foreach}
509 {/if}
510
511 </table>
512 </td>
513 </tr>
514 </table>
515 </center>
516
517 </body>
518 </html>