-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettings.ascx
261 lines (261 loc) · 13.6 KB
/
Settings.ascx
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<%@ Control Language="C#" AutoEventWireup="True" Inherits="Engage.Dnn.Locator.Settings" CodeBehind="Settings.ascx.cs" %>
<%@ Register TagPrefix="dnn" TagName="label" Src="~/controls/labelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="sectionhead" Src="~/controls/sectionheadcontrol.ascx" %>
<%@ Register TagPrefix="ajaxToolkit" Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" %>
<%-- TODO: Localize table summaries --%>
<dnn:sectionhead ID="dshMapProvider" runat="Server" CssClass="Head" Section="tblMapProvider" ResourceKey="dshMapProvider" IsExpanded="True" IncludeRule="true" />
<table id="tblMapProvider" runat="server" cellspacing="0" cellpadding="0" style="padding-bottom: 20px;" border="0" summary="Module Mode">
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblMapProviders" ResourceKey="lblMapProviders" runat="server" />
</td>
<td width="350">
<asp:RadioButtonList ID="ProviderTypeRadioButtonList" CssClass="Normal" runat="server" AutoPostBack="true" RepeatDirection="horizontal" Width="200px" />
<div>
<asp:Label ID="lblApiMapProvider" CssClass="Normal" runat="server" resourceKey="lblApiMapProvider" />
</div>
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
</td>
<td width="350">
<asp:CustomValidator ID="ProviderTypeValidator" runat="server" CssClass="Normal" ResourceKey="ProviderTypeValidator" />
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblAPIKey" ResourceKey="lblAPIKey" runat="server" />
</td>
<td width="350">
<asp:TextBox CssClass="Normal" ID="txtApiKey" runat="server" Columns="55" />
<div>
<asp:Label ID="lblApiInstructions" CssClass="Normal" runat="server" resourceKey="lblApiInstructions" />
</div>
<asp:CustomValidator ID="ApiKeyValidator" runat="server" CssClass="Normal" resourcekey="ApiKeyValidator"/>
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblLocatorCountry" runat="server" Visible="true" ResourceKey="lblLocatorCountry" />
</td>
<td width="350" class="Normal">
<div>
<asp:DropDownList ID="ddlLocatorCountry" runat="server" CssClass="Normal" />
</div>
<asp:CustomValidator ID="LocatorCountryValidator" runat="server" ControlToValidate="ddlLocatorCountry" ResourceKey="LocatorCountryValidator" />
</td>
</tr>
</table>
<dnn:sectionhead ID="dshDisplaySetting" runat="Server" CSSClass="Head" section="tblDisplaySettings" resourcekey="dshDisplaySetting" IsExpanded="true" IncludeRule="true" />
<table id="tblDisplaySettings" runat="server" cellspacing="0" cellpadding="0" style="padding-bottom: 20px;" border="0" summary="Module Mode">
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblSearchTitle" ResourceKey="lblSearchTitle" runat="server" />
</td>
<td width="350">
<asp:TextBox CssClass="Normal" ID="txtSearchTitle" runat="server" Columns="55" />
<div>
<asp:Label CssClass="Normal" ID="lblSearchInst" runat="server" resourceKey="lblSearchInst" />
</div>
<br />
</td>
</tr>
<tr>
<td class="SubHead">
<dnn:label ID="lblDefaultDisplay" runat="server" ResourceKey="lblDefaultDisplay" />
</td>
<td width="350">
<asp:RadioButton ID="rbSearch" runat="server" CssClass="Normal" GroupName="rbDefaultDisplay" resourcekey="rbSearch" AutoPostBack="true"/>
<asp:RadioButton ID="rbDisplayAll" runat="server" CssClass="Normal" GroupName="rbDefaultDisplay" resourcekey="rbDisplayAll" AutoPostBack="true" />
<asp:RadioButton ID="rbShowMap" runat="server" CssClass="Normal" GroupName="rbDefaultDisplay" resourcekey="rbShowMap" AutoPostBack="true" />
</td>
</tr>
<tr>
<td class="SubHead">
<dnn:label ID="lblAlwaysShowSearch" runat="server" ResourceKey="lblAlwaysShowSearch" />
</td>
<td>
<asp:CheckBox ID="AlwaysShowSearchCheckBox" runat="server" Enabled="false" />
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblShowLocationDetails" runat="server" ResourceKey="lblShowLocationDetails" />
</td>
<td width="350">
<asp:RadioButton ID="LocationDetailsSamePageRadioButton" runat="server" GroupName="rbLocationDetails" resourcekey="rbSamePage" CssClass="Normal" AutoPostBack="true" />
<asp:RadioButton ID="LocationDetailSeparatePageRadioButton" runat="server" GroupName="rbLocationDetails" resourcekey="rbDetailsPage" CssClass="Normal" AutoPostBack="true" />
<asp:RadioButton ID="NoLocationDetailsRadioButton" runat="server" GroupName="rbLocationDetails" resourcekey="rbNoDetails" CssClass="Normal" AutoPostBack="true" />
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="LocationsPerPageLabel" runat="server" ResourceKey="lblLocationsPerPage" />
</td>
<td width="350">
<asp:TextBox ID="LocationsPerPageTextBox" runat="server" CssClass="NormalTextBox" />
<asp:CompareValidator runat="server" ControlToValidate="LocationsPerPageTextBox" CssClass="Normal" ResourceKey="LocationsPerPageIntegerValidator" Type="Integer" Operator="DataTypeCheck" />
</td>
</tr>
<tr>
<td class="SubHead">
<dnn:label ID="lblLocationRating" runat="server" ResourceKey="lblLocationRating" />
</td>
<td>
<asp:CheckBox ID="AllowRatingsCheckBox" runat="server" Enabled="false" />
</td>
</tr>
<tr>
<td class="SubHead">
<dnn:label ID="lblLocationComments" runat="server" ResourceKey="lblLocationComments" />
</td>
<td>
<asp:CheckBox ID="AllowCommentsCheckBox" runat="server" Enabled="false" AutoPostBack="True" />
</td>
</tr>
<tr>
<td class="SubHead">
<dnn:label ID="lblModerateComments" runat="server" ResourceKey="lblModerateComments" />
</td>
<td>
<asp:CheckBox ID="ModerateCommentsCheckBox" runat="server" Enabled="false" />
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblMapType" runat="server" ResourceKey="lblMapType" />
</td>
<td width="350">
<asp:RadioButtonList ID="rblMapDisplayType" runat="server" CssClass="Normal" RepeatDirection="horizontal">
<asp:ListItem Value="Normal" resourcekey="rbMapDisplayNormal" />
<asp:ListItem Value="Satellite" resourcekey="rbMapDisplaySatellite" />
<asp:ListItem Value="Hybrid" resourcekey="rbMapDisplayHybrid" />
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblLocationType" ResourceKey="lblLocationType" runat="server" />
</td>
<td width="350">
<div id="dvLocationType" runat="server" visible="true">
<asp:ListBox ID="lbLocationType" runat="server" SelectionMode="Multiple" Width="150px" CssClass="Normal" />
</div>
</td>
</tr>
</table>
<dnn:sectionhead ID="dshSearchSettings" runat="Server" CSSClass="Head" section="tblSearchSettings" resourcekey="tblSearchSettings" IsExpanded="true" IncludeRule="true" />
<table id="tblSearchSettings" runat="server" cellspacing="0" cellpadding="0" style="padding-bottom: 20px;" border="0" summary="Module Mode">
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:Label ID="lblLocatorModules" ResourceKey="lblLocatorModules" runat="server" />
</td>
<td width="350">
<asp:GridView ID="gvTabModules" runat="server" GridLines="vertical" AllowPaging="false" AutoGenerateColumns="false" EnableViewState="true" Width="450px">
<Columns>
<asp:TemplateField HeaderText="Page Title" ControlStyle-Width="60px">
<ItemTemplate>
<asp:RadioButton ID="LocatorModuleRadioButton" runat="server" AutoPostBack="true" GroupName="LocatorModuleRadioButtons" OnCheckedChanged="LocatorModuleRadioButtons_CheckChanged" CssClass="Normal" Text='<%# Eval("Title") %>' />
</ItemTemplate>
<ItemStyle CssClass="Normal" />
</asp:TemplateField>
<asp:TemplateField HeaderText="TabId" HeaderStyle-Width="50px" ControlStyle-Width="50px">
<ItemTemplate>
<asp:Label ID="lblTabId" runat="server" Text='<%# Eval("TabId") %>'/>
</ItemTemplate>
<ItemStyle CssClass="Normal" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Module Title" ControlStyle-Width="150px">
<ItemTemplate>
<asp:Label ID="lblModuleTitle" runat="server" Text='<%# Eval("ModuleTitle") %>'/>
</ItemTemplate>
<ItemStyle CssClass="Normal" Width="200px" />
</asp:TemplateField>
</Columns>
<SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="#eeeeee" />
<RowStyle BackColor="#f8f8f8" ForeColor="Black" />
</asp:GridView>
<asp:CustomValidator ID="SearchResultsModuleValidator" runat="server" CssClass="Normal" ResourceKey="SearchResultsModuleValidator" />
</td>
</tr>
<tr>
<td class="SubHead">
<dnn:Label ID="lblSearchOptions" runat="server" ResourceKey="lblSearchOptions" />
</td>
<td>
<table class="Normal">
<tr>
<td>
<asp:CheckBox ID="chkAddress" runat="server" resourcekey="chkAddress" />
</td>
</tr>
<tr>
<td>
<asp:CheckBox ID="chkCityRegion" runat="server" resourcekey="chkCityState" />
<asp:CheckBox ID="chkPostalCode" runat="server" Checked="true" resourcekey="chkPostalCode" />
</td>
</tr>
<tr>
<td>
<asp:CheckBox ID="chkCountry" runat="server" resourcekey="chkCountry" />
</td>
</tr>
</table>
<asp:CustomValidator ID="SearchOptionsValidator" runat="server" CssClass="Normal" resourcekey="cvSearchOptions" />
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label id="lblOptional" resourcekey="lblOptional" runat="server" />
</td>
<td width="350">
<div id="dvAddress">
<asp:RadioButtonList ID="SearchRestrictionsRadioButtonList" runat="server" CssClass="Normal" AutoPostBack="true" RepeatDirection="horizontal">
<asp:ListItem Value="Country" resourcekey="liSearchRestrictionCountry" />
<asp:ListItem Value="Radius" resourcekey="liSearchRestrictionRadius" />
<asp:ListItem Value="None" resourcekey="liSearchRestrictionNone" />
</asp:RadioButtonList>
</div>
<div>
<asp:Label ID="lblOptionalInst" CssClass="Normal" runat="server" resourceKey="lblOptionalInst" />
</div>
</td>
</tr>
<tr id="RadiusOptionsRow" runat="server">
<td class="SubHead" width="150" valign="top">
<dnn:label ResourceKey="DefaultRadiusLabel" runat="server" />
</td>
<td width="350">
<asp:DropDownList ID="DefaultRadiusDropDownList" runat="server">
<asp:ListItem Text="5" />
<asp:ListItem Text="10" />
<asp:ListItem Text="25" />
<asp:ListItem Text="50" />
<asp:ListItem Text="100" />
</asp:DropDownList>
<asp:CheckBox ID="IncludeUnlimitedMilesRadiusCheckBox" runat="server" AutoPostBack="true" ResourceKey="IncludeUnlimitedMilesRadiusCheckBox.Text" />
</td>
</tr>
</table>
<dnn:sectionhead ID="dshSubmissionSettings" runat="Server" CSSClass="Head" section="tblSubmissionSettings" resourcekey="dshSubmissionSettings" IsExpanded="true" IncludeRule="true" />
<table id="tblSubmissionSettings" runat="server" cellspacing="0" cellpadding="0" style="padding-bottom: 20px;" border="0" summary="Module Mode">
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblAllowSubmissions" runat="server" ResourceKey="lblAllowSubmissions" />
</td>
<td width="350">
<asp:CheckBox ID="AllowLocationSubmissionsCheckBox" runat="server" AutoPostBack="True" />
</td>
</tr>
<tr>
<td class="SubHead" width="150" valign="top">
<dnn:label ID="lblSubmissionModeration" runat="server" ResourceKey="lblSubmissionModeration" />
</td>
<td width="350">
<asp:CheckBox ID="chkModerateLocations" runat="server" Enabled="False" />
</td>
</tr>
</table>