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}Contribution Type{/ts} | |
46 | </td> | |
47 | <td {$valueStyle}> | |
48 | {$formValues.contributionType_name} | |
49 | </td> | |
50 | </tr> | |
51 | ||
52 | {if $lineItem} | |
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 | {$line.description|truncate:30:"..."} | |
67 | </td> | |
68 | <td> | |
69 | {$line.qty} | |
70 | </td> | |
71 | <td> | |
72 | {$line.unit_price|crmMoney} | |
73 | </td> | |
74 | <td> | |
75 | {$line.line_total|crmMoney} | |
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} | |
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 $formValues.paidBy and !$formValues.hidden_CreditCard} | |
106 | <tr> | |
107 | <td {$labelStyle}> | |
108 | {ts}Paid By{/ts} | |
109 | </td> | |
110 | <td {$valueStyle}> | |
111 | {$formValues.paidBy} | |
112 | </td> | |
113 | </tr> | |
114 | {if $formValues.check_number} | |
115 | <tr> | |
116 | <td {$labelStyle}> | |
117 | {ts}Check Number{/ts} | |
118 | </td> | |
119 | <td {$valueStyle}> | |
120 | {$formValues.check_number} | |
121 | </td> | |
122 | </tr> | |
123 | {/if} | |
124 | {/if} | |
125 | ||
126 | {if $formValues.trxn_id} | |
127 | <tr> | |
128 | <td {$labelStyle}> | |
129 | {ts}Transaction ID{/ts} | |
130 | </td> | |
131 | <td {$valueStyle}> | |
132 | {$formValues.trxn_id} | |
133 | </td> | |
134 | </tr> | |
135 | {/if} | |
136 | ||
137 | {if $ccContribution} | |
138 | <tr> | |
139 | <th {$headerStyle}> | |
140 | {ts}Billing Name and Address{/ts} | |
141 | </th> | |
142 | </tr> | |
143 | <tr> | |
144 | <td colspan="2" {$valueStyle}> | |
145 | {$billingName}<br /> | |
146 | {$address|nl2br} | |
147 | </td> | |
148 | </tr> | |
149 | <tr> | |
150 | <th {$headerStyle}> | |
151 | {ts}Credit Card Information{/ts} | |
152 | </th> | |
153 | </tr> | |
154 | <tr> | |
155 | <td colspan="2" {$valueStyle}> | |
156 | {$credit_card_type}<br /> | |
157 | {$credit_card_number}<br /> | |
158 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} | |
159 | </td> | |
160 | </tr> | |
161 | {/if} | |
162 | ||
163 | {if $customGroup} | |
164 | {foreach from=$customGroup item=value key=customName} | |
165 | <tr> | |
166 | <th {$headerStyle}> | |
167 | {$customName} | |
168 | </th> | |
169 | </tr> | |
170 | {foreach from=$value item=v key=n} | |
171 | <tr> | |
172 | <td {$labelStyle}> | |
173 | {$n} | |
174 | </td> | |
175 | <td {$valueStyle}> | |
176 | {$v} | |
177 | </td> | |
178 | </tr> | |
179 | {/foreach} | |
180 | {/foreach} | |
181 | {/if} | |
182 | ||
183 | {if $formValues.honor_first_name} | |
184 | <tr> | |
185 | <th {$headerStyle}> | |
186 | {$formValues.honor_type} | |
187 | </th> | |
188 | </tr> | |
189 | <tr> | |
190 | <td colspan="2" {$valueStyle}> | |
191 | {$formValues.honor_prefix} {$formValues.honor_first_name} {$formValues.honor_last_name}<br /> | |
192 | {if $formValues.honor_email} | |
193 | {ts}Honoree Email{/ts}: {$formValues.honor_email} | |
194 | {/if} | |
195 | </td> | |
196 | </tr> | |
197 | {/if} | |
198 | ||
199 | {if $formValues.product_name} | |
200 | <tr> | |
201 | <th {$headerStyle}> | |
202 | {ts}Premium Information{/ts} | |
203 | </th> | |
204 | </tr> | |
205 | <tr> | |
206 | <td colspan="2" {$labelStyle}> | |
207 | {$formValues.product_name} | |
208 | </td> | |
209 | </tr> | |
210 | {if $formValues.product_option} | |
211 | <tr> | |
212 | <td {$labelStyle}> | |
213 | {ts}Option{/ts} | |
214 | </td> | |
215 | <td {$valueStyle}> | |
216 | {$formValues.product_option} | |
217 | </td> | |
218 | </tr> | |
219 | {/if} | |
220 | {if $formValues.product_sku} | |
221 | <tr> | |
222 | <td {$labelStyle}> | |
223 | {ts}SKU{/ts} | |
224 | </td> | |
225 | <td {$valueStyle}> | |
226 | {$formValues.product_sku} | |
227 | </td> | |
228 | </tr> | |
229 | {/if} | |
230 | {if $fulfilled_date} | |
231 | <tr> | |
232 | <td {$labelStyle}> | |
233 | {ts}Sent{/ts} | |
234 | </td> | |
235 | <td {$valueStyle}> | |
236 | {$fulfilled_date|truncate:10:''|crmDate} | |
237 | </td> | |
238 | </tr> | |
239 | {/if} | |
240 | {/if} | |
241 | ||
242 | </table> | |
243 | </td> | |
244 | </tr> | |
245 | ||
246 | </table> | |
247 | </center> | |
248 | ||
249 | </body> | |
250 | </html> |