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