commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / CRM / Upgrade / 4.2.alpha2.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 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}
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 }
195 <td>
196 {$line.participant_count}
197 </td>
198 {/if}
199 </tr>
200 {/foreach}
201 </table>
202 </td>
203 </tr>
204 {/if}
205 {/foreach}
206 {/if}
207
208 {if $amount && !$lineItem}
209 {foreach from=$amount item=amnt key=level}
210 <tr>
211 <td colspan="2" {$valueStyle}>
212 {$amnt.amount|crmMoney} {$amnt.label}
213 </td>
214 </tr>
215 {/foreach}
216 {/if}
217 {if $isPrimary}
218 <tr>
219 <td {$labelStyle}>
220 {ts}Total Amount{/ts}
221 </td>
222 <td {$valueStyle}>
223 {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
224 </td>
225 </tr>
226 {if $pricesetFieldsCount }
227 <tr>
228 <td {$labelStyle}>
229 {ts}Total Participants{/ts}</td>
230 <td {$valueStyle}>
231 {assign var="count" value= 0}
232 {foreach from=$lineItem item=pcount}
233 {assign var="lineItemCount" value=0}
234 {if $pcount neq 'skip'}
235 {foreach from=$pcount item=p_count}
236 {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
237 {/foreach}
238 {if $lineItemCount < 1 }
239 assign var="lineItemCount" value=1}
240 {/if}
241 {assign var="count" value=$count+$lineItemCount}
242 {/if}
243 {/foreach}
244 {$count}
245 </td>
246 </tr>
247 {/if}
248 {if $is_pay_later}
249 <tr>
250 <td colspan="2" {$labelStyle}>
251 {$pay_later_receipt}
252 </td>
253 </tr>
254 {/if}
255
256 {if $register_date}
257 <tr>
258 <td {$labelStyle}>
259 {ts}Registration Date{/ts}
260 </td>
261 <td {$valueStyle}>
262 {$register_date|crmDate}
263 </td>
264 </tr>
265 {/if}
266
267 {if $receive_date}
268 <tr>
269 <td {$labelStyle}>
270 {ts}Transaction Date{/ts}
271 </td>
272 <td {$valueStyle}>
273 {$receive_date|crmDate}
274 </td>
275 </tr>
276 {/if}
277
278 {if $contributionTypeName}
279 <tr>
280 <td {$labelStyle}>
281 {ts}Contribution Type{/ts}
282 </td>
283 <td {$valueStyle}>
284 {$contributionTypeName}
285 </td>
286 </tr>
287 {/if}
288
289 {if $trxn_id}
290 <tr>
291 <td {$labelStyle}>
292 {ts}Transaction #{/ts}
293 </td>
294 <td {$valueStyle}>
295 {$trxn_id}
296 </td>
297 </tr>
298 {/if}
299
300 {if $paidBy}
301 <tr>
302 <td {$labelStyle}>
303 {ts}Paid By{/ts}
304 </td>
305 <td {$valueStyle}>
306 {$paidBy}
307 </td>
308 </tr>
309 {/if}
310
311 {if $checkNumber}
312 <tr>
313 <td {$labelStyle}>
314 {ts}Check Number{/ts}
315 </td>
316 <td {$valueStyle}>
317 {$checkNumber}
318 </td>
319 </tr>
320 {/if}
321
322 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
323 <tr>
324 <th {$headerStyle}>
325 {ts}Billing Name and Address{/ts}
326 </th>
327 </tr>
328 <tr>
329 <td colspan="2" {$valueStyle}>
330 {$billingName}<br />
331 {$address|nl2br}
332 </td>
333 </tr>
334 {/if}
335
336 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
337 <tr>
338 <th {$headerStyle}>
339 {ts}Credit Card Information{/ts}
340 </th>
341 </tr>
342 <tr>
343 <td colspan="2" {$valueStyle}>
344 {$credit_card_type}<br />
345 {$credit_card_number}<br />
346 {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
347 </td>
348 </tr>
349 {/if}
350
351 {/if}
352
353 {/if} {* End of conditional section for Paid events *}
354
355 {if $customPre}
356 <tr>
357 <th {$headerStyle}>
358 {$customPre_grouptitle}
359 </th>
360 </tr>
361 {foreach from=$customPre item=value key=customName}
362 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
363 <tr>
364 <td {$labelStyle}>
365 {$customName}
366 </td>
367 <td {$valueStyle}>
368 {$value}
369 </td>
370 </tr>
371 {/if}
372 {/foreach}
373 {/if}
374
375 {if $customPost}
376 <tr>
377 <th {$headerStyle}>
378 {$customPost_grouptitle}
379 </th>
380 </tr>
381 {foreach from=$customPost item=value key=customName}
382 {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
383 <tr>
384 <td {$labelStyle}>
385 {$customName}
386 </td>
387 <td {$valueStyle}>
388 {$value}
389 </td>
390 </tr>
391 {/if}
392 {/foreach}
393 {/if}
394
395 {if $customProfile}
396 {foreach from=$customProfile item=value key=customName}
397 <tr>
398 <th {$headerStyle}>
399 {ts 1=$customName+1}Participant Information - Participant %1{/ts}
400 </th>
401 </tr>
402 {foreach from=$value item=val key=field}
403 {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
404 <tr>
405 <td colspan="2" {$labelStyle}>
406 {if $field eq 'additionalCustomPre'}
407 {$additionalCustomPre_grouptitle}
408 {else}
409 {$additionalCustomPost_grouptitle}
410 {/if}
411 </td>
412 </tr>
413 {foreach from=$val item=v key=f}
414 <tr>
415 <td {$labelStyle}>
416 {$f}
417 </td>
418 <td {$valueStyle}>
419 {$v}
420 </td>
421 </tr>
422 {/foreach}
423 {/if}
424 {/foreach}
425 {/foreach}
426 {/if}
427
428 {if $customGroup}
429 {foreach from=$customGroup item=value key=customName}
430 <tr>
431 <th {$headerStyle}>
432 {$customName}
433 </th>
434 </tr>
435 {foreach from=$value item=v key=n}
436 <tr>
437 <td {$labelStyle}>
438 {$n}
439 </td>
440 <td {$valueStyle}>
441 {$v}
442 </td>
443 </tr>
444 {/foreach}
445 {/foreach}
446 {/if}
447
448 </table>
449 </td>
450 </tr>
451
452 </table>
453 </center>
454
455 </body>
456 </html>