ca6816d166f356b170afde10b4101951e6500e64
[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 {$event.location.address.1.display|nl2br}
93 </td>
94 </tr>
95 {/if}
96
97 {if $event.location.phone.1.phone || $event.location.email.1.email}
98 <tr>
99 <td colspan="2" {$labelStyle}>
100 {ts}Event Contacts:{/ts}
101 </td>
102 </tr>
103 {foreach from=$event.location.phone item=phone}
104 {if $phone.phone}
105 <tr>
106 <td {$labelStyle}>
107 {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
108 </td>
109 <td {$valueStyle}>
110 {$phone.phone}
111 </td>
112 </tr>
113 {/if}
114 {/foreach}
115 {foreach from=$event.location.email item=eventEmail}
116 {if $eventEmail.email}
117 <tr>
118 <td {$labelStyle}>
119 {ts}Email{/ts}
120 </td>
121 <td {$valueStyle}>
122 {$eventEmail.email}
123 </td>
124 </tr>
125 {/if}
126 {/foreach}
127 {/if}
128
129 {if $event.is_public}
130 <tr>
131 <td colspan="2" {$valueStyle}>
132 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
133 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
134 </td>
135 </tr>
136 {/if}
137
138 {if $contact.email}
139 <tr>
140 <th {$headerStyle}>
141 {ts}Registered Email{/ts}
142 </th>
143 </tr>
144 <tr>
145 <td colspan="2" {$valueStyle}>
146 {$contact.email}
147 </td>
148 </tr>
149 {/if}
150
151 {if $register_date}
152 <tr>
153 <td {$labelStyle}>
154 {ts}Registration Date{/ts}
155 </td>
156 <td {$valueStyle}>
157 {$participant.register_date|crmDate}
158 </td>
159 </tr>
160 {/if}
161
162 </table>
163 </td>
164 </tr>
165 {if $event.allow_selfcancelxfer }
166 <tr>
167 <td colspan="2" {$valueStyle}>
168 {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 />
169 {capture assign=selfService}{crmURL p='civicrm/event/selfsvcupdate' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
170 <a href="{$selfService}">{ts}Click here to transfer or cancel your registration.{/ts}</a>
171 </td>
172 </tr>
173 {/if}
174 <tr>
175 <td colspan="2" {$valueStyle}>
176 <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
177 </td>
178 </tr>
179
180 </table>
181 </center>
182
183 </body>
184 </html>