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