Commit | Line | Data |
---|---|---|
6a488035 TO |
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 $formValues.receipt_text} | |
26 | <p>{$formValues.receipt_text|htmlize}</p> | |
27 | {else} | |
28 | <p>{ts}Thanks for your support.{/ts}</p> | |
29 | {/if} | |
30 | ||
31 | <p>{ts}Please print this receipt for your records.{/ts}</p> | |
32 | ||
33 | </td> | |
34 | </tr> | |
35 | <tr> | |
36 | <td> | |
37 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> | |
38 | <tr> | |
39 | <th {$headerStyle}> | |
40 | {ts}Contribution Information{/ts} | |
41 | </th> | |
42 | </tr> | |
43 | <tr> | |
44 | <td {$labelStyle}> | |
45 | {ts}Financial Type{/ts} | |
46 | </td> | |
47 | <td {$valueStyle}> | |
48 | {$formValues.contributionType_name} | |
49 | </td> | |
50 | </tr> | |
51 | ||
52 | {if $lineItem and !$is_quick_config} | |
53 | {foreach from=$lineItem item=value key=priceset} | |
54 | <tr> | |
55 | <td colspan="2" {$valueStyle}> | |
56 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} | |
57 | <tr> | |
58 | <th>{ts}Item{/ts}</th> | |
59 | <th>{ts}Qty{/ts}</th> | |
60 | <th>{ts}Each{/ts}</th> | |
61 | <th>{ts}Total{/ts}</th> | |
62 | </tr> | |
63 | {foreach from=$value item=line} | |
64 | <tr> | |
65 | <td> | |
66 | {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} | |
67 | </td> | |
68 | <td> | |
69 | {$line.qty} | |
70 | </td> | |
71 | <td> | |
72 | {$line.unit_price|crmMoney:$currency} | |
73 | </td> | |
74 | <td> | |
75 | {$line.line_total|crmMoney:$currency} | |
76 | </td> | |
77 | </tr> | |
78 | {/foreach} | |
79 | </table> | |
80 | </td> | |
81 | </tr> | |
82 | {/foreach} | |
83 | {/if} | |
84 | ||
85 | <tr> | |
86 | <td {$labelStyle}> | |
87 | {ts}Total Amount{/ts} | |
88 | </td> | |
89 | <td {$valueStyle}> | |
90 | {$formValues.total_amount|crmMoney:$currency} | |
91 | </td> | |
92 | </tr> | |
93 | ||
94 | {if $receive_date} | |
95 | <tr> | |
96 | <td {$labelStyle}> | |
97 | {ts}Received Date{/ts} | |
98 | </td> | |
99 | <td {$valueStyle}> | |
100 | {$receive_date|truncate:10:''|crmDate} | |
101 | </td> | |
102 | </tr> | |
103 | {/if} | |
104 | ||
105 | {if $receipt_date} | |
106 | <tr> | |
107 | <td {$labelStyle}> | |
108 | {ts}Receipt Date{/ts} | |
109 | </td> | |
110 | <td {$valueStyle}> | |
111 | {$receipt_date|truncate:10:''|crmDate} | |
112 | </td> | |
113 | </tr> | |
114 | {/if} | |
115 | ||
116 | {if $formValues.paidBy and !$formValues.hidden_CreditCard} | |
117 | <tr> | |
118 | <td {$labelStyle}> | |
119 | {ts}Paid By{/ts} | |
120 | </td> | |
121 | <td {$valueStyle}> | |
122 | {$formValues.paidBy} | |
123 | </td> | |
124 | </tr> | |
125 | {if $formValues.check_number} | |
126 | <tr> | |
127 | <td {$labelStyle}> | |
128 | {ts}Check Number{/ts} | |
129 | </td> | |
130 | <td {$valueStyle}> | |
131 | {$formValues.check_number} | |
132 | </td> | |
133 | </tr> | |
134 | {/if} | |
135 | {/if} | |
136 | ||
137 | {if $formValues.trxn_id} | |
138 | <tr> | |
139 | <td {$labelStyle}> | |
140 | {ts}Transaction ID{/ts} | |
141 | </td> | |
142 | <td {$valueStyle}> | |
143 | {$formValues.trxn_id} | |
144 | </td> | |
145 | </tr> | |
146 | {/if} | |
147 | ||
148 | {if $ccContribution} | |
149 | <tr> | |
150 | <th {$headerStyle}> | |
151 | {ts}Billing Name and Address{/ts} | |
152 | </th> | |
153 | </tr> | |
154 | <tr> | |
155 | <td colspan="2" {$valueStyle}> | |
156 | {$billingName}<br /> | |
157 | {$address|nl2br} | |
158 | </td> | |
159 | </tr> | |
160 | <tr> | |
161 | <th {$headerStyle}> | |
162 | {ts}Credit Card Information{/ts} | |
163 | </th> | |
164 | </tr> | |
165 | <tr> | |
166 | <td colspan="2" {$valueStyle}> | |
167 | {$credit_card_type}<br /> | |
168 | {$credit_card_number}<br /> | |
169 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
170 | </td> | |
171 | </tr> | |
172 | {/if} | |
173 | ||
174 | {if $customGroup} | |
175 | {foreach from=$customGroup item=value key=customName} | |
176 | <tr> | |
177 | <th {$headerStyle}> | |
178 | {$customName} | |
179 | </th> | |
180 | </tr> | |
181 | {foreach from=$value item=v key=n} | |
182 | <tr> | |
183 | <td {$labelStyle}> | |
184 | {$n} | |
185 | </td> | |
186 | <td {$valueStyle}> | |
187 | {$v} | |
188 | </td> | |
189 | </tr> | |
190 | {/foreach} | |
191 | {/foreach} | |
192 | {/if} | |
193 | ||
194 | {if $formValues.honor_first_name} | |
195 | <tr> | |
196 | <th {$headerStyle}> | |
197 | {$formValues.honor_type} | |
198 | </th> | |
199 | </tr> | |
200 | <tr> | |
201 | <td colspan="2" {$valueStyle}> | |
202 | {$formValues.honor_prefix} {$formValues.honor_first_name} {$formValues.honor_last_name}<br /> | |
203 | {if $formValues.honor_email} | |
204 | {ts}Honoree Email{/ts}: {$formValues.honor_email} | |
205 | {/if} | |
206 | </td> | |
207 | </tr> | |
208 | {/if} | |
209 | ||
210 | {if $formValues.product_name} | |
211 | <tr> | |
212 | <th {$headerStyle}> | |
213 | {ts}Premium Information{/ts} | |
214 | </th> | |
215 | </tr> | |
216 | <tr> | |
217 | <td colspan="2" {$labelStyle}> | |
218 | {$formValues.product_name} | |
219 | </td> | |
220 | </tr> | |
221 | {if $formValues.product_option} | |
222 | <tr> | |
223 | <td {$labelStyle}> | |
224 | {ts}Option{/ts} | |
225 | </td> | |
226 | <td {$valueStyle}> | |
227 | {$formValues.product_option} | |
228 | </td> | |
229 | </tr> | |
230 | {/if} | |
231 | {if $formValues.product_sku} | |
232 | <tr> | |
233 | <td {$labelStyle}> | |
234 | {ts}SKU{/ts} | |
235 | </td> | |
236 | <td {$valueStyle}> | |
237 | {$formValues.product_sku} | |
238 | </td> | |
239 | </tr> | |
240 | {/if} | |
241 | {if $fulfilled_date} | |
242 | <tr> | |
243 | <td {$labelStyle}> | |
244 | {ts}Sent{/ts} | |
245 | </td> | |
246 | <td {$valueStyle}> | |
247 | {$fulfilled_date|truncate:10:''|crmDate} | |
248 | </td> | |
249 | </tr> | |
250 | {/if} | |
251 | {/if} | |
252 | ||
253 | </table> | |
254 | </td> | |
255 | </tr> | |
256 | ||
257 | </table> | |
258 | </center> | |
259 | ||
260 | </body> | |
261 | </html> |