| 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 | <p>Dear {contact.display_name},</p> |
| 25 | |
| 26 | {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)} |
| 27 | <p>{$event.confirm_email_text|htmlize}</p> |
| 28 | |
| 29 | {else} |
| 30 | <p>Thank you for your participation. This letter is a confirmation that your registration has been received and your status has been updated to <strong>{if $isOnWaitlist}waitlisted{else}registered{/if}</strong> for the following:</p> |
| 31 | |
| 32 | {/if} |
| 33 | |
| 34 | <p> |
| 35 | {if $isOnWaitlist} |
| 36 | <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p> |
| 37 | {if $isPrimary} |
| 38 | <p>{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}</p> |
| 39 | {/if} |
| 40 | {elseif $isRequireApproval} |
| 41 | <p>{ts}Your registration has been submitted.{/ts}</p> |
| 42 | {if $isPrimary} |
| 43 | <p>{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}</p> |
| 44 | {/if} |
| 45 | {elseif $is_pay_later && !$isAmountzero} |
| 46 | <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *} |
| 47 | {else} |
| 48 | <p>{ts}Please print this confirmation for your records.{/ts}</p> |
| 49 | {/if} |
| 50 | |
| 51 | </td> |
| 52 | </tr> |
| 53 | <tr> |
| 54 | <td> |
| 55 | <table width="500" style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse;"> |
| 56 | <tr> |
| 57 | <th {$headerStyle}> |
| 58 | {ts}Event Information and Location{/ts} |
| 59 | </th> |
| 60 | </tr> |
| 61 | <tr> |
| 62 | <td colspan="2" {$valueStyle}> |
| 63 | {$event.event_title}<br /> |
| 64 | {$event.event_start_date|date_format:"%A"} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|date_format:"%A"} {$event.event_end_date|crmDate}{/if}{/if} |
| 65 | </td> |
| 66 | </tr> |
| 67 | |
| 68 | |
| 69 | {if $conference_sessions} |
| 70 | <tr> |
| 71 | <td colspan="2" {$labelStyle}> |
| 72 | {ts}Your schedule:{/ts} |
| 73 | </td> |
| 74 | </tr> |
| 75 | <tr> |
| 76 | <td colspan="2" {$valueStyle}> |
| 77 | {assign var='group_by_day' value='NA'} |
| 78 | {foreach from=$conference_sessions item=session} |
| 79 | {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"} |
| 80 | {assign var='group_by_day' value=$session.start_date} |
| 81 | <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br /> |
| 82 | {/if} |
| 83 | {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br /> |
| 84 | {if $session.location} {$session.location}<br />{/if} |
| 85 | {/foreach} |
| 86 | </td> |
| 87 | </tr> |
| 88 | {/if} |
| 89 | |
| 90 | {if $event.participant_role neq 'Attendee' and $defaultRole} |
| 91 | <tr> |
| 92 | <td {$labelStyle}> |
| 93 | {ts}Participant Role{/ts} |
| 94 | </td> |
| 95 | <td {$valueStyle}> |
| 96 | {$event.participant_role} |
| 97 | </td> |
| 98 | </tr> |
| 99 | {/if} |
| 100 | |
| 101 | {if $isShowLocation} |
| 102 | <tr> |
| 103 | <td colspan="2" {$valueStyle}> |
| 104 | {if $location.address.1.name} |
| 105 | {$location.address.1.name}<br /> |
| 106 | {/if} |
| 107 | {if $location.address.1.street_address} |
| 108 | {$location.address.1.street_address}<br /> |
| 109 | {/if} |
| 110 | {if $location.address.1.supplemental_address_1} |
| 111 | {$location.address.1.supplemental_address_1}<br /> |
| 112 | {/if} |
| 113 | {if $location.address.1.supplemental_address_2} |
| 114 | {$location.address.1.supplemental_address_2}<br /> |
| 115 | {/if} |
| 116 | {if $location.address.1.city} |
| 117 | {$location.address.1.city}, {$location.address.1.state_province} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br /> |
| 118 | {/if} |
| 119 | </td> |
| 120 | </tr> |
| 121 | {/if} |
| 122 | |
| 123 | {if $location.phone.1.phone || $location.email.1.email} |
| 124 | <tr> |
| 125 | <td colspan="2" {$labelStyle}> |
| 126 | {ts}Event Contacts:{/ts} |
| 127 | </td> |
| 128 | </tr> |
| 129 | {foreach from=$location.phone item=phone} |
| 130 | {if $phone.phone} |
| 131 | <tr> |
| 132 | <td {$labelStyle}> |
| 133 | {if $phone.phone_type} |
| 134 | {$phone.phone_type_display} |
| 135 | {else} |
| 136 | {ts}Phone{/ts} |
| 137 | {/if} |
| 138 | </td> |
| 139 | <td {$valueStyle}> |
| 140 | {$phone.phone} |
| 141 | </td> |
| 142 | </tr> |
| 143 | {/if} |
| 144 | {/foreach} |
| 145 | {foreach from=$location.email item=eventEmail} |
| 146 | {if $eventEmail.email} |
| 147 | <tr> |
| 148 | <td {$labelStyle}> |
| 149 | {ts}Email{/ts} |
| 150 | </td> |
| 151 | <td {$valueStyle}> |
| 152 | {$eventEmail.email} |
| 153 | </td> |
| 154 | </tr> |
| 155 | {/if} |
| 156 | {/foreach} |
| 157 | {/if} |
| 158 | <tr> |
| 159 | <td colspan="2" {$valueStyle}> |
| 160 | {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture} |
| 161 | <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a> |
| 162 | </td> |
| 163 | </tr> |
| 164 | {if $event.is_share} |
| 165 | <tr> |
| 166 | <td colspan="2" {$valueStyle}> |
| 167 | {capture assign=eventUrl}{crmURL p='civicrm/event/info' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture} |
| 168 | {include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl} |
| 169 | </td> |
| 170 | </tr> |
| 171 | {/if} |
| 172 | {if $payer.name} |
| 173 | <tr> |
| 174 | <th {$headerStyle}> |
| 175 | {ts}You were registered by:{/ts} |
| 176 | </th> |
| 177 | </tr> |
| 178 | <tr> |
| 179 | <td colspan="2" {$valueStyle}> |
| 180 | {$payer.name} |
| 181 | </td> |
| 182 | </tr> |
| 183 | {/if} |
| 184 | {if $event.is_monetary} |
| 185 | |
| 186 | <tr> |
| 187 | <th {$headerStyle}> |
| 188 | {$event.fee_label} |
| 189 | </th> |
| 190 | </tr> |
| 191 | |
| 192 | {if $lineItem} |
| 193 | {foreach from=$lineItem item=value key=priceset} |
| 194 | {if $value neq 'skip'} |
| 195 | {if $isPrimary} |
| 196 | {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} |
| 197 | <tr> |
| 198 | <td colspan="2" {$labelStyle}> |
| 199 | {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info} |
| 200 | </td> |
| 201 | </tr> |
| 202 | {/if} |
| 203 | {/if} |
| 204 | <tr> |
| 205 | <td colspan="2" {$valueStyle}> |
| 206 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} |
| 207 | <tr> |
| 208 | <th>{ts}Item{/ts}</th> |
| 209 | <th>{ts}Qty{/ts}</th> |
| 210 | <th>{ts}Each{/ts}</th> |
| 211 | <th>{ts}Total{/ts}</th> |
| 212 | {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if} |
| 213 | </tr> |
| 214 | {foreach from=$value item=line} |
| 215 | <tr> |
| 216 | <td> |
| 217 | {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} |
| 218 | </td> |
| 219 | <td> |
| 220 | {$line.qty} |
| 221 | </td> |
| 222 | <td> |
| 223 | {$line.unit_price|crmMoney} |
| 224 | </td> |
| 225 | <td> |
| 226 | {$line.line_total|crmMoney} |
| 227 | </td> |
| 228 | {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if} |
| 229 | </tr> |
| 230 | {/foreach} |
| 231 | </table> |
| 232 | </td> |
| 233 | </tr> |
| 234 | {/if} |
| 235 | {/foreach} |
| 236 | {/if} |
| 237 | |
| 238 | |
| 239 | {if $isPrimary} |
| 240 | <tr> |
| 241 | <td {$labelStyle}> |
| 242 | {ts}Total Amount{/ts} |
| 243 | </td> |
| 244 | <td {$valueStyle}> |
| 245 | {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if} |
| 246 | </td> |
| 247 | </tr> |
| 248 | {if $pricesetFieldsCount } |
| 249 | <tr> |
| 250 | <td {$labelStyle}> |
| 251 | {ts}Total Participants{/ts}</td> |
| 252 | <td {$valueStyle}> |
| 253 | {assign var="count" value= 0} |
| 254 | {foreach from=$lineItem item=pcount} |
| 255 | {assign var="lineItemCount" value=0} |
| 256 | {if $pcount neq 'skip'} |
| 257 | {foreach from=$pcount item=p_count} |
| 258 | {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} |
| 259 | {/foreach} |
| 260 | {if $lineItemCount < 1 } |
| 261 | {assign var="lineItemCount" value=1} |
| 262 | {/if} |
| 263 | {assign var="count" value=$count+$lineItemCount} |
| 264 | {/if} |
| 265 | {/foreach} |
| 266 | {$count} |
| 267 | </td> </tr> |
| 268 | {/if} |
| 269 | {if $is_pay_later} |
| 270 | <tr> |
| 271 | <td colspan="2" {$labelStyle}> |
| 272 | {$pay_later_receipt} |
| 273 | </td> |
| 274 | </tr> |
| 275 | {/if} |
| 276 | |
| 277 | {if $register_date} |
| 278 | <tr> |
| 279 | <td {$labelStyle}> |
| 280 | {ts}Registration Date{/ts} |
| 281 | </td> |
| 282 | <td {$valueStyle}> |
| 283 | {$register_date|crmDate} |
| 284 | </td> |
| 285 | </tr> |
| 286 | {/if} |
| 287 | |
| 288 | {if $receive_date} |
| 289 | <tr> |
| 290 | <td {$labelStyle}> |
| 291 | {ts}Transaction Date{/ts} |
| 292 | </td> |
| 293 | <td {$valueStyle}> |
| 294 | {$receive_date|crmDate} |
| 295 | </td> |
| 296 | </tr> |
| 297 | {/if} |
| 298 | |
| 299 | {if $contributionTypeName} |
| 300 | <tr> |
| 301 | <td {$labelStyle}> |
| 302 | {ts}Contribution Type{/ts} |
| 303 | </td> |
| 304 | <td {$valueStyle}> |
| 305 | {$contributionTypeName} |
| 306 | </td> |
| 307 | </tr> |
| 308 | {/if} |
| 309 | |
| 310 | {if $trxn_id} |
| 311 | <tr> |
| 312 | <td {$labelStyle}> |
| 313 | {ts}Transaction #{/ts} |
| 314 | </td> |
| 315 | <td {$valueStyle}> |
| 316 | {$trxn_id} |
| 317 | </td> |
| 318 | </tr> |
| 319 | {/if} |
| 320 | |
| 321 | {if $paidBy} |
| 322 | <tr> |
| 323 | <td {$labelStyle}> |
| 324 | {ts}Paid By{/ts} |
| 325 | </td> |
| 326 | <td {$valueStyle}> |
| 327 | {$paidBy} |
| 328 | </td> |
| 329 | </tr> |
| 330 | {/if} |
| 331 | |
| 332 | {if $checkNumber} |
| 333 | <tr> |
| 334 | <td {$labelStyle}> |
| 335 | {ts}Check Number{/ts} |
| 336 | </td> |
| 337 | <td {$valueStyle}> |
| 338 | {$checkNumber} |
| 339 | </td> |
| 340 | </tr> |
| 341 | {/if} |
| 342 | |
| 343 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} |
| 344 | <tr> |
| 345 | <th {$headerStyle}> |
| 346 | {ts}Billing Name and Address{/ts} |
| 347 | </th> |
| 348 | </tr> |
| 349 | <tr> |
| 350 | <td colspan="2" {$valueStyle}> |
| 351 | {$billingName}<br /> |
| 352 | {$address|nl2br} |
| 353 | </td> |
| 354 | </tr> |
| 355 | {/if} |
| 356 | |
| 357 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} |
| 358 | <tr> |
| 359 | <th {$headerStyle}> |
| 360 | {ts}Credit Card Information{/ts} |
| 361 | </th> |
| 362 | </tr> |
| 363 | <tr> |
| 364 | <td colspan="2" {$valueStyle}> |
| 365 | {$credit_card_type}<br /> |
| 366 | {$credit_card_number}<br /> |
| 367 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} |
| 368 | </td> |
| 369 | </tr> |
| 370 | {/if} |
| 371 | |
| 372 | {/if} |
| 373 | |
| 374 | {/if} {* End of conditional section for Paid events *} |
| 375 | |
| 376 | |
| 377 | {if $customPre} |
| 378 | {foreach from=$customPre item=customPr key=i} |
| 379 | <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr> |
| 380 | {foreach from=$customPr item=customValue key=customName} |
| 381 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} |
| 382 | <tr> |
| 383 | <td {$labelStyle}>{$customName}</td> |
| 384 | <td {$valueStyle}>{$customValue}</td> |
| 385 | </tr> |
| 386 | {/if} |
| 387 | {/foreach} |
| 388 | {/foreach} |
| 389 | {/if} |
| 390 | |
| 391 | {if $customPost} |
| 392 | {foreach from=$customPost item=customPos key=j} |
| 393 | <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr> |
| 394 | {foreach from=$customPos item=customValue key=customName} |
| 395 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} |
| 396 | <tr> |
| 397 | <td {$labelStyle}>{$customName}</td> |
| 398 | <td {$valueStyle}>{$customValue}</td> |
| 399 | </tr> |
| 400 | {/if} |
| 401 | {/foreach} |
| 402 | {/foreach} |
| 403 | {/if} |
| 404 | |
| 405 | {if $customProfile} |
| 406 | {foreach from=$customProfile.profile item=eachParticipant key=participantID} |
| 407 | <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant %1{/ts} </th></tr> |
| 408 | {foreach from=$eachParticipant item=eachProfile key=pid} |
| 409 | <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr> |
| 410 | {foreach from=$eachProfile item=val key=field} |
| 411 | <tr>{foreach from=$val item=v key=f} |
| 412 | <td {$labelStyle}>{$field}</td> |
| 413 | <td {$valueStyle}>{$v}</td> |
| 414 | {/foreach} |
| 415 | </tr> |
| 416 | {/foreach} |
| 417 | {/foreach} |
| 418 | {/foreach} |
| 419 | {/if} |
| 420 | |
| 421 | {if $customGroup} |
| 422 | {foreach from=$customGroup item=value key=customName} |
| 423 | <tr> |
| 424 | <th {$headerStyle}> |
| 425 | {$customName} |
| 426 | </th> |
| 427 | </tr> |
| 428 | {foreach from=$value item=v key=n} |
| 429 | <tr> |
| 430 | <td {$labelStyle}> |
| 431 | {$n} |
| 432 | </td> |
| 433 | <td {$valueStyle}> |
| 434 | {$v} |
| 435 | </td> |
| 436 | </tr> |
| 437 | {/foreach} |
| 438 | {/foreach} |
| 439 | {/if} |
| 440 | </table> |
| 441 | </td> |
| 442 | </tr> |
| 443 | </table> |
| 444 | </center> |
| 445 | |
| 446 | </body> |
| 447 | </html> |