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