commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / CRM / Upgrade / 4.3.alpha1.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
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 $isOnWaitlist}waitlisted{else}registered{/if}</strong> for the following:</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}
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>
39 {/if}
40 {elseif $isRequireApproval}
41 <p>{ts}Your registration has been submitted.{/ts}</p>
42 {if $isPrimary}
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>
44 {/if}
45 {elseif $is_pay_later && !$isAmountzero}
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}
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}
158 <tr>
159 <td colspan="2" {$valueStyle}>
160 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
161 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
162 </td>
163 </tr>
164 {if $event.is_share}
165 <tr>
166 <td colspan="2" {$valueStyle}>
167 {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture}
168 {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
169 </td>
170 </tr>
171 {/if}
172 {if $payer.name}
173 <tr>
174 <th {$headerStyle}>
175 {ts}You were registered by:{/ts}
176 </th>
177 </tr>
178 <tr>
179 <td colspan="2" {$valueStyle}>
180 {$payer.name}
181 </td>
182 </tr>
183 {/if}
184 {if $event.is_monetary}
185
186 <tr>
187 <th {$headerStyle}>
188 {$event.fee_label}
189 </th>
190 </tr>
191
192 {if $lineItem}
193 {foreach from=$lineItem item=value key=priceset}
194 {if $value neq 'skip'}
195 {if $isPrimary}
196 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
197 <tr>
198 <td colspan="2" {$labelStyle}>
199 {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
200 </td>
201 </tr>
202 {/if}
203 {/if}
204 <tr>
205 <td colspan="2" {$valueStyle}>
206 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
207 <tr>
208 <th>{ts}Item{/ts}</th>
209 <th>{ts}Qty{/ts}</th>
210 <th>{ts}Each{/ts}</th>
211 <th>{ts}Total{/ts}</th>
212 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
213 </tr>
214 {foreach from=$value item=line}
215 <tr>
216 <td>
217 {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}
218 </td>
219 <td>
220 {$line.qty}
221 </td>
222 <td>
223 {$line.unit_price|crmMoney}
224 </td>
225 <td>
226 {$line.line_total|crmMoney}
227 </td>
228 {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if}
229 </tr>
230 {/foreach}
231 </table>
232 </td>
233 </tr>
234 {/if}
235 {/foreach}
236 {/if}
237
238 {if $amounts && !$lineItem}
239 {foreach from=$amounts item=amnt key=level}
240 <tr>
241 <td colspan="2" {$valueStyle}>
242 {$amnt.amount|crmMoney} {$amnt.label}
243 </td>
244 </tr>
245 {/foreach}
246 {/if}
247
248 {if $isPrimary}
249 <tr>
250 <td {$labelStyle}>
251 {ts}Total Amount{/ts}
252 </td>
253 <td {$valueStyle}>
254 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
255 </td>
256 </tr>
257 {if $pricesetFieldsCount }
258 <tr>
259 <td {$labelStyle}>
260 {ts}Total Participants{/ts}</td>
261 <td {$valueStyle}>
262 {assign var="count" value= 0}
263 {foreach from=$lineItem item=pcount}
264 {assign var="lineItemCount" value=0}
265 {if $pcount neq 'skip'}
266 {foreach from=$pcount item=p_count}
267 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
268 {/foreach}
269 {if $lineItemCount < 1 }
270 {assign var="lineItemCount" value=1}
271 {/if}
272 {assign var="count" value=$count+$lineItemCount}
273 {/if}
274 {/foreach}
275 {$count}
276 </td> </tr>
277 {/if}
278
279 {if $register_date}
280 <tr>
281 <td {$labelStyle}>
282 {ts}Registration Date{/ts}
283 </td>
284 <td {$valueStyle}>
285 {$register_date|crmDate}
286 </td>
287 </tr>
288 {/if}
289
290 {if $receive_date}
291 <tr>
292 <td {$labelStyle}>
293 {ts}Transaction Date{/ts}
294 </td>
295 <td {$valueStyle}>
296 {$receive_date|crmDate}
297 </td>
298 </tr>
299 {/if}
300
301 {if $contributionTypeName}
302 <tr>
303 <td {$labelStyle}>
304 {ts}Financial Type{/ts}
305 </td>
306 <td {$valueStyle}>
307 {$contributionTypeName}
308 </td>
309 </tr>
310 {/if}
311
312 {if $trxn_id}
313 <tr>
314 <td {$labelStyle}>
315 {ts}Transaction #{/ts}
316 </td>
317 <td {$valueStyle}>
318 {$trxn_id}
319 </td>
320 </tr>
321 {/if}
322
323 {if $paidBy}
324 <tr>
325 <td {$labelStyle}>
326 {ts}Paid By{/ts}
327 </td>
328 <td {$valueStyle}>
329 {$paidBy}
330 </td>
331 </tr>
332 {/if}
333
334 {if $checkNumber}
335 <tr>
336 <td {$labelStyle}>
337 {ts}Check Number{/ts}
338 </td>
339 <td {$valueStyle}>
340 {$checkNumber}
341 </td>
342 </tr>
343 {/if}
344
345 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
346 <tr>
347 <th {$headerStyle}>
348 {ts}Billing Name and Address{/ts}
349 </th>
350 </tr>
351 <tr>
352 <td colspan="2" {$valueStyle}>
353 {$billingName}<br />
354 {$address|nl2br}
355 </td>
356 </tr>
357 {/if}
358
359 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
360 <tr>
361 <th {$headerStyle}>
362 {ts}Credit Card Information{/ts}
363 </th>
364 </tr>
365 <tr>
366 <td colspan="2" {$valueStyle}>
367 {$credit_card_type}<br />
368 {$credit_card_number}<br />
369 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
370 </td>
371 </tr>
372 {/if}
373
374 {/if}
375
376 {/if} {* End of conditional section for Paid events *}
377
378
379 {if $customPre}
380 {foreach from=$customPre item=customPr key=i}
381 <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr>
382 {foreach from=$customPr item=customValue key=customName}
383 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
384 <tr>
385 <td {$labelStyle}>{$customName}</td>
386 <td {$valueStyle}>{$customValue}</td>
387 </tr>
388 {/if}
389 {/foreach}
390 {/foreach}
391 {/if}
392
393 {if $customPost}
394 {foreach from=$customPost item=customPos key=j}
395 <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr>
396 {foreach from=$customPos item=customValue key=customName}
397 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
398 <tr>
399 <td {$labelStyle}>{$customName}</td>
400 <td {$valueStyle}>{$customValue}</td>
401 </tr>
402 {/if}
403 {/foreach}
404 {/foreach}
405 {/if}
406
407 {if $customProfile}
408 {foreach from=$customProfile.profile item=eachParticipant key=participantID}
409 <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr>
410 {foreach from=$eachParticipant item=eachProfile key=pid}
411 <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr>
412 {foreach from=$eachProfile item=val key=field}
413 <tr>{foreach from=$val item=v key=f}
414 <td {$labelStyle}>{$field}</td>
415 <td {$valueStyle}>{$v}</td>
416 {/foreach}
417 </tr>
418 {/foreach}
419 {/foreach}
420 {/foreach}
421 {/if}
422
423 {if $customGroup}
424 {foreach from=$customGroup item=value key=customName}
425 <tr>
426 <th {$headerStyle}>
427 {$customName}
428 </th>
429 </tr>
430 {foreach from=$value item=v key=n}
431 <tr>
432 <td {$labelStyle}>
433 {$n}
434 </td>
435 <td {$valueStyle}>
436 {$v}
437 </td>
438 </tr>
439 {/foreach}
440 {/foreach}
441 {/if}
442
443 </table>
444 </td>
445 </tr>
446 </table>
447 </center>
448
449 </body>
450 </html>