Commit | Line | Data |
---|---|---|
d4bb54f6 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
6a488035 TO |
3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
4 | <head> | |
d4bb54f6 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
6 | <title></title> | |
6a488035 TO |
7 | </head> |
8 | <body> | |
9 | ||
10 | {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} | |
11 | {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} | |
12 | {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} | |
13 | ||
14 | <center> | |
d4bb54f6 | 15 | <table id="crm-event_receipt" |
16 | style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> | |
6a488035 | 17 | |
d4bb54f6 | 18 | <!-- BEGIN HEADER --> |
19 | <!-- You can add table row(s) here with logo or other header elements --> | |
20 | <!-- END HEADER --> | |
6a488035 | 21 | |
d4bb54f6 | 22 | <!-- BEGIN CONTENT --> |
6a488035 | 23 | |
d4bb54f6 | 24 | <tr> |
25 | <td> | |
26 | {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if} | |
27 | {if $formValues.receipt_text_signup} | |
28 | <p>{$formValues.receipt_text_signup|htmlize}</p> | |
29 | {elseif $formValues.receipt_text_renewal} | |
30 | <p>{$formValues.receipt_text_renewal|htmlize}</p> | |
31 | {else} | |
32 | <p>{ts}Thank you for this contribution.{/ts}</p> | |
33 | {/if} | |
6a488035 | 34 | </td> |
d4bb54f6 | 35 | </tr> |
36 | <tr> | |
37 | <td> | |
38 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> | |
39 | {if !$lineItem} | |
6a488035 | 40 | <tr> |
d4bb54f6 | 41 | <th {$headerStyle}> |
42 | {ts}Membership Information{/ts} | |
43 | </th> | |
6a488035 | 44 | </tr> |
d4bb54f6 | 45 | <tr> |
46 | <td {$labelStyle}> | |
47 | {ts}Membership Type{/ts} | |
6a488035 | 48 | </td> |
d4bb54f6 | 49 | <td {$valueStyle}> |
50 | {$membership_name} | |
6a488035 | 51 | </td> |
d4bb54f6 | 52 | </tr> |
53 | {/if} | |
54 | {if ! $cancelled} | |
55 | {if !$lineItem} | |
56 | <tr> | |
57 | <td {$labelStyle}> | |
58 | {ts}Membership Start Date{/ts} | |
7cf82823 | 59 | </td> |
d4bb54f6 | 60 | <td {$valueStyle}> |
61 | {$mem_start_date} | |
7cf82823 | 62 | </td> |
d4bb54f6 | 63 | </tr> |
64 | <tr> | |
65 | <td {$labelStyle}> | |
66 | {ts}Membership End Date{/ts} | |
67 | </td> | |
68 | <td {$valueStyle}> | |
69 | {$mem_end_date} | |
70 | </td> | |
71 | </tr> | |
72 | {/if} | |
73 | {if $formValues.total_amount OR $formValues.total_amount eq 0 } | |
74 | <tr> | |
75 | <th {$headerStyle}> | |
76 | {ts}Membership Fee{/ts} | |
77 | </th> | |
78 | </tr> | |
79 | {if $formValues.contributionType_name} | |
80 | <tr> | |
81 | <td {$labelStyle}> | |
82 | {ts}Financial Type{/ts} | |
83 | </td> | |
84 | <td {$valueStyle}> | |
85 | {$formValues.contributionType_name} | |
86 | </td> | |
87 | </tr> | |
79d001a2 | 88 | {/if} |
d4bb54f6 | 89 | |
90 | {if $lineItem} | |
91 | {foreach from=$lineItem item=value key=priceset} | |
92 | <tr> | |
93 | <td colspan="2" {$valueStyle}> | |
94 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
95 | <tr> | |
96 | <th>{ts}Item{/ts}</th> | |
97 | <th>{ts}Fee{/ts}</th> | |
98 | {if $dataArray} | |
99 | <th>{ts}SubTotal{/ts}</th> | |
100 | <th>{ts}Tax Rate{/ts}</th> | |
101 | <th>{ts}Tax Amount{/ts}</th> | |
102 | <th>{ts}Total{/ts}</th> | |
103 | {/if} | |
104 | <th>{ts}Membership Start Date{/ts}</th> | |
105 | <th>{ts}Membership End Date{/ts}</th> | |
106 | </tr> | |
107 | {foreach from=$value item=line} | |
108 | <tr> | |
109 | <td> | |
110 | {if $line.html_type eq 'Text'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} | |
111 | <div>{$line.description|truncate:30:"..."}</div>{/if} | |
112 | </td> | |
113 | <td> | |
114 | {$line.line_total|crmMoney} | |
115 | </td> | |
116 | {if $dataArray} | |
117 | <td> | |
118 | {$line.unit_price*$line.qty|crmMoney} | |
119 | </td> | |
120 | {if $line.tax_rate != "" || $line.tax_amount != ""} | |
121 | <td> | |
122 | {$line.tax_rate|string_format:"%.2f"}% | |
123 | </td> | |
124 | <td> | |
125 | {$line.tax_amount|crmMoney} | |
126 | </td> | |
127 | {else} | |
128 | <td></td> | |
129 | <td></td> | |
130 | {/if} | |
131 | <td> | |
132 | {$line.line_total+$line.tax_amount|crmMoney} | |
133 | </td> | |
134 | {/if} | |
135 | <td> | |
136 | {$line.start_date} | |
137 | </td> | |
138 | <td> | |
139 | {$line.end_date} | |
140 | </td> | |
141 | </tr> | |
142 | {/foreach} | |
143 | </table> | |
144 | </td> | |
145 | </tr> | |
146 | {/foreach} | |
147 | {if $dataArray} | |
148 | <tr> | |
149 | <td {$labelStyle}> | |
150 | {ts}Amount Before Tax:{/ts} | |
151 | </td> | |
152 | <td {$valueStyle}> | |
153 | {$formValues.total_amount-$totalTaxAmount|crmMoney} | |
154 | </td> | |
155 | </tr> | |
156 | {foreach from=$dataArray item=value key=priceset} | |
157 | <tr> | |
158 | {if $priceset} | |
159 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> | |
160 | <td> {$value|crmMoney:$currency}</td> | |
161 | {elseif $priceset == 0} | |
162 | <td> {ts}No{/ts} {$taxTerm}</td> | |
163 | <td> {$value|crmMoney:$currency}</td> | |
164 | {/if} | |
165 | </tr> | |
166 | {/foreach} | |
167 | {/if} | |
168 | {/if} | |
169 | {if isset($totalTaxAmount)} | |
170 | <tr> | |
171 | <td {$labelStyle}> | |
172 | {ts}Total Tax Amount{/ts} | |
173 | </td> | |
174 | <td {$valueStyle}> | |
175 | {$totalTaxAmount|crmMoney:$currency} | |
176 | </td> | |
177 | </tr> | |
178 | {/if} | |
179 | <tr> | |
180 | <td {$labelStyle}> | |
181 | {ts}Amount{/ts} | |
182 | </td> | |
183 | <td {$valueStyle}> | |
184 | {$formValues.total_amount|crmMoney} | |
185 | </td> | |
186 | </tr> | |
187 | {if $receive_date} | |
188 | <tr> | |
189 | <td {$labelStyle}> | |
190 | {ts}Date Received{/ts} | |
191 | </td> | |
192 | <td {$valueStyle}> | |
193 | {$receive_date|truncate:10:''|crmDate} | |
194 | </td> | |
195 | </tr> | |
196 | {/if} | |
197 | {if $formValues.paidBy} | |
198 | <tr> | |
199 | <td {$labelStyle}> | |
200 | {ts}Paid By{/ts} | |
201 | </td> | |
202 | <td {$valueStyle}> | |
203 | {$formValues.paidBy} | |
204 | </td> | |
205 | </tr> | |
206 | {if $formValues.check_number} | |
207 | <tr> | |
208 | <td {$labelStyle}> | |
209 | {ts}Check Number{/ts} | |
210 | </td> | |
211 | <td {$valueStyle}> | |
212 | {$formValues.check_number} | |
213 | </td> | |
214 | </tr> | |
215 | {/if} | |
216 | {/if} | |
217 | {/if} | |
218 | {/if} | |
219 | </table> | |
220 | </td> | |
221 | </tr> | |
222 | ||
223 | {if $isPrimary} | |
224 | <tr> | |
011aeb62 | 225 | <td> |
d4bb54f6 | 226 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
6a488035 | 227 | |
d4bb54f6 | 228 | {if $billingName} |
229 | <tr> | |
230 | <th {$headerStyle}> | |
231 | {ts}Billing Name and Address{/ts} | |
232 | </th> | |
233 | </tr> | |
234 | <tr> | |
235 | <td {$labelStyle}> | |
236 | {$billingName}<br/> | |
237 | {$address} | |
238 | </td> | |
239 | </tr> | |
240 | {/if} | |
6a488035 | 241 | |
d4bb54f6 | 242 | {if $credit_card_type} |
243 | <tr> | |
244 | <th {$headerStyle}> | |
245 | {ts}Credit Card Information{/ts} | |
246 | </th> | |
247 | </tr> | |
248 | <tr> | |
249 | <td {$valueStyle}> | |
250 | {$credit_card_type}<br/> | |
251 | {$credit_card_number} | |
252 | </td> | |
253 | </tr> | |
254 | <tr> | |
255 | <td {$labelStyle}> | |
256 | {ts}Expires{/ts} | |
257 | </td> | |
258 | <td {$valueStyle}> | |
259 | {$credit_card_exp_date|truncate:7:''|crmDate} | |
260 | </td> | |
261 | </tr> | |
262 | {/if} | |
6a488035 | 263 | |
d4bb54f6 | 264 | </table> |
6a488035 | 265 | </td> |
d4bb54f6 | 266 | </tr> |
267 | {/if} | |
6a488035 | 268 | |
d4bb54f6 | 269 | {if $customValues} |
6a488035 | 270 | <tr> |
d4bb54f6 | 271 | <td> |
272 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> | |
273 | <tr> | |
274 | <th {$headerStyle}> | |
275 | {ts}Membership Options{/ts} | |
276 | </th> | |
277 | </tr> | |
278 | {foreach from=$customValues item=value key=customName} | |
279 | <tr> | |
280 | <td {$labelStyle}> | |
281 | {$customName} | |
282 | </td> | |
283 | <td {$valueStyle}> | |
284 | {$value} | |
285 | </td> | |
286 | </tr> | |
287 | {/foreach} | |
288 | </table> | |
6a488035 | 289 | </td> |
d4bb54f6 | 290 | </tr> |
291 | {/if} | |
6a488035 | 292 | |
d4bb54f6 | 293 | </table> |
6a488035 TO |
294 | </center> |
295 | ||
296 | </body> | |
297 | </html> |