commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / xml / templates / message_templates / event_offline_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} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
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
131 {if $event.is_public}
132 <tr>
133 <td colspan="2" {$valueStyle}>
134 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
135 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
136 </td>
137 </tr>
138 {/if}
139
140 {if $email}
141 <tr>
142 <th {$headerStyle}>
143 {ts}Registered Email{/ts}
144 </th>
145 </tr>
146 <tr>
147 <td colspan="2" {$valueStyle}>
148 {$email}
149 </td>
150 </tr>
151 {/if}
152
153
154 {if $event.is_monetary}
155
156 <tr>
157 <th {$headerStyle}>
158 {$event.fee_label}
159 </th>
160 </tr>
161
162 {if $lineItem}
163 {foreach from=$lineItem item=value key=priceset}
164 {if $value neq 'skip'}
165 {if $isPrimary}
166 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
167 <tr>
168 <td colspan="2" {$labelStyle}>
169 {ts 1=$priceset+1}Participant %1{/ts}
170 </td>
171 </tr>
172 {/if}
173 {/if}
174 <tr>
175 <td colspan="2" {$valueStyle}>
176 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
177 <tr>
178 <th>{ts}Item{/ts}</th>
179 <th>{ts}Qty{/ts}</th>
180 <th>{ts}Each{/ts}</th>
181 {if $dataArray}
182 <th>{ts}SubTotal{/ts}</th>
183 <th>{ts}Tax Rate{/ts}</th>
184 <th>{ts}Tax Amount{/ts}</th>
185 {/if}
186 <th>{ts}Total{/ts}</th>
187 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
188 </tr>
189 {foreach from=$value item=line}
190 <tr>
191 <td>
192 {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}
193 </td>
194 <td>
195 {$line.qty}
196 </td>
197 <td>
198 {$line.unit_price|crmMoney}
199 </td>
200 {if $dataArray}
201 <td>
202 {$line.unit_price*$line.qty|crmMoney}
203 </td>
204 {if $line.tax_rate != "" || $line.tax_amount != ""}
205 <td>
206 {$line.tax_rate|string_format:"%.2f"}%
207 </td>
208 <td>
209 {$line.tax_amount|crmMoney}
210 </td>
211 {else}
212 <td></td>
213 <td></td>
214 {/if}
215 {/if}
216 <td>
217 {$line.line_total+$line.tax_amount|crmMoney}
218 </td>
219 {if $pricesetFieldsCount }
220 <td>
221 {$line.participant_count}
222 </td>
223 {/if}
224 </tr>
225 {/foreach}
226 </table>
227 </td>
228 </tr>
229 {/if}
230 {/foreach}
231 {if $dataArray}
232 <tr>
233 <td {$labelStyle}>
234 {ts}Amount Before Tax:{/ts}
235 </td>
236 <td {$valueStyle}>
237 {$totalAmount-$totalTaxAmount|crmMoney}
238 </td>
239 </tr>
240 {foreach from=$dataArray item=value key=priceset}
241 <tr>
242 {if $priceset || $priceset == 0}
243 <td>&nbsp;{$taxTerm} {$priceset|string_format:"%.2f"}%</td>
244 <td>&nbsp;{$value|crmMoney:$currency}</td>
245 {else}
246 <td>&nbsp;{ts}No{/ts} {$taxTerm}</td>
247 <td>&nbsp;{$value|crmMoney:$currency}</td>
248 {/if}
249 </tr>
250 {/foreach}
251 {/if}
252 {/if}
253
254 {if $amount && !$lineItem}
255 {foreach from=$amount item=amnt key=level}
256 <tr>
257 <td colspan="2" {$valueStyle}>
258 {$amnt.amount|crmMoney} {$amnt.label}
259 </td>
260 </tr>
261 {/foreach}
262 {/if}
263 {if $totalTaxAmount}
264 <tr>
265 <td {$labelStyle}>
266 {ts}Total Tax Amount{/ts}
267 </td>
268 <td {$valueStyle}>
269 {$totalTaxAmount|crmMoney:$currency}
270 </td>
271 </tr>
272 {/if}
273 {if $isPrimary}
274 <tr>
275 <td {$labelStyle}>
276 {if $balanceAmount}
277 {ts}Total Paid{/ts}
278 {else}
279 {ts}Total Amount{/ts}
280 {/if}
281 </td>
282 <td {$valueStyle}>
283 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
284 </td>
285 </tr>
286 {if $balanceAmount}
287 <tr>
288 <td {$labelStyle}>
289 {ts}Balance{/ts}
290 </td>
291 <td {$valueStyle}>
292 {$balanceAmount|crmMoney}
293 </td>
294 </tr>
295 {/if}
296 {if $pricesetFieldsCount }
297 <tr>
298 <td {$labelStyle}>
299 {ts}Total Participants{/ts}</td>
300 <td {$valueStyle}>
301 {assign var="count" value= 0}
302 {foreach from=$lineItem item=pcount}
303 {assign var="lineItemCount" value=0}
304 {if $pcount neq 'skip'}
305 {foreach from=$pcount item=p_count}
306 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
307 {/foreach}
308 {if $lineItemCount < 1 }
309 assign var="lineItemCount" value=1}
310 {/if}
311 {assign var="count" value=$count+$lineItemCount}
312 {/if}
313 {/foreach}
314 {$count}
315 </td>
316 </tr>
317 {/if}
318 {if $is_pay_later}
319 <tr>
320 <td colspan="2" {$labelStyle}>
321 {$pay_later_receipt}
322 </td>
323 </tr>
324 {/if}
325
326 {if $register_date}
327 <tr>
328 <td {$labelStyle}>
329 {ts}Registration Date{/ts}
330 </td>
331 <td {$valueStyle}>
332 {$register_date|crmDate}
333 </td>
334 </tr>
335 {/if}
336
337 {if $receive_date}
338 <tr>
339 <td {$labelStyle}>
340 {ts}Transaction Date{/ts}
341 </td>
342 <td {$valueStyle}>
343 {$receive_date|crmDate}
344 </td>
345 </tr>
346 {/if}
347
348 {if $contributionTypeName}
349 <tr>
350 <td {$labelStyle}>
351 {ts}Financial Type{/ts}
352 </td>
353 <td {$valueStyle}>
354 {$contributionTypeName}
355 </td>
356 </tr>
357 {/if}
358
359 {if $trxn_id}
360 <tr>
361 <td {$labelStyle}>
362 {ts}Transaction #{/ts}
363 </td>
364 <td {$valueStyle}>
365 {$trxn_id}
366 </td>
367 </tr>
368 {/if}
369
370 {if $paidBy}
371 <tr>
372 <td {$labelStyle}>
373 {ts}Paid By{/ts}
374 </td>
375 <td {$valueStyle}>
376 {$paidBy}
377 </td>
378 </tr>
379 {/if}
380
381 {if $checkNumber}
382 <tr>
383 <td {$labelStyle}>
384 {ts}Check Number{/ts}
385 </td>
386 <td {$valueStyle}>
387 {$checkNumber}
388 </td>
389 </tr>
390 {/if}
391
392 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
393 <tr>
394 <th {$headerStyle}>
395 {ts}Billing Name and Address{/ts}
396 </th>
397 </tr>
398 <tr>
399 <td colspan="2" {$valueStyle}>
400 {$billingName}<br />
401 {$address|nl2br}
402 </td>
403 </tr>
404 {/if}
405
406 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
407 <tr>
408 <th {$headerStyle}>
409 {ts}Credit Card Information{/ts}
410 </th>
411 </tr>
412 <tr>
413 <td colspan="2" {$valueStyle}>
414 {$credit_card_type}<br />
415 {$credit_card_number}<br />
416 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
417 </td>
418 </tr>
419 {/if}
420
421 {/if}
422
423 {/if} {* End of conditional section for Paid events *}
424
425 {if $customPre}
426 <tr>
427 <th {$headerStyle}>
428 {$customPre_grouptitle}
429 </th>
430 </tr>
431 {foreach from=$customPre item=value key=customName}
432 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
433 <tr>
434 <td {$labelStyle}>
435 {$customName}
436 </td>
437 <td {$valueStyle}>
438 {$value}
439 </td>
440 </tr>
441 {/if}
442 {/foreach}
443 {/if}
444
445 {if $customPost}
446 <tr>
447 <th {$headerStyle}>
448 {$customPost_grouptitle}
449 </th>
450 </tr>
451 {foreach from=$customPost item=value key=customName}
452 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
453 <tr>
454 <td {$labelStyle}>
455 {$customName}
456 </td>
457 <td {$valueStyle}>
458 {$value}
459 </td>
460 </tr>
461 {/if}
462 {/foreach}
463 {/if}
464
465 {if $customProfile}
466 {foreach from=$customProfile item=value key=customName}
467 <tr>
468 <th {$headerStyle}>
469 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
470 </th>
471 </tr>
472 {foreach from=$value item=val key=field}
473 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
474 <tr>
475 <td colspan="2" {$labelStyle}>
476 {if $field eq 'additionalCustomPre'}
477 {$additionalCustomPre_grouptitle}
478 {else}
479 {$additionalCustomPost_grouptitle}
480 {/if}
481 </td>
482 </tr>
483 {foreach from=$val item=v key=f}
484 <tr>
485 <td {$labelStyle}>
486 {$f}
487 </td>
488 <td {$valueStyle}>
489 {$v}
490 </td>
491 </tr>
492 {/foreach}
493 {/if}
494 {/foreach}
495 {/foreach}
496 {/if}
497
498 {if $customGroup}
499 {foreach from=$customGroup item=value key=customName}
500 <tr>
501 <th {$headerStyle}>
502 {$customName}
503 </th>
504 </tr>
505 {foreach from=$value item=v key=n}
506 <tr>
507 <td {$labelStyle}>
508 {$n}
509 </td>
510 <td {$valueStyle}>
511 {$v}
512 </td>
513 </tr>
514 {/foreach}
515 {/foreach}
516 {/if}
517
518 </table>
519 </td>
520 </tr>
521
522 </table>
523 </center>
524
525 </body>
526 </html>