Merge pull request #3799 from routinet/patch-1
[civicrm-core.git] / CRM / Upgrade / 3.1.alpha2.msg_template / message_templates / participant_confirm_html.tpl
CommitLineData
6a488035
TO
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 <tr>
41 <td>
42 <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
43 <tr>
44 <th {$headerStyle}>
45 {ts}Event Information and Location{/ts}
46 </th>
47 </tr>
48 <tr>
49 <td colspan="2" {$valueStyle}>
50 {$event.event_title}<br />
51 {$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}
52 </td>
53 </tr>
54 <tr>
55 <td {$labelStyle}>
56 {ts}Participant Role{/ts}:
57 </td>
58 <td {$valueStyle}>
59 {$participant.role}
60 </td>
61 </tr>
62
63 {if $isShowLocation}
64 <tr>
65 <td colspan="2" {$valueStyle}>
66 {if $event.location.address.1.name}
67 {$event.location.address.1.name}<br />
68 {/if}
69 {if $event.location.address.1.street_address}
70 {$event.location.address.1.street_address}<br />
71 {/if}
72 {if $event.location.address.1.supplemental_address_1}
73 {$event.location.address.1.supplemental_address_1}<br />
74 {/if}
75 {if $event.location.address.1.supplemental_address_2}
76 {$event.location.address.1.supplemental_address_2}<br />
77 {/if}
78 {if $event.location.address.1.city}
79 {$event.location.address.1.city} {$event.location.address.1.postal_code}
80 {if $event.location.address.1.postal_code_suffix}
81 - {$event.location.address.1.postal_code_suffix}
82 {/if}
83 {/if}
84 </td>
85 </tr>
86 {/if}
87
88 {if $event.location.phone.1.phone || $event.location.email.1.email}
89 <tr>
90 <td colspan="2" {$labelStyle}>
91 {ts}Event Contacts:{/ts}
92 </td>
93 </tr>
94 {foreach from=$event.location.phone item=phone}
95 {if $phone.phone}
96 <tr>
97 <td {$labelStyle}>
98 {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
99 </td>
100 <td {$valueStyle}>
101 {$phone.phone}
102 </td>
103 </tr>
104 {/if}
105 {/foreach}
106 {foreach from=$event.location.email item=eventEmail}
107 {if $eventEmail.email}
108 <tr>
109 <td {$labelStyle}>
110 {ts}Email{/ts}
111 </td>
112 <td {$valueStyle}>
113 {$eventEmail.email}
114 </td>
115 </tr>
116 {/if}
117 {/foreach}
118 {/if}
119
120 {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
121 <tr>
122 <td colspan="2" {$valueStyle}>
123 <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
124 </td>
125 </tr>
126
127 {if $contact.email}
128 <tr>
129 <th {$headerStyle}>
130 {ts}Registered Email{/ts}
131 </th>
132 </tr>
133 <tr>
134 <td colspan="2" {$valueStyle}>
135 {$contact.email}
136 </td>
137 </tr>
138 {/if}
139
140 {if $register_date}
141 <tr>
142 <td {$labelStyle}>
143 {ts}Registration Date{/ts}
144 </td>
145 <td {$valueStyle}>
146 {$participant.register_date|crmDate}
147 </td>
148 </tr>
149 {/if}
150
151 </table>
152 </td>
153 </tr>
154
155 <tr>
156 <td>
157 <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
158 </td>
159 </tr>
160
161 </table>
162</center>
163
164</body>
165</html>