cd7be66db31ca9df2bc8eaa5345a60729da39137
[civicrm-core.git] / xml / templates / message_templates / membership_offline_receipt_html.tpl
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 {if $formValues.receipt_text_signup}
25 <p>{$formValues.receipt_text_signup|htmlize}</p>
26 {elseif $formValues.receipt_text_renewal}
27 <p>{$formValues.receipt_text_renewal|htmlize}</p>
28 {else}
29 <p>{ts}Thanks for your support.{/ts}</p>
30 {/if}
31 {if ! $cancelled}
32 <p>{ts}Please print this receipt for your records.{/ts}</p>
33 {/if}
34 </td>
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}
40 <tr>
41 <th {$headerStyle}>
42 {ts}Membership Information{/ts}
43 </th>
44 </tr>
45 <tr>
46 <td {$labelStyle}>
47 {ts}Membership Type{/ts}
48 </td>
49 <td {$valueStyle}>
50 {$membership_name}
51 </td>
52 </tr>
53 {/if}
54 {if ! $cancelled}
55 {if !$lineItem}
56 <tr>
57 <td {$labelStyle}>
58 {ts}Membership Start Date{/ts}
59 </td>
60 <td {$valueStyle}>
61 {$mem_start_date}
62 </td>
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}
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>
88 {/if}
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}<div>{$line.description|truncate:30:"..."}</div>{/if}
111 </td>
112 <td>
113 {$line.line_total|crmMoney}
114 </td>
115 {if $dataArray}
116 <td>
117 {$line.unit_price*$line.qty|crmMoney}
118 </td>
119 <td>
120 {$line.tax_rate|crmMoney}
121 </td>
122 <td>
123 {$line.tax_amount|crmMoney}
124 </td>
125 <td>
126 {$line.line_total|crmMoney}
127 </td>
128 {/if}
129 <td>
130 {$line.start_date}
131 </td>
132 <td>
133 {$line.end_date}
134 </td>
135 </tr>
136 {/foreach}
137 </table>
138 </td>
139 </tr>
140 {/foreach}
141 {if $dataArray}
142 <tr>
143 <td {$labelStyle}>
144 {ts}Amount Before Tax : {/ts}
145 </td>
146 <td {$valueStyle}>
147 {$formValues.total_amount-$totalTaxAmount|crmMoney}
148 </td>
149 </tr>
150 {foreach from=$dataArray item=value key=priceset}
151 <tr>
152 {if $priceset}
153 <td>&nbsp;VAT {$priceset|string_format:"%.2f"}%</td>
154 <td>&nbsp;{$value|crmMoney:$currency}</td>
155 {elseif $priceset == 0}
156 <td>&nbsp;VAT</td>
157 <td>&nbsp;{$value|crmMoney:$currency}</td>
158 {/if}
159 </tr>
160 {/foreach}
161 {/if}
162 {/if}
163 {if $totalTaxAmount}
164 <tr>
165 <td {$labelStyle}>
166 {ts}Total Tax Amount{/ts}
167 </td>
168 <td {$valueStyle}>
169 {$totalTaxAmount|crmMoney:$currency}
170 </td>
171 </tr>
172 {/if}
173 <tr>
174 <td {$labelStyle}>
175 {ts}Amount{/ts}
176 </td>
177 <td {$valueStyle}>
178 {$formValues.total_amount|crmMoney}
179 </td>
180 </tr>
181 {if $receive_date}
182 <tr>
183 <td {$labelStyle}>
184 {ts}Received Date{/ts}
185 </td>
186 <td {$valueStyle}>
187 {$receive_date|truncate:10:''|crmDate}
188 </td>
189 </tr>
190 {/if}
191 {if $formValues.paidBy}
192 <tr>
193 <td {$labelStyle}>
194 {ts}Paid By{/ts}
195 </td>
196 <td {$valueStyle}>
197 {$formValues.paidBy}
198 </td>
199 </tr>
200 {if $formValues.check_number}
201 <tr>
202 <td {$labelStyle}>
203 {ts}Check Number{/ts}
204 </td>
205 <td {$valueStyle}>
206 {$formValues.check_number}
207 </td>
208 </tr>
209 {/if}
210 {/if}
211 {/if}
212 {/if}
213 </table>
214 </td>
215 </tr>
216
217 {if $isPrimary}
218 <tr>
219 <td>
220 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
221
222 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later }
223 <tr>
224 <th {$headerStyle}>
225 {ts}Billing Name and Address{/ts}
226 </th>
227 </tr>
228 <tr>
229 <td {$labelStyle}>
230 {$billingName}<br />
231 {$address}
232 </td>
233 </tr>
234 {/if}
235
236 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later}
237 <tr>
238 <th {$headerStyle}>
239 {ts}Credit Card Information{/ts}
240 </th>
241 </tr>
242 <tr>
243 <td {$valueStyle}>
244 {$credit_card_type}<br />
245 {$credit_card_number}
246 </td>
247 </tr>
248 <tr>
249 <td {$labelStyle}>
250 {ts}Expires{/ts}
251 </td>
252 <td {$valueStyle}>
253 {$credit_card_exp_date|truncate:7:''|crmDate}
254 </td>
255 </tr>
256 {/if}
257
258 </table>
259 </td>
260 </tr>
261 {/if}
262
263 {if $customValues}
264 <tr>
265 <td>
266 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
267 <tr>
268 <th {$headerStyle}>
269 {ts}Membership Options{/ts}
270 </th>
271 </tr>
272 {foreach from=$customValues item=value key=customName}
273 <tr>
274 <td {$labelStyle}>
275 {$customName}
276 </td>
277 <td {$valueStyle}>
278 {$value}
279 </td>
280 </tr>
281 {/foreach}
282 </table>
283 </td>
284 </tr>
285 {/if}
286
287 </table>
288 </center>
289
290 </body>
291 </html>