-
Notifications
You must be signed in to change notification settings - Fork 1
/
contact_template.vbhtml
64 lines (62 loc) · 2.97 KB
/
contact_template.vbhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@Code
' Set page properties
Layout = HttpContext.Current.Application("EmailTheme")
PageData("Title") = HttpContext.Current.Application("ContactThanksHdr")
' Initialize page variables
Dim name As String = Request.QueryString("N")
Dim email As String = Request.QueryString("E")
Dim address As String = Request.QueryString("A")
Dim phone As String = Request.QueryString("P")
Dim city As String = Request.QueryString("C")
Dim state As String = Request.QueryString("S")
Dim zipcode As String = Request.QueryString("Z")
Dim message As String = Request.QueryString("M")
End Code
<hgroup class="title">
<h1>@PageData("Title")</h1>
<h2>@HttpContext.Current.Application("ContactThanksSubHdr")</h2>
</hgroup>
<div id="form-container">
<div class="forms">
<table>
@If RazorSmartMailer.EmbeddedAttachments.Count > 0 Then
@<tr>
<td Class="label"><div class="thanks_lbl">@HttpContext.Current.Application("eMailAttachments")</div></td>
<td>
<div class="thanks_field">
@For i = 0 To RazorSmartMailer.EmbeddedAttachments.Count - 1
Dim contentID As String = RazorSmartMailer.EmbeddedAttachments(i)
@<div class="embedded-image"><img src="cid:@contentID" /></div>
Next
</div>
</td>
</tr>
RazorSmartMailer.EmbeddedAttachments.Clear()
End If
<tr>
<td class="label"><div class="thanks_lbl">@HttpContext.Current.Application("FormNameLbl")</div></td>
<td><div class="thanks_field">@name</div></td>
</tr>
<tr>
<td><div class="thanks_lbl">@HttpContext.Current.Application("FormEmailLbl")</div></td>
<td><div class="thanks_field">@email</div></td>
</tr>
<tr>
<td><div class="thanks_lbl">@HttpContext.Current.Application("FormAddressLbl")</div></td>
<td><div class="thanks_field">@address</div></td>
</tr>
<tr>
<td><div class="thanks_lbl">@HttpContext.Current.Application("FormPhoneLbl")</div></td>
<td><div class="thanks_field">@phone</div></td>
</tr>
<tr>
<td><div class="thanks_lbl">@HttpContext.Current.Application("FormCityLbl"), @HttpContext.Current.Application("FormStateLbl") @HttpContext.Current.Application("FormZipCodeLbl")</div></td>
<td><div class="thanks_field">@city, @state @zipcode</div></td>
</tr>
<tr>
<td><div class="thanks_lbl">@HttpContext.Current.Application("FormMessageLbl")</div></td>
<td><div class="thanks_field">@message</div></td>
</tr>
</table>
</div>
</div>