| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 | <head> |
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
| 6 | <title></title> |
| 7 | </head> |
| 8 | <body> |
| 9 | |
| 10 | {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} |
| 11 | {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} |
| 12 | {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} |
| 13 | |
| 14 | <table id="crm-event_receipt" |
| 15 | style="font-family: Arial, Verdana, sans-serif; text-align: left; width:100%; max-width:700px; padding:0; margin:0; border:0px;"> |
| 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 --> |
| 22 | |
| 23 | <tr> |
| 24 | <td> |
| 25 | {assign var="greeting" value="{contact.email_greeting}"}{if $greeting}<p>{$greeting},</p>{/if} |
| 26 | {if $receipt_text} |
| 27 | <p>{$receipt_text|htmlize}</p> |
| 28 | <p>{ts}Thank you for this contribution.{/ts}</p> |
| 29 | {/if} |
| 30 | </td> |
| 31 | </tr> |
| 32 | <tr> |
| 33 | <td> |
| 34 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
| 35 | {if empty($lineItem)} |
| 36 | <tr> |
| 37 | <th {$headerStyle}> |
| 38 | {ts}Membership Information{/ts} |
| 39 | </th> |
| 40 | </tr> |
| 41 | <tr> |
| 42 | <td {$labelStyle}> |
| 43 | {ts}Membership Type{/ts} |
| 44 | </td> |
| 45 | <td {$valueStyle}> |
| 46 | {$membership_name} |
| 47 | </td> |
| 48 | </tr> |
| 49 | {/if} |
| 50 | {if empty($cancelled)} |
| 51 | {if empty($lineItem)} |
| 52 | <tr> |
| 53 | <td {$labelStyle}> |
| 54 | {ts}Membership Start Date{/ts} |
| 55 | </td> |
| 56 | <td {$valueStyle}> |
| 57 | {$mem_start_date} |
| 58 | </td> |
| 59 | </tr> |
| 60 | <tr> |
| 61 | <td {$labelStyle}> |
| 62 | {ts}Membership End Date{/ts} |
| 63 | </td> |
| 64 | <td {$valueStyle}> |
| 65 | {$mem_end_date} |
| 66 | </td> |
| 67 | </tr> |
| 68 | {/if} |
| 69 | {if $formValues.total_amount OR $formValues.total_amount eq 0 } |
| 70 | <tr> |
| 71 | <th {$headerStyle}> |
| 72 | {ts}Membership Fee{/ts} |
| 73 | </th> |
| 74 | </tr> |
| 75 | {if !empty($formValues.contributionType_name)} |
| 76 | <tr> |
| 77 | <td {$labelStyle}> |
| 78 | {ts}Financial Type{/ts} |
| 79 | </td> |
| 80 | <td {$valueStyle}> |
| 81 | {$formValues.contributionType_name} |
| 82 | </td> |
| 83 | </tr> |
| 84 | {/if} |
| 85 | |
| 86 | {if !empty($lineItem)} |
| 87 | {foreach from=$lineItem item=value key=priceset} |
| 88 | <tr> |
| 89 | <td colspan="2" {$valueStyle}> |
| 90 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} |
| 91 | <tr> |
| 92 | <th>{ts}Item{/ts}</th> |
| 93 | <th>{ts}Fee{/ts}</th> |
| 94 | {if !empty($dataArray)} |
| 95 | <th>{ts}SubTotal{/ts}</th> |
| 96 | <th>{ts}Tax Rate{/ts}</th> |
| 97 | <th>{ts}Tax Amount{/ts}</th> |
| 98 | <th>{ts}Total{/ts}</th> |
| 99 | {/if} |
| 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} |
| 107 | <div>{$line.description|truncate:30:"..."}</div>{/if} |
| 108 | </td> |
| 109 | <td> |
| 110 | {$line.line_total|crmMoney} |
| 111 | </td> |
| 112 | {if !empty($dataArray)} |
| 113 | <td> |
| 114 | {$line.unit_price*$line.qty|crmMoney} |
| 115 | </td> |
| 116 | {if $line.tax_rate || $line.tax_amount != ""} |
| 117 | <td> |
| 118 | {$line.tax_rate|string_format:"%.2f"}% |
| 119 | </td> |
| 120 | <td> |
| 121 | {$line.tax_amount|crmMoney} |
| 122 | </td> |
| 123 | {else} |
| 124 | <td></td> |
| 125 | <td></td> |
| 126 | {/if} |
| 127 | <td> |
| 128 | {$line.line_total+$line.tax_amount|crmMoney} |
| 129 | </td> |
| 130 | {/if} |
| 131 | <td> |
| 132 | {$line.start_date} |
| 133 | </td> |
| 134 | <td> |
| 135 | {$line.end_date} |
| 136 | </td> |
| 137 | </tr> |
| 138 | {/foreach} |
| 139 | </table> |
| 140 | </td> |
| 141 | </tr> |
| 142 | {/foreach} |
| 143 | {if !empty($dataArray)} |
| 144 | {if $formValues.total_amount and $totalTaxAmount} |
| 145 | <tr> |
| 146 | <td {$labelStyle}> |
| 147 | {ts}Amount Before Tax:{/ts} |
| 148 | </td> |
| 149 | <td {$valueStyle}> |
| 150 | {$formValues.total_amount-$totalTaxAmount|crmMoney} |
| 151 | </td> |
| 152 | </tr> |
| 153 | {/if} |
| 154 | {foreach from=$dataArray item=value key=priceset} |
| 155 | <tr> |
| 156 | {if $priceset} |
| 157 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> |
| 158 | <td> {$value|crmMoney:$currency}</td> |
| 159 | {elseif $priceset == 0} |
| 160 | <td> {ts}No{/ts} {$taxTerm}</td> |
| 161 | <td> {$value|crmMoney:$currency}</td> |
| 162 | {/if} |
| 163 | </tr> |
| 164 | {/foreach} |
| 165 | {/if} |
| 166 | {/if} |
| 167 | {if $totalTaxAmount} |
| 168 | <tr> |
| 169 | <td {$labelStyle}> |
| 170 | {ts}Total Tax Amount{/ts} |
| 171 | </td> |
| 172 | <td {$valueStyle}> |
| 173 | {$totalTaxAmount|crmMoney:$currency} |
| 174 | </td> |
| 175 | </tr> |
| 176 | {/if} |
| 177 | <tr> |
| 178 | <td {$labelStyle}> |
| 179 | {ts}Amount{/ts} |
| 180 | </td> |
| 181 | <td {$valueStyle}> |
| 182 | {$formValues.total_amount|crmMoney} |
| 183 | </td> |
| 184 | </tr> |
| 185 | {if !empty($receive_date)} |
| 186 | <tr> |
| 187 | <td {$labelStyle}> |
| 188 | {ts}Date Received{/ts} |
| 189 | </td> |
| 190 | <td {$valueStyle}> |
| 191 | {$receive_date|truncate:10:''|crmDate} |
| 192 | </td> |
| 193 | </tr> |
| 194 | {/if} |
| 195 | {if !empty($formValues.paidBy)} |
| 196 | <tr> |
| 197 | <td {$labelStyle}> |
| 198 | {ts}Paid By{/ts} |
| 199 | </td> |
| 200 | <td {$valueStyle}> |
| 201 | {$formValues.paidBy} |
| 202 | </td> |
| 203 | </tr> |
| 204 | {if !empty($formValues.check_number)} |
| 205 | <tr> |
| 206 | <td {$labelStyle}> |
| 207 | {ts}Check Number{/ts} |
| 208 | </td> |
| 209 | <td {$valueStyle}> |
| 210 | {$formValues.check_number} |
| 211 | </td> |
| 212 | </tr> |
| 213 | {/if} |
| 214 | {/if} |
| 215 | {/if} |
| 216 | {/if} |
| 217 | </table> |
| 218 | </td> |
| 219 | </tr> |
| 220 | |
| 221 | {if !empty($isPrimary)} |
| 222 | <tr> |
| 223 | <td> |
| 224 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
| 225 | |
| 226 | {if !empty($billingName)} |
| 227 | <tr> |
| 228 | <th {$headerStyle}> |
| 229 | {ts}Billing Name and Address{/ts} |
| 230 | </th> |
| 231 | </tr> |
| 232 | <tr> |
| 233 | <td {$labelStyle}> |
| 234 | {$billingName}<br/> |
| 235 | {$address} |
| 236 | </td> |
| 237 | </tr> |
| 238 | {/if} |
| 239 | |
| 240 | {if !empty($credit_card_type)} |
| 241 | <tr> |
| 242 | <th {$headerStyle}> |
| 243 | {ts}Credit Card Information{/ts} |
| 244 | </th> |
| 245 | </tr> |
| 246 | <tr> |
| 247 | <td {$valueStyle}> |
| 248 | {$credit_card_type}<br/> |
| 249 | {$credit_card_number} |
| 250 | </td> |
| 251 | </tr> |
| 252 | <tr> |
| 253 | <td {$labelStyle}> |
| 254 | {ts}Expires{/ts} |
| 255 | </td> |
| 256 | <td {$valueStyle}> |
| 257 | {$credit_card_exp_date|truncate:7:''|crmDate} |
| 258 | </td> |
| 259 | </tr> |
| 260 | {/if} |
| 261 | |
| 262 | </table> |
| 263 | </td> |
| 264 | </tr> |
| 265 | {/if} |
| 266 | |
| 267 | {if !empty($customValues)} |
| 268 | <tr> |
| 269 | <td> |
| 270 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
| 271 | <tr> |
| 272 | <th {$headerStyle}> |
| 273 | {ts}Membership Options{/ts} |
| 274 | </th> |
| 275 | </tr> |
| 276 | {foreach from=$customValues item=value key=customName} |
| 277 | <tr> |
| 278 | <td {$labelStyle}> |
| 279 | {$customName} |
| 280 | </td> |
| 281 | <td {$valueStyle}> |
| 282 | {$value} |
| 283 | </td> |
| 284 | </tr> |
| 285 | {/foreach} |
| 286 | </table> |
| 287 | </td> |
| 288 | </tr> |
| 289 | {/if} |
| 290 | |
| 291 | </table> |
| 292 | |
| 293 | </body> |
| 294 | </html> |