7585ee306f833e0c888f430d27013682908e4363
[civicrm-core.git] / xml / templates / message_templates / participant_confirm_html.tpl
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 <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
25 </td>
26 </tr>
27 {if !$isAdditional and $participant.id}
28 <tr>
29 <th {$headerStyle}>
30 {ts}Confirm Your Registration{/ts}
31 </th>
32 </tr>
33 <tr>
34 <td colspan="2" {$valueStyle}>
35 {capture assign=confirmUrl}{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
36 <a href="{$confirmUrl}">Go to a web page where you can confirm your registration online</a>
37 </td>
38 </tr>
39 {/if}
40 {if $event.allow_selfcancelxfer }
41 This event allows for self-cancel or transfer
42 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participantID`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
43 <a href="{$selfService}">{ts}Self service cancel transfer{/ts}</a>
44 {/if}
45
46 <tr>
47 <td>
48 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
49 <tr>
50 <th {$headerStyle}>
51 {ts}Event Information and Location{/ts}
52 </th>
53 </tr>
54 <tr>
55 <td colspan="2" {$valueStyle}>
56 {$event.event_title}<br />
57 {$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|crmDate}{/if}{/if}
58 </td>
59 </tr>
60 {if $conference_sessions}
61 <tr>
62 <td colspan="2" {$labelStyle}>
63 {ts}Your schedule:{/ts}
64 </td>
65 </tr>
66 <tr>
67 <td colspan="2" {$valueStyle}>
68 {assign var='group_by_day' value='NA'}
69 {foreach from=$conference_sessions item=session}
70 {if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
71 {assign var='group_by_day' value=$session.start_date}
72 <em>{$group_by_day|date_format:"%m/%d/%Y"}</em><br />
73 {/if}
74 {$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}<br />
75 {if $session.location}&nbsp;&nbsp;&nbsp;&nbsp;{$session.location}<br />{/if}
76 {/foreach}
77 </td>
78 </tr>
79 {/if}
80 <tr>
81 <td {$labelStyle}>
82 {ts}Participant Role{/ts}:
83 </td>
84 <td {$valueStyle}>
85 {$participant.role}
86 </td>
87 </tr>
88
89 {if $isShowLocation}
90 <tr>
91 <td colspan="2" {$valueStyle}>
92 {if $event.location.address.1.name}
93 {$event.location.address.1.name}<br />
94 {/if}
95 {if $event.location.address.1.street_address}
96 {$event.location.address.1.street_address}<br />
97 {/if}
98 {if $event.location.address.1.supplemental_address_1}
99 {$event.location.address.1.supplemental_address_1}<br />
100 {/if}
101 {if $event.location.address.1.supplemental_address_2}
102 {$event.location.address.1.supplemental_address_2}<br />
103 {/if}
104 {if $event.location.address.1.city}
105 {$event.location.address.1.city} {$event.location.address.1.postal_code}
106 {if $event.location.address.1.postal_code_suffix}
107 - {$event.location.address.1.postal_code_suffix}
108 {/if}
109 {/if}
110 </td>
111 </tr>
112 {/if}
113
114 {if $event.location.phone.1.phone || $event.location.email.1.email}
115 <tr>
116 <td colspan="2" {$labelStyle}>
117 {ts}Event Contacts:{/ts}
118 </td>
119 </tr>
120 {foreach from=$event.location.phone item=phone}
121 {if $phone.phone}
122 <tr>
123 <td {$labelStyle}>
124 {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
125 </td>
126 <td {$valueStyle}>
127 {$phone.phone}
128 </td>
129 </tr>
130 {/if}
131 {/foreach}
132 {foreach from=$event.location.email item=eventEmail}
133 {if $eventEmail.email}
134 <tr>
135 <td {$labelStyle}>
136 {ts}Email{/ts}
137 </td>
138 <td {$valueStyle}>
139 {$eventEmail.email}
140 </td>
141 </tr>
142 {/if}
143 {/foreach}
144 {/if}
145
146 {if $event.is_public}
147 <tr>
148 <td colspan="2" {$valueStyle}>
149 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
150 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
151 </td>
152 </tr>
153 {/if}
154
155 {if $contact.email}
156 <tr>
157 <th {$headerStyle}>
158 {ts}Registered Email{/ts}
159 </th>
160 </tr>
161 <tr>
162 <td colspan="2" {$valueStyle}>
163 {$contact.email}
164 </td>
165 </tr>
166 {/if}
167
168 {if $register_date}
169 <tr>
170 <td {$labelStyle}>
171 {ts}Registration Date{/ts}
172 </td>
173 <td {$valueStyle}>
174 {$participant.register_date|crmDate}
175 </td>
176 </tr>
177 {/if}
178
179 </table>
180 </td>
181 </tr>
182 {if $event.allow_selfcancelxfer }
183 <tr>
184 <td colspan="2" {$valueStyle}>
185 {ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}<br />
186 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
187 <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a>
188 </td>
189 </tr>
190 {/if}
191 <tr>
192 <td colspan="2" {$valueStyle}>
193 <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
194 </td>
195 </tr>
196
197 </table>
198 </center>
199
200 </body>
201 </html>