| 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}Thank you 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 OR $formValues.total_amount eq 0 } |
| 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}Financial 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}Fee{/ts}</th> |
| 98 | {if $dataArray} |
| 99 | <th>{ts}SubTotal{/ts}</th> |
| 100 | <th>{ts}Tax Rate{/ts}</th> |
| 101 | <th>{ts}Tax Amount{/ts}</th> |
| 102 | <th>{ts}Total{/ts}</th> |
| 103 | {/if} |
| 104 | <th>{ts}Membership Start Date{/ts}</th> |
| 105 | <th>{ts}Membership End Date{/ts}</th> |
| 106 | </tr> |
| 107 | {foreach from=$value item=line} |
| 108 | <tr> |
| 109 | <td> |
| 110 | {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} |
| 111 | </td> |
| 112 | <td> |
| 113 | {$line.line_total|crmMoney} |
| 114 | </td> |
| 115 | {if $dataArray} |
| 116 | <td> |
| 117 | {$line.unit_price*$line.qty|crmMoney} |
| 118 | </td> |
| 119 | {if $line.tax_rate != "" || $line.tax_amount != ""} |
| 120 | <td> |
| 121 | {$line.tax_rate|string_format:"%.2f"}% |
| 122 | </td> |
| 123 | <td> |
| 124 | {$line.tax_amount|crmMoney} |
| 125 | </td> |
| 126 | {else} |
| 127 | <td></td> |
| 128 | <td></td> |
| 129 | {/if} |
| 130 | <td> |
| 131 | {$line.line_total+$line.tax_amount|crmMoney} |
| 132 | </td> |
| 133 | {/if} |
| 134 | <td> |
| 135 | {$line.start_date} |
| 136 | </td> |
| 137 | <td> |
| 138 | {$line.end_date} |
| 139 | </td> |
| 140 | </tr> |
| 141 | {/foreach} |
| 142 | </table> |
| 143 | </td> |
| 144 | </tr> |
| 145 | {/foreach} |
| 146 | {if $dataArray} |
| 147 | <tr> |
| 148 | <td {$labelStyle}> |
| 149 | {ts}Amount Before Tax:{/ts} |
| 150 | </td> |
| 151 | <td {$valueStyle}> |
| 152 | {$formValues.total_amount-$totalTaxAmount|crmMoney} |
| 153 | </td> |
| 154 | </tr> |
| 155 | {foreach from=$dataArray item=value key=priceset} |
| 156 | <tr> |
| 157 | {if $priceset} |
| 158 | <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td> |
| 159 | <td> {$value|crmMoney:$currency}</td> |
| 160 | {elseif $priceset == 0} |
| 161 | <td> {ts}No{/ts} {$taxTerm}</td> |
| 162 | <td> {$value|crmMoney:$currency}</td> |
| 163 | {/if} |
| 164 | </tr> |
| 165 | {/foreach} |
| 166 | {/if} |
| 167 | {/if} |
| 168 | {if isset($totalTaxAmount)} |
| 169 | <tr> |
| 170 | <td {$labelStyle}> |
| 171 | {ts}Total Tax Amount{/ts} |
| 172 | </td> |
| 173 | <td {$valueStyle}> |
| 174 | {$totalTaxAmount|crmMoney:$currency} |
| 175 | </td> |
| 176 | </tr> |
| 177 | {/if} |
| 178 | <tr> |
| 179 | <td {$labelStyle}> |
| 180 | {ts}Amount{/ts} |
| 181 | </td> |
| 182 | <td {$valueStyle}> |
| 183 | {$formValues.total_amount|crmMoney} |
| 184 | </td> |
| 185 | </tr> |
| 186 | {if $receive_date} |
| 187 | <tr> |
| 188 | <td {$labelStyle}> |
| 189 | {ts}Date Received{/ts} |
| 190 | </td> |
| 191 | <td {$valueStyle}> |
| 192 | {$receive_date|truncate:10:''|crmDate} |
| 193 | </td> |
| 194 | </tr> |
| 195 | {/if} |
| 196 | {if $formValues.paidBy} |
| 197 | <tr> |
| 198 | <td {$labelStyle}> |
| 199 | {ts}Paid By{/ts} |
| 200 | </td> |
| 201 | <td {$valueStyle}> |
| 202 | {$formValues.paidBy} |
| 203 | </td> |
| 204 | </tr> |
| 205 | {if $formValues.check_number} |
| 206 | <tr> |
| 207 | <td {$labelStyle}> |
| 208 | {ts}Check Number{/ts} |
| 209 | </td> |
| 210 | <td {$valueStyle}> |
| 211 | {$formValues.check_number} |
| 212 | </td> |
| 213 | </tr> |
| 214 | {/if} |
| 215 | {/if} |
| 216 | {/if} |
| 217 | {/if} |
| 218 | </table> |
| 219 | </td> |
| 220 | </tr> |
| 221 | |
| 222 | {if $isPrimary} |
| 223 | <tr> |
| 224 | <td> |
| 225 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
| 226 | |
| 227 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later } |
| 228 | <tr> |
| 229 | <th {$headerStyle}> |
| 230 | {ts}Billing Name and Address{/ts} |
| 231 | </th> |
| 232 | </tr> |
| 233 | <tr> |
| 234 | <td {$labelStyle}> |
| 235 | {$billingName}<br /> |
| 236 | {$address} |
| 237 | </td> |
| 238 | </tr> |
| 239 | {/if} |
| 240 | |
| 241 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later} |
| 242 | <tr> |
| 243 | <th {$headerStyle}> |
| 244 | {ts}Credit Card Information{/ts} |
| 245 | </th> |
| 246 | </tr> |
| 247 | <tr> |
| 248 | <td {$valueStyle}> |
| 249 | {$credit_card_type}<br /> |
| 250 | {$credit_card_number} |
| 251 | </td> |
| 252 | </tr> |
| 253 | <tr> |
| 254 | <td {$labelStyle}> |
| 255 | {ts}Expires{/ts} |
| 256 | </td> |
| 257 | <td {$valueStyle}> |
| 258 | {$credit_card_exp_date|truncate:7:''|crmDate} |
| 259 | </td> |
| 260 | </tr> |
| 261 | {/if} |
| 262 | |
| 263 | </table> |
| 264 | </td> |
| 265 | </tr> |
| 266 | {/if} |
| 267 | |
| 268 | {if $customValues} |
| 269 | <tr> |
| 270 | <td> |
| 271 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
| 272 | <tr> |
| 273 | <th {$headerStyle}> |
| 274 | {ts}Membership Options{/ts} |
| 275 | </th> |
| 276 | </tr> |
| 277 | {foreach from=$customValues item=value key=customName} |
| 278 | <tr> |
| 279 | <td {$labelStyle}> |
| 280 | {$customName} |
| 281 | </td> |
| 282 | <td {$valueStyle}> |
| 283 | {$value} |
| 284 | </td> |
| 285 | </tr> |
| 286 | {/foreach} |
| 287 | </table> |
| 288 | </td> |
| 289 | </tr> |
| 290 | {/if} |
| 291 | |
| 292 | </table> |
| 293 | </center> |
| 294 | |
| 295 | </body> |
| 296 | </html> |