| 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 $email} |
| 173 | <tr> |
| 174 | <th {$headerStyle}> |
| 175 | {ts}Registered Email{/ts} |
| 176 | </th> |
| 177 | </tr> |
| 178 | <tr> |
| 179 | <td colspan="2" {$valueStyle}> |
| 180 | {$email} |
| 181 | </td> |
| 182 | </tr> |
| 183 | {/if} |
| 184 | {if $payer.name} |
| 185 | <tr> |
| 186 | <th {$headerStyle}> |
| 187 | {ts}You were registered by:{/ts} |
| 188 | </th> |
| 189 | </tr> |
| 190 | <tr> |
| 191 | <td colspan="2" {$valueStyle}> |
| 192 | {$payer.name} |
| 193 | </td> |
| 194 | </tr> |
| 195 | {/if} |
| 196 | {if $event.is_monetary} |
| 197 | |
| 198 | <tr> |
| 199 | <th {$headerStyle}> |
| 200 | {$event.fee_label} |
| 201 | </th> |
| 202 | </tr> |
| 203 | |
| 204 | {if $lineItem} |
| 205 | {foreach from=$lineItem item=value key=priceset} |
| 206 | {if $value neq 'skip'} |
| 207 | {if $isPrimary} |
| 208 | {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} |
| 209 | <tr> |
| 210 | <td colspan="2" {$labelStyle}> |
| 211 | {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info} |
| 212 | </td> |
| 213 | </tr> |
| 214 | {/if} |
| 215 | {/if} |
| 216 | <tr> |
| 217 | <td colspan="2" {$valueStyle}> |
| 218 | <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *} |
| 219 | <tr> |
| 220 | <th>{ts}Item{/ts}</th> |
| 221 | <th>{ts}Qty{/ts}</th> |
| 222 | <th>{ts}Each{/ts}</th> |
| 223 | <th>{ts}Total{/ts}</th> |
| 224 | {if $pricesetFieldsCount }<th>{ts}Total Participants{/ts}</th>{/if} |
| 225 | </tr> |
| 226 | {foreach from=$value item=line} |
| 227 | <tr> |
| 228 | <td> |
| 229 | {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} |
| 230 | </td> |
| 231 | <td> |
| 232 | {$line.qty} |
| 233 | </td> |
| 234 | <td> |
| 235 | {$line.unit_price|crmMoney} |
| 236 | </td> |
| 237 | <td> |
| 238 | {$line.line_total|crmMoney} |
| 239 | </td> |
| 240 | {if $pricesetFieldsCount }<td>{$line.participant_count}</td> {/if} |
| 241 | </tr> |
| 242 | {/foreach} |
| 243 | </table> |
| 244 | </td> |
| 245 | </tr> |
| 246 | {/if} |
| 247 | {/foreach} |
| 248 | {/if} |
| 249 | |
| 250 | {if $amount && !$lineItem} |
| 251 | {foreach from=$amount item=amnt key=level} |
| 252 | <tr> |
| 253 | <td colspan="2" {$valueStyle}> |
| 254 | {$amnt.amount|crmMoney} {$amnt.label} |
| 255 | </td> |
| 256 | </tr> |
| 257 | {/foreach} |
| 258 | {/if} |
| 259 | |
| 260 | {if $isPrimary} |
| 261 | <tr> |
| 262 | <td {$labelStyle}> |
| 263 | {ts}Total Amount{/ts} |
| 264 | </td> |
| 265 | <td {$valueStyle}> |
| 266 | {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if} |
| 267 | </td> |
| 268 | </tr> |
| 269 | {if $pricesetFieldsCount } |
| 270 | <tr> |
| 271 | <td {$labelStyle}> |
| 272 | {ts}Total Participants{/ts}</td> |
| 273 | <td {$valueStyle}> |
| 274 | {assign var="count" value= 0} |
| 275 | {foreach from=$lineItem item=pcount} |
| 276 | {assign var="lineItemCount" value=0} |
| 277 | {if $pcount neq 'skip'} |
| 278 | {foreach from=$pcount item=p_count} |
| 279 | {assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count} |
| 280 | {/foreach} |
| 281 | {if $lineItemCount < 1 } |
| 282 | {assign var="lineItemCount" value=1} |
| 283 | {/if} |
| 284 | {assign var="count" value=$count+$lineItemCount} |
| 285 | {/if} |
| 286 | {/foreach} |
| 287 | {$count} |
| 288 | </td> </tr> |
| 289 | {/if} |
| 290 | {if $is_pay_later} |
| 291 | <tr> |
| 292 | <td colspan="2" {$labelStyle}> |
| 293 | {$pay_later_receipt} |
| 294 | </td> |
| 295 | </tr> |
| 296 | {/if} |
| 297 | |
| 298 | {if $register_date} |
| 299 | <tr> |
| 300 | <td {$labelStyle}> |
| 301 | {ts}Registration Date{/ts} |
| 302 | </td> |
| 303 | <td {$valueStyle}> |
| 304 | {$register_date|crmDate} |
| 305 | </td> |
| 306 | </tr> |
| 307 | {/if} |
| 308 | |
| 309 | {if $receive_date} |
| 310 | <tr> |
| 311 | <td {$labelStyle}> |
| 312 | {ts}Transaction Date{/ts} |
| 313 | </td> |
| 314 | <td {$valueStyle}> |
| 315 | {$receive_date|crmDate} |
| 316 | </td> |
| 317 | </tr> |
| 318 | {/if} |
| 319 | |
| 320 | {if $contributionTypeName} |
| 321 | <tr> |
| 322 | <td {$labelStyle}> |
| 323 | {ts}Contribution Type{/ts} |
| 324 | </td> |
| 325 | <td {$valueStyle}> |
| 326 | {$contributionTypeName} |
| 327 | </td> |
| 328 | </tr> |
| 329 | {/if} |
| 330 | |
| 331 | {if $trxn_id} |
| 332 | <tr> |
| 333 | <td {$labelStyle}> |
| 334 | {ts}Transaction #{/ts} |
| 335 | </td> |
| 336 | <td {$valueStyle}> |
| 337 | {$trxn_id} |
| 338 | </td> |
| 339 | </tr> |
| 340 | {/if} |
| 341 | |
| 342 | {if $paidBy} |
| 343 | <tr> |
| 344 | <td {$labelStyle}> |
| 345 | {ts}Paid By{/ts} |
| 346 | </td> |
| 347 | <td {$valueStyle}> |
| 348 | {$paidBy} |
| 349 | </td> |
| 350 | </tr> |
| 351 | {/if} |
| 352 | |
| 353 | {if $checkNumber} |
| 354 | <tr> |
| 355 | <td {$labelStyle}> |
| 356 | {ts}Check Number{/ts} |
| 357 | </td> |
| 358 | <td {$valueStyle}> |
| 359 | {$checkNumber} |
| 360 | </td> |
| 361 | </tr> |
| 362 | {/if} |
| 363 | |
| 364 | {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} |
| 365 | <tr> |
| 366 | <th {$headerStyle}> |
| 367 | {ts}Billing Name and Address{/ts} |
| 368 | </th> |
| 369 | </tr> |
| 370 | <tr> |
| 371 | <td colspan="2" {$valueStyle}> |
| 372 | {$billingName}<br /> |
| 373 | {$address|nl2br} |
| 374 | </td> |
| 375 | </tr> |
| 376 | {/if} |
| 377 | |
| 378 | {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval} |
| 379 | <tr> |
| 380 | <th {$headerStyle}> |
| 381 | {ts}Credit Card Information{/ts} |
| 382 | </th> |
| 383 | </tr> |
| 384 | <tr> |
| 385 | <td colspan="2" {$valueStyle}> |
| 386 | {$credit_card_type}<br /> |
| 387 | {$credit_card_number}<br /> |
| 388 | {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate} |
| 389 | </td> |
| 390 | </tr> |
| 391 | {/if} |
| 392 | |
| 393 | {/if} |
| 394 | |
| 395 | {/if} {* End of conditional section for Paid events *} |
| 396 | |
| 397 | |
| 398 | {if $customPre} |
| 399 | {foreach from=$customPre item=customPr key=i} |
| 400 | <tr> <th {$headerStyle}>{$customPre_grouptitle.$i}</th></tr> |
| 401 | {foreach from=$customPr item=customValue key=customName} |
| 402 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} |
| 403 | <tr> |
| 404 | <td {$labelStyle}>{$customName}</td> |
| 405 | <td {$valueStyle}>{$customValue}</td> |
| 406 | </tr> |
| 407 | {/if} |
| 408 | {/foreach} |
| 409 | {/foreach} |
| 410 | {/if} |
| 411 | |
| 412 | {if $customPost} |
| 413 | {foreach from=$customPost item=customPos key=j} |
| 414 | <tr> <th {$headerStyle}>{$customPost_grouptitle.$j}</th></tr> |
| 415 | {foreach from=$customPos item=customValue key=customName} |
| 416 | {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields} |
| 417 | <tr> |
| 418 | <td {$labelStyle}>{$customName}</td> |
| 419 | <td {$valueStyle}>{$customValue}</td> |
| 420 | </tr> |
| 421 | {/if} |
| 422 | {/foreach} |
| 423 | {/foreach} |
| 424 | {/if} |
| 425 | |
| 426 | {if $customProfile} |
| 427 | {foreach from=$customProfile.profile item=eachParticipant key=participantID} |
| 428 | <tr><th {$headerStyle}>{ts 1=$participantID+2}Participant Information - Participant %1{/ts} </th></tr> |
| 429 | {foreach from=$eachParticipant item=eachProfile key=pid} |
| 430 | <tr><th {$headerStyle}>{$customProfile.title.$pid}</th></tr> |
| 431 | {foreach from=$eachProfile item=val key=field} |
| 432 | <tr>{foreach from=$val item=v key=f} |
| 433 | <td {$labelStyle}>{$field}</td> |
| 434 | <td {$valueStyle}>{$v}</td> |
| 435 | {/foreach} |
| 436 | </tr> |
| 437 | {/foreach} |
| 438 | {/foreach} |
| 439 | {/foreach} |
| 440 | {/if} |
| 441 | |
| 442 | {if $customGroup} |
| 443 | {foreach from=$customGroup item=value key=customName} |
| 444 | <tr> |
| 445 | <th {$headerStyle}> |
| 446 | {$customName} |
| 447 | </th> |
| 448 | </tr> |
| 449 | {foreach from=$value item=v key=n} |
| 450 | <tr> |
| 451 | <td {$labelStyle}> |
| 452 | {$n} |
| 453 | </td> |
| 454 | <td {$valueStyle}> |
| 455 | {$v} |
| 456 | </td> |
| 457 | </tr> |
| 458 | {/foreach} |
| 459 | {/foreach} |
| 460 | {/if} |
| 461 | |
| 462 | </table> |
| 463 | </td> |
| 464 | </tr> |
| 465 | </table> |
| 466 | </center> |
| 467 | |
| 468 | </body> |
| 469 | </html> |