| 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="500" 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 $receipt_text} |
| 26 | <p>{$receipt_text|htmlize}</p> |
| 27 | {/if} |
| 28 | |
| 29 | {if $is_pay_later} |
| 30 | <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} |
| 31 | {else} |
| 32 | <p>{ts}Please print this confirmation for your records.{/ts}</p> |
| 33 | {/if} |
| 34 | |
| 35 | </td> |
| 36 | </tr> |
| 37 | </table> |
| 38 | <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> |
| 39 | |
| 40 | {if $amount} |
| 41 | |
| 42 | |
| 43 | <tr> |
| 44 | <th {$headerStyle}> |
| 45 | {ts}Contribution Information{/ts} |
| 46 | </th> |
| 47 | </tr> |
| 48 | |
| 49 | {if $lineItem and $priceSetID and !$is_quick_config} |
| 50 | |
| 51 | {foreach from=$lineItem item=value key=priceset} |
| 52 | <tr> |
| 53 | <td colspan="2" {$valueStyle}> |
| 54 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} |
| 55 | <tr> |
| 56 | <th>{ts}Item{/ts}</th> |
| 57 | <th>{ts}Qty{/ts}</th> |
| 58 | <th>{ts}Each{/ts}</th> |
| 59 | <th>{ts}Total{/ts}</th> |
| 60 | </tr> |
| 61 | {foreach from=$value item=line} |
| 62 | <tr> |
| 63 | <td> |
| 64 | {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} |
| 65 | </td> |
| 66 | <td> |
| 67 | {$line.qty} |
| 68 | </td> |
| 69 | <td> |
| 70 | {$line.unit_price|crmMoney:$currency} |
| 71 | </td> |
| 72 | <td> |
| 73 | {$line.line_total|crmMoney:$currency} |
| 74 | </td> |
| 75 | </tr> |
| 76 | {/foreach} |
| 77 | </table> |
| 78 | </td> |
| 79 | </tr> |
| 80 | {/foreach} |
| 81 | <tr> |
| 82 | <td {$labelStyle}> |
| 83 | {ts}Total Amount{/ts} |
| 84 | </td> |
| 85 | <td {$valueStyle}> |
| 86 | {$amount|crmMoney:$currency} |
| 87 | </td> |
| 88 | </tr> |
| 89 | |
| 90 | {else} |
| 91 | |
| 92 | <tr> |
| 93 | <td {$labelStyle}> |
| 94 | {ts}Amount{/ts} |
| 95 | </td> |
| 96 | <td {$valueStyle}> |
| 97 | {$amount|crmMoney:$currency} {if $amount_level} - {$amount_level}{/if} |
| 98 | </td> |
| 99 | </tr> |
| 100 | |
| 101 | {/if} |
| 102 | |
| 103 | |
| 104 | {/if} |
| 105 | |
| 106 | |
| 107 | {if $receive_date} |
| 108 | <tr> |
| 109 | <td {$labelStyle}> |
| 110 | {ts}Date{/ts} |
| 111 | </td> |
| 112 | <td {$valueStyle}> |
| 113 | {$receive_date|crmDate} |
| 114 | </td> |
| 115 | </tr> |
| 116 | {/if} |
| 117 | |
| 118 | {if $is_monetary and $trxn_id} |
| 119 | <tr> |
| 120 | <td {$labelStyle}> |
| 121 | {ts}Transaction #{/ts} |
| 122 | </td> |
| 123 | <td {$valueStyle}> |
| 124 | {$trxn_id} |
| 125 | </td> |
| 126 | </tr> |
| 127 | {/if} |
| 128 | |
| 129 | {if $is_recur} |
| 130 | {if $contributeMode eq 'notify' or $contributeMode eq 'directIPN'} |
| 131 | <tr> |
| 132 | <td colspan="2" {$labelStyle}> |
| 133 | {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can cancel future contributions by <a href="%1">visiting this web page</a>.{/ts} |
| 134 | </td> |
| 135 | <tr> |
| 136 | </tr> |
| 137 | <td colspan="2" {$labelStyle}> |
| 138 | {ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts} |
| 139 | </td> |
| 140 | <tr> |
| 141 | </tr> |
| 142 | <td colspan="2" {$labelStyle}> |
| 143 | {ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by <a href="%1">visiting this web page</a>.{/ts} |
| 144 | </td> |
| 145 | </tr> |
| 146 | {/if} |
| 147 | {/if} |
| 148 | |
| 149 | {if $honor_block_is_active} |
| 150 | <tr> |
| 151 | <th {$headerStyle}> |
| 152 | {$honor_type} |
| 153 | </th> |
| 154 | </tr> |
| 155 | <tr> |
| 156 | <td colspan="2" {$labelStyle}> |
| 157 | {$honor_prefix} {$honor_first_name} {$honor_last_name} |
| 158 | </td> |
| 159 | </tr> |
| 160 | {if $honor_email} |
| 161 | <tr> |
| 162 | <td {$labelStyle}> |
| 163 | {ts}Honoree Email{/ts} |
| 164 | </td> |
| 165 | <td {$valueStyle}> |
| 166 | {$honor_email} |
| 167 | </td> |
| 168 | </tr> |
| 169 | {/if} |
| 170 | {/if} |
| 171 | |
| 172 | {if $pcpBlock} |
| 173 | <tr> |
| 174 | <th {$headerStyle}> |
| 175 | {ts}Personal Campaign Page{/ts} |
| 176 | </th> |
| 177 | </tr> |
| 178 | <tr> |
| 179 | <td {$labelStyle}> |
| 180 | {ts}Display In Honor Roll{/ts} |
| 181 | </td> |
| 182 | <td {$valueStyle}> |
| 183 | {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} |
| 184 | </td> |
| 185 | </tr> |
| 186 | {if $pcp_roll_nickname} |
| 187 | <tr> |
| 188 | <td {$labelStyle}> |
| 189 | {ts}Nickname{/ts} |
| 190 | </td> |
| 191 | <td {$valueStyle}> |
| 192 | {$pcp_roll_nickname} |
| 193 | </td> |
| 194 | </tr> |
| 195 | {/if} |
| 196 | {if $pcp_personal_note} |
| 197 | <tr> |
| 198 | <td {$labelStyle}> |
| 199 | {ts}Personal Note{/ts} |
| 200 | </td> |
| 201 | <td {$valueStyle}> |
| 202 | {$pcp_personal_note} |
| 203 | </td> |
| 204 | </tr> |
| 205 | {/if} |
| 206 | {/if} |
| 207 | |
| 208 | {if $onBehalfProfile} |
| 209 | <tr> |
| 210 | <th {$headerStyle}> |
| 211 | {$onBehalfProfile_grouptitle} |
| 212 | </th> |
| 213 | </tr> |
| 214 | {foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName} |
| 215 | <tr> |
| 216 | <td {$labelStyle}> |
| 217 | {$onBehalfName} |
| 218 | </td> |
| 219 | <td {$valueStyle}> |
| 220 | {$onBehalfValue} |
| 221 | </td> |
| 222 | </tr> |
| 223 | {/foreach} |
| 224 | {/if} |
| 225 | |
| 226 | {if $isShare} |
| 227 | <tr> |
| 228 | <td colspan="2" {$valueStyle}> |
| 229 | {capture assign=contributionUrl}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$contributionPageId`" a=true fe=1 h=1}{/capture} |
| 230 | {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$contributionUrl title=$title pageURL=$contributionUrl} |
| 231 | </td> |
| 232 | </tr> |
| 233 | {/if} |
| 234 | |
| 235 | {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary} |
| 236 | {if $is_pay_later} |
| 237 | <tr> |
| 238 | <th {$headerStyle}> |
| 239 | {ts}Registered Email{/ts} |
| 240 | </th> |
| 241 | </tr> |
| 242 | <tr> |
| 243 | <td colspan="2" {$valueStyle}> |
| 244 | {$email} |
| 245 | </td> |
| 246 | </tr> |
| 247 | {elseif $amount GT 0} |
| 248 | <tr> |
| 249 | <th {$headerStyle}> |
| 250 | {ts}Billing Name and Address{/ts} |
| 251 | </th> |
| 252 | </tr> |
| 253 | <tr> |
| 254 | <td colspan="2" {$valueStyle}> |
| 255 | {$billingName}<br /> |
| 256 | {$address|nl2br}<br /> |
| 257 | {$email} |
| 258 | </td> |
| 259 | </tr> |
| 260 | {/if} |
| 261 | {/if} |
| 262 | |
| 263 | {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0} |
| 264 | <tr> |
| 265 | <th {$headerStyle}> |
| 266 | {ts}Credit Card Information{/ts} |
| 267 | </th> |
| 268 | </tr> |
| 269 | <tr> |
| 270 | <td colspan="2" {$valueStyle}> |
| 271 | {$credit_card_type}<br /> |
| 272 | {$credit_card_number}<br /> |
| 273 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br /> |
| 274 | </td> |
| 275 | </tr> |
| 276 | {/if} |
| 277 | |
| 278 | {if $selectPremium} |
| 279 | <tr> |
| 280 | <th {$headerStyle}> |
| 281 | {ts}Premium Information{/ts} |
| 282 | </th> |
| 283 | </tr> |
| 284 | <tr> |
| 285 | <td colspan="2" {$labelStyle}> |
| 286 | {$product_name} |
| 287 | </td> |
| 288 | </tr> |
| 289 | {if $option} |
| 290 | <tr> |
| 291 | <td {$labelStyle}> |
| 292 | {ts}Option{/ts} |
| 293 | </td> |
| 294 | <td {$valueStyle}> |
| 295 | {$option} |
| 296 | </td> |
| 297 | </tr> |
| 298 | {/if} |
| 299 | {if $sku} |
| 300 | <tr> |
| 301 | <td {$labelStyle}> |
| 302 | {ts}SKU{/ts} |
| 303 | </td> |
| 304 | <td {$valueStyle}> |
| 305 | {$sku} |
| 306 | </td> |
| 307 | </tr> |
| 308 | {/if} |
| 309 | {if $start_date} |
| 310 | <tr> |
| 311 | <td {$labelStyle}> |
| 312 | {ts}Start Date{/ts} |
| 313 | </td> |
| 314 | <td {$valueStyle}> |
| 315 | {$start_date|crmDate} |
| 316 | </td> |
| 317 | </tr> |
| 318 | {/if} |
| 319 | {if $end_date} |
| 320 | <tr> |
| 321 | <td {$labelStyle}> |
| 322 | {ts}End Date{/ts} |
| 323 | </td> |
| 324 | <td {$valueStyle}> |
| 325 | {$end_date|crmDate} |
| 326 | </td> |
| 327 | </tr> |
| 328 | {/if} |
| 329 | {if $contact_email OR $contact_phone} |
| 330 | <tr> |
| 331 | <td colspan="2" {$valueStyle}> |
| 332 | <p>{ts}For information about this premium, contact:{/ts}</p> |
| 333 | {if $contact_email} |
| 334 | <p>{$contact_email}</p> |
| 335 | {/if} |
| 336 | {if $contact_phone} |
| 337 | <p>{$contact_phone}</p> |
| 338 | {/if} |
| 339 | </td> |
| 340 | </tr> |
| 341 | {/if} |
| 342 | {if $is_deductible AND $price} |
| 343 | <tr> |
| 344 | <td colspan="2" {$valueStyle}> |
| 345 | <p>{ts 1=$price|crmMoney:$currency}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}</p> |
| 346 | </td> |
| 347 | </tr> |
| 348 | {/if} |
| 349 | {/if} |
| 350 | |
| 351 | {if $customPre} |
| 352 | <tr> |
| 353 | <th {$headerStyle}> |
| 354 | {$customPre_grouptitle} |
| 355 | </th> |
| 356 | </tr> |
| 357 | {foreach from=$customPre item=customValue key=customName} |
| 358 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} |
| 359 | <tr> |
| 360 | <td {$labelStyle}> |
| 361 | {$customName} |
| 362 | </td> |
| 363 | <td {$valueStyle}> |
| 364 | {$customValue} |
| 365 | </td> |
| 366 | </tr> |
| 367 | {/if} |
| 368 | {/foreach} |
| 369 | {/if} |
| 370 | |
| 371 | {if $customPost} |
| 372 | <tr> |
| 373 | <th {$headerStyle}> |
| 374 | {$customPost_grouptitle} |
| 375 | </th> |
| 376 | </tr> |
| 377 | {foreach from=$customPost item=customValue key=customName} |
| 378 | {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields} |
| 379 | <tr> |
| 380 | <td {$labelStyle}> |
| 381 | {$customName} |
| 382 | </td> |
| 383 | <td {$valueStyle}> |
| 384 | {$customValue} |
| 385 | </td> |
| 386 | </tr> |
| 387 | {/if} |
| 388 | {/foreach} |
| 389 | {/if} |
| 390 | |
| 391 | </table> |
| 392 | </center> |
| 393 | |
| 394 | </body> |
| 395 | </html> |