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