-
Notifications
You must be signed in to change notification settings - Fork 1
/
Thanks.vbhtml
71 lines (67 loc) · 3.27 KB
/
Thanks.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
65
66
67
68
69
70
71
@Code
' Handle user request to swap theme
If Not Request.QueryString("Theme") Is Nothing Then
Dim swapTo As String = Request.QueryString("Theme")
InitializeApplication.SwapTheme(swapTo)
End If
' set page theme and title properties
Layout = Helpers.SetTheme().ToString
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 Class="row">
<div class="col-md-12">
<div id="form-container">
<div class="forms">
@If RazorSmartMailer.eMailAttachments.Count > 0 Then
@<div Class="files">
<div Class="thanks_lbl">@HttpContext.Current.Application("eMailAttachments")</div>
<div class="thanks_field">
@For i = 0 To RazorSmartMailer.eMailAttachments.Count - 1
Dim fileName As String = RazorSmartMailer.eMailAttachments(i).ToString()
@Html.Raw(Path.GetFileName(fileName) & "<br />")
Next
</div>
</div>
RazorSmartMailer.eMailAttachments.Clear()
End If
<div class="name">
<div class="thanks_lbl">@HttpContext.Current.Application("FormNameLbl")</div>
<div class="thanks_field">@name</div>
</div>
<div class="address">
<div class="thanks_lbl">@HttpContext.Current.Application("FormAddressLbl")</div>
<div class="thanks_field">@address</div>
</div>
<div class="email">
<div class="thanks_lbl">@HttpContext.Current.Application("FormEmailLbl")</div>
<div class="thanks_field">@email</div>
</div>
<div class="phone">
<div class="thanks_lbl">@HttpContext.Current.Application("FormPhoneLbl")</div>
<div class="thanks_field">@phone</div>
</div>
<div class="city">
<div class="thanks_lbl">@HttpContext.Current.Application("FormCityLbl"), @HttpContext.Current.Application("FormStateLbl") @HttpContext.Current.Application("FormZipCodeLbl")</div>
<div class="thanks_field">@city, @state @zipcode</div>
</div>
<div class="message">
<div class="thanks_lbl">@HttpContext.Current.Application("FormMessageLbl")</div>
<div class="thanks_field">@message</div>
</div>
</div>
</div>
</div>
</div>