Merge remote-tracking branch 'upstream/4.3' into 4.3-4.4-2013-10-23-19-26-23
[civicrm-core.git] / CRM / Upgrade / 3.4.6.msg_template / 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}Contribution 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}Qty{/ts}</th>
98 <th>{ts}Each{/ts}</th>
99 <th>{ts}Total{/ts}</th>
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}<div>{$line.description|truncate:30:"..."}</div>{/if}
107 </td>
108 <td>
109 {$line.qty}
110 </td>
111 <td>
112 {$line.unit_price|crmMoney}
113 </td>
114 <td>
115 {$line.line_total|crmMoney}
116 </td>
117 <td>
118 {$line.start_date}
119 </td>
120 <td>
121 {$line.end_date}
122 </td>
123 </tr>
124 {/foreach}
125 </table>
126 </td>
127 </tr>
128 {/foreach}
129 {/if}
130 <tr>
131 <td {$labelStyle}>
132 {ts}Amount{/ts}
133 </td>
134 <td {$valueStyle}>
135 {$formValues.total_amount|crmMoney}
136 </td>
137 </tr>
138 {if $receive_date}
139 <tr>
140 <td {$labelStyle}>
141 {ts}Received Date{/ts}
142 </td>
143 <td {$valueStyle}>
144 {$receive_date|truncate:10:''|crmDate}
145 </td>
146 </tr>
147 {/if}
148 {if $formValues.paidBy}
149 <tr>
150 <td {$labelStyle}>
151 {ts}Paid By{/ts}
152 </td>
153 <td {$valueStyle}>
154 {$formValues.paidBy}
155 </td>
156 </tr>
157 {if $formValues.check_number}
158 <tr>
159 <td {$labelStyle}>
160 {ts}Check Number{/ts}
161 </td>
162 <td {$valueStyle}>
163 {$formValues.check_number}
164 </td>
165 </tr>
166 {/if}
167 {/if}
168 {/if}
169 {/if}
170 </table>
171 </td>
172 </tr>
173
174 {if $isPrimary}
175 <tr>
176 <td>
177 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
178
179 {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later }
180 <tr>
181 <th {$headerStyle}>
182 {ts}Billing Name and Address{/ts}
183 </th>
184 </tr>
185 <tr>
186 <td {$labelStyle}>
187 {$billingName}<br />
188 {$address}
189 </td>
190 </tr>
191 {/if}
192
193 {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later}
194 <tr>
195 <th {$headerStyle}>
196 {ts}Credit Card Information{/ts}
197 </th>
198 </tr>
199 <tr>
200 <td {$valueStyle}>
201 {$credit_card_type}<br />
202 {$credit_card_number}
203 </td>
204 </tr>
205 <tr>
206 <td {$labelStyle}>
207 {ts}Expires{/ts}
208 </td>
209 <td {$valueStyle}>
210 {$credit_card_exp_date|truncate:7:''|crmDate}
211 </td>
212 </tr>
213 {/if}
214
215 </table>
216 </td>
217 </tr>
218 {/if}
219
220 {if $customValues}
221 <tr>
222 <td>
223 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
224 <tr>
225 <th {$headerStyle}>
226 {ts}Membership Options{/ts}
227 </th>
228 </tr>
229 {foreach from=$customValues item=value key=customName}
230 <tr>
231 <td {$labelStyle}>
232 {$customName}
233 </td>
234 <td {$valueStyle}>
235 {$value}
236 </td>
237 </tr>
238 {/foreach}
239 </table>
240 </td>
241 </tr>
242 {/if}
243
244 </table>
245 </center>
246
247 </body>
248 </html>