commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / CRM / Upgrade / 4.5.alpha1.msg_template / message_templates / contribution_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
25 {if $formValues.receipt_text}
26 <p>{$formValues.receipt_text|htmlize}</p>
27 {else}
28 <p>{ts}Thank you 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 $softCreditTypes and $softCredits}
175 {foreach from=$softCreditTypes item=softCreditType key=n}
176 <tr>
177 <th {$headerStyle}>
178 {$softCreditType}
179 </th>
180 </tr>
181 {foreach from=$softCredits.$n item=value key=label}
182 <tr>
183 <td {$labelStyle}>
184 {$label}
185 </td>
186 <td {$valueStyle}>
187 {$value}
188 </td>
189 </tr>
190 {/foreach}
191 {/foreach}
192 {/if}
193
194 {if $customGroup}
195 {foreach from=$customGroup item=value key=customName}
196 <tr>
197 <th {$headerStyle}>
198 {$customName}
199 </th>
200 </tr>
201 {foreach from=$value item=v key=n}
202 <tr>
203 <td {$labelStyle}>
204 {$n}
205 </td>
206 <td {$valueStyle}>
207 {$v}
208 </td>
209 </tr>
210 {/foreach}
211 {/foreach}
212 {/if}
213
214 {if $formValues.product_name}
215 <tr>
216 <th {$headerStyle}>
217 {ts}Premium Information{/ts}
218 </th>
219 </tr>
220 <tr>
221 <td colspan="2" {$labelStyle}>
222 {$formValues.product_name}
223 </td>
224 </tr>
225 {if $formValues.product_option}
226 <tr>
227 <td {$labelStyle}>
228 {ts}Option{/ts}
229 </td>
230 <td {$valueStyle}>
231 {$formValues.product_option}
232 </td>
233 </tr>
234 {/if}
235 {if $formValues.product_sku}
236 <tr>
237 <td {$labelStyle}>
238 {ts}SKU{/ts}
239 </td>
240 <td {$valueStyle}>
241 {$formValues.product_sku}
242 </td>
243 </tr>
244 {/if}
245 {if $fulfilled_date}
246 <tr>
247 <td {$labelStyle}>
248 {ts}Sent{/ts}
249 </td>
250 <td {$valueStyle}>
251 {$fulfilled_date|truncate:10:''|crmDate}
252 </td>
253 </tr>
254 {/if}
255 {/if}
256
257 </table>
258 </td>
259 </tr>
260
261 </table>
262 </center>
263
264 </body>
265 </html>