Commit | Line | Data |
---|---|---|
7cdb890a PJ |
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} | |
820fbcfb PJ |
12 | {capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture} |
13 | {capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture} | |
7cdb890a PJ |
14 | |
15 | <p>Dear {$contactDisplayName}</p> | |
16 | <center> | |
17 | <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;"> | |
18 | ||
19 | <!-- BEGIN HEADER --> | |
20 | <!-- You can add table row(s) here with logo or other header elements --> | |
21 | <!-- END HEADER --> | |
22 | ||
23 | <!-- BEGIN CONTENT --> | |
24 | ||
25 | <tr> | |
26 | <td> | |
27 | {if $paymentConfig.confirm_email_text} | |
28 | <p>{$paymentConfig.confirm_email_text|htmlize}</p> | |
29 | {elseif $isRefund} | |
30 | <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p> | |
31 | {else} | |
32 | <p>{ts}A payment has been received.{/ts}</p> | |
33 | {/if} | |
34 | <p>{ts}Please print this confirmation for your records.{/ts}</p> | |
35 | </td> | |
36 | </tr> | |
820fbcfb PJ |
37 | <tr> |
38 | <td> | |
39 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> | |
7cdb890a PJ |
40 | {if $isRefund} |
41 | <tr> | |
42 | <th {$headerStyle}>{ts}Refund Details{/ts}</th> | |
43 | </tr> | |
44 | <tr> | |
45 | <td {$labelStyle}> | |
46 | {ts}Total Fees{/ts} | |
47 | </td> | |
48 | <td {$valueStyle}> | |
49 | {$totalAmount|crmMoney} | |
50 | </td> | |
1010c4e1 PJ |
51 | </tr> |
52 | <tr> | |
7cdb890a PJ |
53 | <td {$labelStyle}> |
54 | {ts}You Paid{/ts} | |
55 | </td> | |
56 | <td {$valueStyle}> | |
57 | {$totalPaid|crmMoney} | |
58 | </td> | |
1010c4e1 PJ |
59 | </tr> |
60 | <tr> | |
7cdb890a PJ |
61 | <td {$labelStyle}> |
62 | {ts}Refund Amount{/ts} | |
63 | </td> | |
64 | <td {$valueStyle}> | |
65 | {$refundAmount|crmMoney} | |
66 | <td> | |
67 | </tr> | |
68 | {else} | |
69 | <tr> | |
70 | <th {$headerStyle}>{ts}Payment Details{/ts}</th> | |
71 | </tr> | |
72 | <tr> | |
73 | <td {$labelStyle}> | |
74 | {ts}{if $component eq 'event'}Total Fees{/if}{/ts} | |
75 | </td> | |
76 | <td {$valueStyle}> | |
77 | {$totalAmount|crmMoney} | |
78 | </td> | |
820fbcfb PJ |
79 | </tr> |
80 | <tr> | |
7cdb890a PJ |
81 | <td {$labelStyle}> |
82 | {ts}This Payment Amount{/ts} | |
83 | </td> | |
84 | <td {$valueStyle}> | |
85 | {$paymentAmount|crmMoney} | |
86 | </td> | |
820fbcfb PJ |
87 | </tr> |
88 | <tr> | |
7cdb890a PJ |
89 | <td {$labelStyle}> |
90 | {ts}Balance Owed{/ts} | |
91 | </td> | |
820fbcfb | 92 | <td {$valueStyle}> |
7cdb890a PJ |
93 | {$amountOwed|crmMoney} |
94 | </td> {* This will be zero after final payment. *} | |
820fbcfb PJ |
95 | </tr> |
96 | <tr> <td {$emptyBlockStyle}></td> | |
97 | <td {$emptyBlockValueStyle}></td></tr> | |
7cdb890a | 98 | {if $paymentsComplete} |
820fbcfb | 99 | <tr> |
7cdb890a PJ |
100 | <td colspan='2' {$valueStyle}> |
101 | {ts}Thank-you. This completes your payment for {if $component eq 'event'}{$event.event_title}{/if}.{/ts} | |
102 | </td> | |
820fbcfb | 103 | </tr> |
7cdb890a | 104 | {/if} |
7cdb890a PJ |
105 | {/if} |
106 | {if $receive_date} | |
107 | <tr> | |
108 | <td {$labelStyle}> | |
109 | {ts}Transaction Date{/ts} | |
110 | </td> | |
111 | <td {$valueStyle}> | |
112 | {$receive_date|crmDate} | |
113 | </td> | |
114 | </tr> | |
115 | {/if} | |
116 | {if $trxn_id} | |
117 | <tr> | |
118 | <td {$labelStyle}> | |
119 | {ts}Transaction #{/ts} | |
120 | </td> | |
121 | <td {$valueStyle}> | |
122 | {$trxn_id} | |
123 | </td> | |
124 | </tr> | |
125 | {/if} | |
126 | {if $paidBy} | |
127 | <tr> | |
128 | <td {$labelStyle}> | |
129 | {ts}Paid By{/ts} | |
130 | </td> | |
131 | <td {$valueStyle}> | |
132 | {$paidBy} | |
133 | </td> | |
134 | </tr> | |
135 | {/if} | |
136 | {if $checkNumber} | |
137 | <tr> | |
138 | <td {$labelStyle}> | |
139 | {ts}Check Number{/ts} | |
140 | </td> | |
141 | <td {$valueStyle}> | |
142 | {$checkNumber} | |
143 | </td> | |
144 | </tr> | |
145 | {/if} | |
820fbcfb PJ |
146 | </table> |
147 | </td> | |
148 | </tr> | |
7cdb890a PJ |
149 | <tr> |
150 | <td> | |
151 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> | |
820fbcfb | 152 | {if $contributeMode eq 'direct' and !$isAmountzero} |
7cdb890a PJ |
153 | <tr> |
154 | <th {$headerStyle}> | |
155 | {ts}Billing Name and Address{/ts} | |
156 | </th> | |
157 | </tr> | |
158 | <tr> | |
159 | <td colspan="2" {$valueStyle}> | |
160 | {$billingName}<br /> | |
161 | {$address|nl2br} | |
162 | </td> | |
163 | </tr> | |
164 | {/if} | |
165 | {if $contributeMode eq'direct' and !$isAmountzero} | |
166 | <tr> | |
167 | <th {$headerStyle}> | |
168 | {ts}Credit Card Information{/ts} | |
169 | </th> | |
170 | </tr> | |
171 | <tr> | |
172 | <td colspan="2" {$valueStyle}> | |
173 | {$credit_card_type}<br /> | |
174 | {$credit_card_number}<br /> | |
ad96d702 | 175 | {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:''|crmDate} |
7cdb890a PJ |
176 | </td> |
177 | </tr> | |
178 | {/if} | |
179 | {if $component eq 'event'} | |
180 | <tr> | |
181 | <th {$headerStyle}> | |
182 | {ts}Event Information and Location{/ts} | |
183 | </th> | |
184 | </tr> | |
185 | <tr> | |
186 | <td colspan="2" {$valueStyle}> | |
187 | {$event.event_title}<br /> | |
188 | {$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} | |
189 | </td> | |
190 | </tr> | |
191 | ||
192 | {if $event.participant_role neq 'Attendee' and $defaultRole} | |
193 | <tr> | |
194 | <td {$labelStyle}> | |
195 | {ts}Participant Role{/ts} | |
196 | </td> | |
197 | <td {$valueStyle}> | |
198 | {$event.participant_role} | |
199 | </td> | |
200 | </tr> | |
201 | {/if} | |
202 | ||
203 | {if $isShowLocation} | |
204 | <tr> | |
205 | <td colspan="2" {$valueStyle}> | |
206 | {if $location.address.1.name} | |
207 | {$location.address.1.name}<br /> | |
208 | {/if} | |
209 | {if $location.address.1.street_address} | |
210 | {$location.address.1.street_address}<br /> | |
211 | {/if} | |
212 | {if $location.address.1.supplemental_address_1} | |
213 | {$location.address.1.supplemental_address_1}<br /> | |
214 | {/if} | |
215 | {if $location.address.1.supplemental_address_2} | |
216 | {$location.address.1.supplemental_address_2}<br /> | |
217 | {/if} | |
218 | {if $location.address.1.city} | |
219 | {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br /> | |
220 | {/if} | |
221 | </td> | |
222 | </tr> | |
223 | {/if} | |
224 | ||
225 | {if $location.phone.1.phone || $location.email.1.email} | |
226 | <tr> | |
227 | <td colspan="2" {$labelStyle}> | |
228 | {ts}Event Contacts:{/ts} | |
229 | </td> | |
230 | </tr> | |
231 | {foreach from=$location.phone item=phone} | |
232 | {if $phone.phone} | |
233 | <tr> | |
234 | <td {$labelStyle}> | |
235 | {if $phone.phone_type} | |
236 | {$phone.phone_type_display} | |
237 | {else} | |
238 | {ts}Phone{/ts} | |
239 | {/if} | |
240 | </td> | |
241 | <td {$valueStyle}> | |
242 | {$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if} | |
243 | </td> | |
244 | </tr> | |
245 | {/if} | |
246 | {/foreach} | |
247 | {foreach from=$location.email item=eventEmail} | |
248 | {if $eventEmail.email} | |
249 | <tr> | |
250 | <td {$labelStyle}> | |
251 | {ts}Email{/ts} | |
252 | </td> | |
253 | <td {$valueStyle}> | |
254 | {$eventEmail.email} | |
255 | </td> | |
256 | </tr> | |
257 | {/if} | |
258 | {/foreach} | |
259 | {/if} {*phone block close*} | |
260 | {/if} | |
261 | </table> | |
262 | </td> | |
263 | </tr> | |
264 | ||
265 | </table> | |
266 | </center> | |
267 | ||
268 | </body> | |
269 | </html> |