Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-08-05-11-07-08
[civicrm-core.git] / CRM / Upgrade / 3.2.alpha1.msg_template / 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
33 a 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
39 an email with a link to a web page where you can complete the
40 registration 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}
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 <tr>
134 <td colspan="2" {$valueStyle}>
135 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
136 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
137 </td>
138 </tr>
139 {if $email}
140 <tr>
141 <th {$headerStyle}>
142 {ts}Registered Email{/ts}
143 </th>
144 </tr>
145 <tr>
146 <td colspan="2" {$valueStyle}>
147 {$email}
148 </td>
149 </tr>
150 {/if}
151
152
153 {if $event.is_monetary}
154
155 <tr>
156 <th {$headerStyle}>
157 {$event.fee_label}
158 </th>
159 </tr>
160
161 {if $lineItem}
162 {foreach from=$lineItem item=value key=priceset}
163 {if $value neq 'skip'}
164 {if $isPrimary}
165 {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
166 <tr>
167 <td colspan="2" {$labelStyle}>
168 {ts 1=$priceset+1}Participant %1{/ts}
169 </td>
170 </tr>
171 {/if}
172 {/if}
173 <tr>
174 <td colspan="2" {$valueStyle}>
175 <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
176 <tr>
177 <th>{ts}Item{/ts}</th>
178 <th>{ts}Qty{/ts}</th>
179 <th>{ts}Each{/ts}</th>
180 <th>{ts}Total{/ts}</th>
181 {if $participantCount }<th>{ts}Total Participants{/ts}</th>{/if}
182 </tr>
183 {foreach from=$value item=line}
184 <tr>
185 <td>
186 {$line.description|truncate:30:"..."}
187 </td>
188 <td>
189 {$line.qty}
190 </td>
191 <td>
192 {$line.unit_price|crmMoney}
193 </td>
194 <td>
195 {$line.line_total|crmMoney}
196 </td>
197 {if $participantCount }
198 <td>
199 {$line.participant_count}
200 </td>
201 {/if}
202 </tr>
203 {/foreach}
204 </table>
205 </td>
206 </tr>
207 {/if}
208 {/foreach}
209 {/if}
210
211 {if $amount && !$lineItem}
212 {foreach from=$amount item=amnt key=level}
213 <tr>
214 <td colspan="2" {$valueStyle}>
215 {$amnt.amount|crmMoney} {$amnt.label}
216 </td>
217 </tr>
218 {/foreach}
219 {/if}
220
221 {if $isPrimary}
222 <tr>
223 <td {$labelStyle}>
224 {ts}Total Amount{/ts}
225 </td>
226 <td {$valueStyle}>
227 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
228 </td>
229 </tr>
230 {if $participantCount }
231 <tr>
232 <td {$labelStyle}>
233 {ts}Total Participants{/ts}</td>
234 <td {$valueStyle}>
235 {assign var="count" value= 0}
236 {foreach from=$lineItem item=pcount}
237 {foreach from=$pcount item=p_count}
238 {assign var="count" value=$count+$p_count.participant_count}
239 {/foreach}
240 {/foreach}
241 {$count}
242 </td>
243 </tr>
244 {/if}
245 {if $is_pay_later}
246 <tr>
247 <td colspan="2" {$labelStyle}>
248 {$pay_later_receipt}
249 </td>
250 </tr>
251 {/if}
252
253 {if $register_date}
254 <tr>
255 <td {$labelStyle}>
256 {ts}Registration Date{/ts}
257 </td>
258 <td {$valueStyle}>
259 {$register_date|crmDate}
260 </td>
261 </tr>
262 {/if}
263
264 {if $receive_date}
265 <tr>
266 <td {$labelStyle}>
267 {ts}Transaction Date{/ts}
268 </td>
269 <td {$valueStyle}>
270 {$receive_date|crmDate}
271 </td>
272 </tr>
273 {/if}
274
275 {if $contributionTypeName}
276 <tr>
277 <td {$labelStyle}>
278 {ts}Contribution Type{/ts}
279 </td>
280 <td {$valueStyle}>
281 {$contributionTypeName}
282 </td>
283 </tr>
284 {/if}
285
286 {if $trxn_id}
287 <tr>
288 <td {$labelStyle}>
289 {ts}Transaction #{/ts}
290 </td>
291 <td {$valueStyle}>
292 {$trxn_id}
293 </td>
294 </tr>
295 {/if}
296
297 {if $paidBy}
298 <tr>
299 <td {$labelStyle}>
300 {ts}Paid By{/ts}
301 </td>
302 <td {$valueStyle}>
303 {$paidBy}
304 </td>
305 </tr>
306 {/if}
307
308 {if $checkNumber}
309 <tr>
310 <td {$labelStyle}>
311 {ts}Check Number{/ts}
312 </td>
313 <td {$valueStyle}>
314 {$checkNumber}
315 </td>
316 </tr>
317 {/if}
318
319 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
320 <tr>
321 <th {$headerStyle}>
322 {ts}Billing Name and Address{/ts}
323 </th>
324 </tr>
325 <tr>
326 <td colspan="2" {$valueStyle}>
327 {$billingName}<br />
328 {$address|nl2br}
329 </td>
330 </tr>
331 {/if}
332
333 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
334 <tr>
335 <th {$headerStyle}>
336 {ts}Credit Card Information{/ts}
337 </th>
338 </tr>
339 <tr>
340 <td colspan="2" {$valueStyle}>
341 {$credit_card_type}<br />
342 {$credit_card_number}<br />
343 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
344 </td>
345 </tr>
346 {/if}
347
348 {/if}
349
350 {/if} {* End of conditional section for Paid events *}
351
352 {if $customPre}
353 <tr>
354 <th {$headerStyle}>
355 {$customPre_grouptitle}
356 </th>
357 </tr>
358 {foreach from=$customPre item=value key=customName}
359 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
360 <tr>
361 <td {$labelStyle}>
362 {$customName}
363 </td>
364 <td {$valueStyle}>
365 {$value}
366 </td>
367 </tr>
368 {/if}
369 {/foreach}
370 {/if}
371
372 {if $customPost}
373 <tr>
374 <th {$headerStyle}>
375 {$customPost_grouptitle}
376 </th>
377 </tr>
378 {foreach from=$customPost item=value key=customName}
379 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
380 <tr>
381 <td {$labelStyle}>
382 {$customName}
383 </td>
384 <td {$valueStyle}>
385 {$value}
386 </td>
387 </tr>
388 {/if}
389 {/foreach}
390 {/if}
391
392 {if $customProfile}
393 {foreach from=$customProfile item=value key=customName}
394 <tr>
395 <th {$headerStyle}>
396 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
397 </th>
398 <tr>
399 {foreach from=$value item=val key=field}
400 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
401 <tr>
402 <td colspan="2" {$labelStyle}>
403 {if $field eq 'additionalCustomPre'}
404 {$additionalCustomPre_grouptitle}
405 {else}
406 {$additionalCustomPost_grouptitle}
407 {/if}
408 </td>
409 </tr>
410 {foreach from=$val item=v key=f}
411 <tr>
412 <td {$labelStyle}>
413 {$f}
414 </td>
415 <td {$valueStyle}>
416 {$v}
417 </td>
418 </tr>
419 {/foreach}
420 {/if}
421 {/foreach}
422 {/foreach}
423 {/if}
424
425 {if $customGroup}
426 {foreach from=$customGroup item=value key=customName}
427 <tr>
428 <th {$headerStyle}>
429 {$customName}
430 </th>
431 </tr>
432 {foreach from=$value item=v key=n}
433 <tr>
434 <td {$labelStyle}>
435 {$n}
436 </td>
437 <td {$valueStyle}>
438 {$v}
439 </td>
440 </tr>
441 {/foreach}
442 {/foreach}
443 {/if}
444
445 </table>
446 </td>
447 </tr>
448
449 </table>
450 </center>
451
452 </body>
453 </html>