-- added upgrade code message template
[civicrm-core.git] / CRM / Upgrade / 4.5.beta5.msg_template / message_templates / event_offline_receipt_html.tpl
CommitLineData
cf612441
PB
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
33a link to a web page where you can complete your registration.{/ts}</p>
34 {/if}
35 {elseif $isRequireApproval}
36 <p>{ts}Your registration has been submitted.{/ts}</p>
37 {if $isPrimary}
38 <p>{ts}Once your registration has been reviewed, you will receive
39an email with a link to a web page where you can complete the
40registration process.{/ts}</p>
41 {/if}
42 {elseif $is_pay_later}
43 <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
44 {else}
45 <p>{ts}Please print this confirmation for your records.{/ts}</p>
46 {/if}
47
48 </td>
49 </tr>
50 <tr>
51 <td>
52 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
53 <tr>
54 <th {$headerStyle}>
55 {ts}Event Information and Location{/ts}
56 </th>
57 </tr>
58 <tr>
59 <td colspan="2" {$valueStyle}>
60 {$event.event_title}<br />
61 {$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}
62 </td>
63 </tr>
64
65 {if $event.participant_role neq 'Attendee' and $defaultRole}
66 <tr>
67 <td {$labelStyle}>
68 {ts}Participant Role{/ts}
69 </td>
70 <td {$valueStyle}>
71 {$event.participant_role}
72 </td>
73 </tr>
74 {/if}
75
76 {if $isShowLocation}
77 <tr>
78 <td colspan="2" {$valueStyle}>
79 {if $location.address.1.name}
80 {$location.address.1.name}<br />
81 {/if}
82 {if $location.address.1.street_address}
83 {$location.address.1.street_address}<br />
84 {/if}
85 {if $location.address.1.supplemental_address_1}
86 {$location.address.1.supplemental_address_1}<br />
87 {/if}
88 {if $location.address.1.supplemental_address_2}
89 {$location.address.1.supplemental_address_2}<br />
90 {/if}
91 {if $location.address.1.city}
92 {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
93 {/if}
94 </td>
95 </tr>
96 {/if}
97
98 {if $location.phone.1.phone || $location.email.1.email}
99 <tr>
100 <td colspan="2" {$labelStyle}>
101 {ts}Event Contacts:{/ts}
102 </td>
103 </tr>
104 {foreach from=$location.phone item=phone}
105 {if $phone.phone}
106 <tr>
107 <td {$labelStyle}>
108 {if $phone.phone_type}
109 {$phone.phone_type_display}
110 {else}
111 {ts}Phone{/ts}
112 {/if}
113 </td>
114 <td {$valueStyle}>
115 {$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
116 </td>
117 </tr>
118 {/if}
119 {/foreach}
120 {foreach from=$location.email item=eventEmail}
121 {if $eventEmail.email}
122 <tr>
123 <td {$labelStyle}>
124 {ts}Email{/ts}
125 </td>
126 <td {$valueStyle}>
127 {$eventEmail.email}
128 </td>
129 </tr>
130 {/if}
131 {/foreach}
132 {/if}
133
134 {if $event.is_public}
135 <tr>
136 <td colspan="2" {$valueStyle}>
137 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
138 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
139 </td>
140 </tr>
141 {/if}
142
143 {if $email}
144 <tr>
145 <th {$headerStyle}>
146 {ts}Registered Email{/ts}
147 </th>
148 </tr>
149 <tr>
150 <td colspan="2" {$valueStyle}>
151 {$email}
152 </td>
153 </tr>
154 {/if}
155
156
157 {if $event.is_monetary}
158
159 <tr>
160 <th {$headerStyle}>
161 {$event.fee_label}
162 </th>
163 </tr>
164
165 {if $lineItem}
166 {foreach from=$lineItem item=value key=priceset}
167 {if $value neq 'skip'}
168 {if $isPrimary}
169 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
170 <tr>
171 <td colspan="2" {$labelStyle}>
172 {ts 1=$priceset+1}Participant %1{/ts}
173 </td>
174 </tr>
175 {/if}
176 {/if}
177 <tr>
178 <td colspan="2" {$valueStyle}>
179 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
180 <tr>
181 <th>{ts}Item{/ts}</th>
182 <th>{ts}Qty{/ts}</th>
183 <th>{ts}Each{/ts}</th>
184 {if $dataArray}
185 <th>{ts}SubTotal{/ts}</th>
186 <th>{ts}Tax Rate{/ts}</th>
187 <th>{ts}Tax Amount{/ts}</th>
188 {/if}
189 <th>{ts}Total{/ts}</th>
190 {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if}
191 </tr>
192 {foreach from=$value item=line}
193 <tr>
194 <td>
195 {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}
196 </td>
197 <td>
198 {$line.qty}
199 </td>
200 <td>
201 {$line.unit_price|crmMoney}
202 </td>
203 {if $dataArray}
204 <td>
205 {$line.unit_price*$line.qty|crmMoney}
206 </td>
207 {if $line.tax_rate != "" || $line.tax_amount != ""}
208 <td>
209 {$line.tax_rate|string_format:"%.2f"}%
210 </td>
211 <td>
212 {$line.tax_amount|crmMoney}
213 </td>
214 {else}
215 <td></td>
216 <td></td>
217 {/if}
218 {/if}
219 <td>
220 {$line.line_total+$line.tax_amount|crmMoney}
221 </td>
222 {if $pricesetFieldsCount }
223 <td>
224 {$line.participant_count}
225 </td>
226 {/if}
227 </tr>
228 {/foreach}
229 </table>
230 </td>
231 </tr>
232 {/if}
233 {/foreach}
234 {if $dataArray}
235 <tr>
236 <td {$labelStyle}>
237 {ts} Amount Before Tax : {/ts}
238 </td>
239 <td {$valueStyle}>
240 {$totalAmount-$totalTaxAmount|crmMoney}
241 </td>
242 </tr>
243 {foreach from=$dataArray item=value key=priceset}
244 <tr>
245 {if $priceset || $priceset == 0}
246 <td>&nbsp;{$taxTerm} {$priceset|string_format:"%.2f"}%</td>
247 <td>&nbsp;{$value|crmMoney:$currency}</td>
248 {else}
249 <td>&nbsp;{ts}No{/ts} {$taxTerm}</td>
250 <td>&nbsp;{$value|crmMoney:$currency}</td>
251 {/if}
252 </tr>
253 {/foreach}
254 {/if}
255 {/if}
256
257 {if $amount && !$lineItem}
258 {foreach from=$amount item=amnt key=level}
259 <tr>
260 <td colspan="2" {$valueStyle}>
261 {$amnt.amount|crmMoney} {$amnt.label}
262 </td>
263 </tr>
264 {/foreach}
265 {/if}
266 {if $totalTaxAmount}
267 <tr>
268 <td {$labelStyle}>
269 {ts}Total Tax Amount{/ts}
270 </td>
271 <td {$valueStyle}>
272 {$totalTaxAmount|crmMoney:$currency}
273 </td>
274 </tr>
275 {/if}
276 {if $isPrimary}
277 <tr>
278 <td {$labelStyle}>
279 {if $balanceAmount}
280 {ts}Total Paid{/ts}
281 {else}
282 {ts}Total Amount{/ts}
283 {/if}
284 </td>
285 <td {$valueStyle}>
286 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
287 </td>
288 </tr>
289 {if $balanceAmount}
290 <tr>
291 <td {$labelStyle}>
292 {ts}Balance{/ts}
293 </td>
294 <td {$valueStyle}>
295 {$balanceAmount|crmMoney}
296 </td>
297 </tr>
298 {/if}
299 {if $pricesetFieldsCount }
300 <tr>
301 <td {$labelStyle}>
302 {ts}Total Participants{/ts}</td>
303 <td {$valueStyle}>
304 {assign var="count" value= 0}
305 {foreach from=$lineItem item=pcount}
306 {assign var="lineItemCount" value=0}
307 {if $pcount neq 'skip'}
308 {foreach from=$pcount item=p_count}
309 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
310 {/foreach}
311 {if $lineItemCount < 1 }
312 assign var="lineItemCount" value=1}
313 {/if}
314 {assign var="count" value=$count+$lineItemCount}
315 {/if}
316 {/foreach}
317 {$count}
318 </td>
319 </tr>
320 {/if}
321 {if $is_pay_later}
322 <tr>
323 <td colspan="2" {$labelStyle}>
324 {$pay_later_receipt}
325 </td>
326 </tr>
327 {/if}
328
329 {if $register_date}
330 <tr>
331 <td {$labelStyle}>
332 {ts}Registration Date{/ts}
333 </td>
334 <td {$valueStyle}>
335 {$register_date|crmDate}
336 </td>
337 </tr>
338 {/if}
339
340 {if $receive_date}
341 <tr>
342 <td {$labelStyle}>
343 {ts}Transaction Date{/ts}
344 </td>
345 <td {$valueStyle}>
346 {$receive_date|crmDate}
347 </td>
348 </tr>
349 {/if}
350
351 {if $contributionTypeName}
352 <tr>
353 <td {$labelStyle}>
354 {ts}Financial Type{/ts}
355 </td>
356 <td {$valueStyle}>
357 {$contributionTypeName}
358 </td>
359 </tr>
360 {/if}
361
362 {if $trxn_id}
363 <tr>
364 <td {$labelStyle}>
365 {ts}Transaction #{/ts}
366 </td>
367 <td {$valueStyle}>
368 {$trxn_id}
369 </td>
370 </tr>
371 {/if}
372
373 {if $paidBy}
374 <tr>
375 <td {$labelStyle}>
376 {ts}Paid By{/ts}
377 </td>
378 <td {$valueStyle}>
379 {$paidBy}
380 </td>
381 </tr>
382 {/if}
383
384 {if $checkNumber}
385 <tr>
386 <td {$labelStyle}>
387 {ts}Check Number{/ts}
388 </td>
389 <td {$valueStyle}>
390 {$checkNumber}
391 </td>
392 </tr>
393 {/if}
394
395 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
396 <tr>
397 <th {$headerStyle}>
398 {ts}Billing Name and Address{/ts}
399 </th>
400 </tr>
401 <tr>
402 <td colspan="2" {$valueStyle}>
403 {$billingName}<br />
404 {$address|nl2br}
405 </td>
406 </tr>
407 {/if}
408
409 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
410 <tr>
411 <th {$headerStyle}>
412 {ts}Credit Card Information{/ts}
413 </th>
414 </tr>
415 <tr>
416 <td colspan="2" {$valueStyle}>
417 {$credit_card_type}<br />
418 {$credit_card_number}<br />
419 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
420 </td>
421 </tr>
422 {/if}
423
424 {/if}
425
426 {/if} {* End of conditional section for Paid events *}
427
428 {if $customPre}
429 <tr>
430 <th {$headerStyle}>
431 {$customPre_grouptitle}
432 </th>
433 </tr>
434 {foreach from=$customPre item=value key=customName}
435 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
436 <tr>
437 <td {$labelStyle}>
438 {$customName}
439 </td>
440 <td {$valueStyle}>
441 {$value}
442 </td>
443 </tr>
444 {/if}
445 {/foreach}
446 {/if}
447
448 {if $customPost}
449 <tr>
450 <th {$headerStyle}>
451 {$customPost_grouptitle}
452 </th>
453 </tr>
454 {foreach from=$customPost item=value key=customName}
455 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
456 <tr>
457 <td {$labelStyle}>
458 {$customName}
459 </td>
460 <td {$valueStyle}>
461 {$value}
462 </td>
463 </tr>
464 {/if}
465 {/foreach}
466 {/if}
467
468 {if $customProfile}
469 {foreach from=$customProfile item=value key=customName}
470 <tr>
471 <th {$headerStyle}>
472 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
473 </th>
474 </tr>
475 {foreach from=$value item=val key=field}
476 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
477 <tr>
478 <td colspan="2" {$labelStyle}>
479 {if $field eq 'additionalCustomPre'}
480 {$additionalCustomPre_grouptitle}
481 {else}
482 {$additionalCustomPost_grouptitle}
483 {/if}
484 </td>
485 </tr>
486 {foreach from=$val item=v key=f}
487 <tr>
488 <td {$labelStyle}>
489 {$f}
490 </td>
491 <td {$valueStyle}>
492 {$v}
493 </td>
494 </tr>
495 {/foreach}
496 {/if}
497 {/foreach}
498 {/foreach}
499 {/if}
500
501 {if $customGroup}
502 {foreach from=$customGroup item=value key=customName}
503 <tr>
504 <th {$headerStyle}>
505 {$customName}
506 </th>
507 </tr>
508 {foreach from=$value item=v key=n}
509 <tr>
510 <td {$labelStyle}>
511 {$n}
512 </td>
513 <td {$valueStyle}>
514 {$v}
515 </td>
516 </tr>
517 {/foreach}
518 {/foreach}
519 {/if}
520
521 </table>
522 </td>
523 </tr>
524
525 </table>
526</center>
527
528</body>
529</html>