| 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 | <th>{ts}Membership Start Date{/ts}</th> |
| 99 | <th>{ts}Membership End Date{/ts}</th> |
| 100 | </tr> |
| 101 | {foreach from=$value item=line} |
| 102 | <tr> |
| 103 | <td> |
| 104 | {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} |
| 105 | </td> |
| 106 | <td> |
| 107 | {$line.line_total|crmMoney} |
| 108 | </td> |
| 109 | <td> |
| 110 | {$line.start_date} |
| 111 | </td> |
| 112 | <td> |
| 113 | {$line.end_date} |
| 114 | </td> |
| 115 | </tr> |
| 116 | {/foreach} |
| 117 | </table> |
| 118 | </td> |
| 119 | </tr> |
| 120 | {/foreach} |
| 121 | {/if} |
| 122 | <tr> |
| 123 | <td {$labelStyle}> |
| 124 | {ts}Amount{/ts} |
| 125 | </td> |
| 126 | <td {$valueStyle}> |
| 127 | {$formValues.total_amount|crmMoney} |
| 128 | </td> |
| 129 | </tr> |
| 130 | {if $receive_date} |
| 131 | <tr> |
| 132 | <td {$labelStyle}> |
| 133 | {ts}Received Date{/ts} |
| 134 | </td> |
| 135 | <td {$valueStyle}> |
| 136 | {$receive_date|truncate:10:''|crmDate} |
| 137 | </td> |
| 138 | </tr> |
| 139 | {/if} |
| 140 | {if $formValues.paidBy} |
| 141 | <tr> |
| 142 | <td {$labelStyle}> |
| 143 | {ts}Paid By{/ts} |
| 144 | </td> |
| 145 | <td {$valueStyle}> |
| 146 | {$formValues.paidBy} |
| 147 | </td> |
| 148 | </tr> |
| 149 | {if $formValues.check_number} |
| 150 | <tr> |
| 151 | <td {$labelStyle}> |
| 152 | {ts}Check Number{/ts} |
| 153 | </td> |
| 154 | <td {$valueStyle}> |
| 155 | {$formValues.check_number} |
| 156 | </td> |
| 157 | </tr> |
| 158 | {/if} |
| 159 | {/if} |
| 160 | {/if} |
| 161 | {/if} |
| 162 | </table> |
| 163 | </td> |
| 164 | </tr> |
| 165 | |
| 166 | {if $isPrimary} |
| 167 | <tr> |
| 168 | <td> |
| 169 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
| 170 | |
| 171 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later } |
| 172 | <tr> |
| 173 | <th {$headerStyle}> |
| 174 | {ts}Billing Name and Address{/ts} |
| 175 | </th> |
| 176 | </tr> |
| 177 | <tr> |
| 178 | <td {$labelStyle}> |
| 179 | {$billingName}<br /> |
| 180 | {$address} |
| 181 | </td> |
| 182 | </tr> |
| 183 | {/if} |
| 184 | |
| 185 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later} |
| 186 | <tr> |
| 187 | <th {$headerStyle}> |
| 188 | {ts}Credit Card Information{/ts} |
| 189 | </th> |
| 190 | </tr> |
| 191 | <tr> |
| 192 | <td {$valueStyle}> |
| 193 | {$credit_card_type}<br /> |
| 194 | {$credit_card_number} |
| 195 | </td> |
| 196 | </tr> |
| 197 | <tr> |
| 198 | <td {$labelStyle}> |
| 199 | {ts}Expires{/ts} |
| 200 | </td> |
| 201 | <td {$valueStyle}> |
| 202 | {$credit_card_exp_date|truncate:7:''|crmDate} |
| 203 | </td> |
| 204 | </tr> |
| 205 | {/if} |
| 206 | |
| 207 | </table> |
| 208 | </td> |
| 209 | </tr> |
| 210 | {/if} |
| 211 | |
| 212 | {if $customValues} |
| 213 | <tr> |
| 214 | <td> |
| 215 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
| 216 | <tr> |
| 217 | <th {$headerStyle}> |
| 218 | {ts}Membership Options{/ts} |
| 219 | </th> |
| 220 | </tr> |
| 221 | {foreach from=$customValues item=value key=customName} |
| 222 | <tr> |
| 223 | <td {$labelStyle}> |
| 224 | {$customName} |
| 225 | </td> |
| 226 | <td {$valueStyle}> |
| 227 | {$value} |
| 228 | </td> |
| 229 | </tr> |
| 230 | {/foreach} |
| 231 | </table> |
| 232 | </td> |
| 233 | </tr> |
| 234 | {/if} |
| 235 | |
| 236 | </table> |
| 237 | </center> |
| 238 | |
| 239 | </body> |
| 240 | </html> |