[REF][PHP8.1] Replace usage of the date_format modifer with crmDate to resolve issues...
[civicrm-core.git] / xml / templates / message_templates / payment_or_refund_notification_html.tpl
CommitLineData
7cdb890a
PJ
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}
820fbcfb
PJ
12{capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture}
13{capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture}
7cdb890a 14
cb342529 15 <table id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;">
7cdb890a
PJ
16
17 <!-- BEGIN HEADER -->
18 <!-- You can add table row(s) here with logo or other header elements -->
19 <!-- END HEADER -->
20
21 <!-- BEGIN CONTENT -->
7cdb890a
PJ
22 <tr>
23 <td>
cb342529 24 {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if}
7324e717 25 {if $isRefund}
cb342529 26 <p>{ts}A refund has been issued based on changes in your registration selections.{/ts}</p>
7cdb890a 27 {else}
cb342529 28 <p>{ts}Below you will find a receipt for this payment.{/ts}</p>
29 {if $paymentsComplete}
30 <p>{ts}Thank you for completing this contribution.{/ts}</p>
31 {/if}
7cdb890a 32 {/if}
7cdb890a
PJ
33 </td>
34 </tr>
820fbcfb
PJ
35 <tr>
36 <td>
37 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
cb342529 38 {if $isRefund}
39 <tr>
40 <th {$headerStyle}>{ts}Refund Details{/ts}</th>
41 </tr>
42 <tr>
43 <td {$labelStyle}>
44 {ts}This Refund Amount{/ts}
45 </td>
46 <td {$valueStyle}>
47 {$refundAmount|crmMoney}
48 </td>
49 </tr>
50 {else}
51 <tr>
52 <th {$headerStyle}>{ts}Payment Details{/ts}</th>
53 </tr>
54 <tr>
55 <td {$labelStyle}>
56 {ts}This Payment Amount{/ts}
57 </td>
58 <td {$valueStyle}>
59 {$paymentAmount|crmMoney}
60 </td>
61 </tr>
62 {/if}
63 {if $receive_date}
64 <tr>
65 <td {$labelStyle}>
66 {ts}Transaction Date{/ts}
67 </td>
68 <td {$valueStyle}>
69 {$receive_date|crmDate}
70 </td>
71 </tr>
72 {/if}
141c8460 73 {if !empty($trxn_id)}
cb342529 74 <tr>
75 <td {$labelStyle}>
76 {ts}Transaction #{/ts}
77 </td>
78 <td {$valueStyle}>
79 {$trxn_id}
80 </td>
81 </tr>
82 {/if}
141c8460 83 {if !empty($paidBy)}
cb342529 84 <tr>
85 <td {$labelStyle}>
86 {ts}Paid By{/ts}
87 </td>
88 <td {$valueStyle}>
89 {$paidBy}
90 </td>
91 </tr>
92 {/if}
141c8460 93 {if !empty($checkNumber)}
cb342529 94 <tr>
95 <td {$labelStyle}>
96 {ts}Check Number{/ts}
97 </td>
98 <td {$valueStyle}>
99 {$checkNumber}
100 </td>
101 </tr>
102 {/if}
103
7cdb890a 104 <tr>
cb342529 105 <th {$headerStyle}>{ts}Contribution Details{/ts}</th>
7cdb890a 106 </tr>
6d365b1e 107 {if $totalAmount}
7cdb890a
PJ
108 <tr>
109 <td {$labelStyle}>
1f6479af 110 {ts}Total Fee{/ts}
7cdb890a
PJ
111 </td>
112 <td {$valueStyle}>
113 {$totalAmount|crmMoney}
114 </td>
1010c4e1 115 </tr>
141c8460 116 {/if}
6d365b1e 117 {if $totalPaid}
1010c4e1 118 <tr>
7cdb890a 119 <td {$labelStyle}>
1f6479af 120 {ts}Total Paid{/ts}
7cdb890a
PJ
121 </td>
122 <td {$valueStyle}>
123 {$totalPaid|crmMoney}
124 </td>
1010c4e1 125 </tr>
141c8460 126 {/if}
6d365b1e 127 {if $amountOwed}
1010c4e1 128 <tr>
7cdb890a 129 <td {$labelStyle}>
cb342529 130 {ts}Balance Owed{/ts}
7cdb890a
PJ
131 </td>
132 <td {$valueStyle}>
cb342529 133 {$amountOwed|crmMoney}
134 </td> {* This will be zero after final payment. *}
7cdb890a 135 </tr>
141c8460 136 {/if}
820fbcfb 137 </table>
cb342529 138
820fbcfb
PJ
139 </td>
140 </tr>
7cdb890a
PJ
141 <tr>
142 <td>
7f7fa13a 143 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
141c8460 144 {if !empty($billingName) || !empty($address)}
7cdb890a
PJ
145 <tr>
146 <th {$headerStyle}>
7f7fa13a 147 {ts}Billing Name and Address{/ts}
7cdb890a
PJ
148 </th>
149 </tr>
150 <tr>
151 <td colspan="2" {$valueStyle}>
141c8460
SL
152 {if !empty($billingName)}{$billingName}{/if}<br />
153 {if !empty($address)}{$address|nl2br}{/if}
7cdb890a
PJ
154 </td>
155 </tr>
7f7fa13a 156 {/if}
141c8460 157 {if !empty($credit_card_number)}
7cdb890a
PJ
158 <tr>
159 <th {$headerStyle}>
7f7fa13a 160 {ts}Credit Card Information{/ts}
7cdb890a
PJ
161 </th>
162 </tr>
163 <tr>
164 <td colspan="2" {$valueStyle}>
7f7fa13a
EM
165 {$credit_card_type}<br />
166 {$credit_card_number}<br />
167 {ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:''|crmDate}
7cdb890a
PJ
168 </td>
169 </tr>
7f7fa13a
EM
170 {/if}
171 {if $component eq 'event'}
172 <tr>
173 <th {$headerStyle}>
174 {ts}Event Information and Location{/ts}
175 </th>
176 </tr>
177 <tr>
178 <td colspan="2" {$valueStyle}>
179 {$event.event_title}<br />
970cdb44 180 {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|crmDate:"%Y%m%d" == $event.event_start_date|crmDate:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
7f7fa13a
EM
181 </td>
182 </tr>
7cdb890a 183
ff708ff0 184 {if !empty($event.participant_role)}
7f7fa13a
EM
185 <tr>
186 <td {$labelStyle}>
187 {ts}Participant Role{/ts}
188 </td>
189 <td {$valueStyle}>
190 {$event.participant_role}
191 </td>
192 </tr>
193 {/if}
7cdb890a 194
ff708ff0 195 {if !empty($isShowLocation)}
7f7fa13a
EM
196 <tr>
197 <td colspan="2" {$valueStyle}>
060625d6 198 {$location.address.1.display|nl2br}
7f7fa13a
EM
199 </td>
200 </tr>
201 {/if}
7cdb890a 202
ff708ff0 203 {if !empty($location.phone.1.phone) || !empty($location.email.1.email)}
7f7fa13a
EM
204 <tr>
205 <td colspan="2" {$labelStyle}>
206 {ts}Event Contacts:{/ts}
207 </td>
208 </tr>
209 {foreach from=$location.phone item=phone}
210 {if $phone.phone}
7cdb890a
PJ
211 <tr>
212 <td {$labelStyle}>
7f7fa13a
EM
213 {if $phone.phone_type}
214 {$phone.phone_type_display}
215 {else}
216 {ts}Phone{/ts}
217 {/if}
7cdb890a
PJ
218 </td>
219 <td {$valueStyle}>
7f7fa13a 220 {$phone.phone} {if $phone.phone_ext}&nbsp;{ts}ext.{/ts} {$phone.phone_ext}{/if}
7cdb890a
PJ
221 </td>
222 </tr>
7f7fa13a
EM
223 {/if}
224 {/foreach}
225 {foreach from=$location.email item=eventEmail}
226 {if $eventEmail.email}
7cdb890a
PJ
227 <tr>
228 <td {$labelStyle}>
7f7fa13a 229 {ts}Email{/ts}
7cdb890a
PJ
230 </td>
231 <td {$valueStyle}>
7f7fa13a 232 {$eventEmail.email}
7cdb890a
PJ
233 </td>
234 </tr>
7f7fa13a
EM
235 {/if}
236 {/foreach}
237 {/if} {*phone block close*}
238 {/if}
239 </table>
7cdb890a
PJ
240 </td>
241 </tr>
242
243 </table>
7cdb890a
PJ
244
245 </body>
246</html>