-
Notifications
You must be signed in to change notification settings - Fork 25
/
Settings.ascx
240 lines (239 loc) · 12.9 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
<%@ Control Language="C#" AutoEventWireup="true" Inherits="DotNetNuke.Modules.Reports.Settings"
CodeBehind="Settings.ascx.cs" %>
<%@ Register Src="../../controls/sectionheadcontrol.ascx" TagName="sectionheadcontrol"
TagPrefix="dnn" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="../../controls/LabelControl.ascx" %>
<%-- Data Source Settings Section Header --%>
<dnn:sectionheadcontrol id="dshDataSource" runat="server" resourcekey="DataSource.Section"
section="DataSourceSection" cssclass="Head" includerule="true" isexpanded="true"/>
<%-- Data Source Settings Section Body --%>
<div id="DataSourceSection" runat="Server">
<%-- Contains the Report Data Source Settings, only visible to Host Users --%>
<asp:MultiView ID="ReportsSettingsMultiView" runat="server">
<%-- This view is displayed if the user is not a Host User --%>
<asp:View ID="AccessDeniedView" runat="server">
<div style="text-align: center; width: 90%">
<asp:Image ID="ErrorImage" runat="server" ImageUrl="~/images/red-error.gif"/>
<asp:Label ID="ErrorMessage" runat="server" ResourceKey="SuperUsersOnly" CssClass="NormalRed"/>
</div>
</asp:View>
<%-- This view is displayed if the user is a Host User --%>
<asp:View ID="SuperUserView" runat="server">
<%-- Warning message, warns Host that this query will be run whenever a user browses to the page --%>
<div style="padding: 2px 0px 2px 0px; text-align: center;">
<div style="float: left; height: 100%">
<asp:Image ID="WarningImage" runat="server" ImageUrl="~/images/yellow-warning.gif"/>
</div>
<asp:Label ID="WarningMessage" runat="server" ResourceKey="WarningMessage" CssClass="NormalRed"/>
</div>
<%-- Table used to layout Data Source settings --%>
<table id="tblDataSource" runat="server" cellspacing="0" cellpadding="2" border="0"
summary="Report Data Source Settings Design Table" style="width: 100%">
<%-- Title of the Report --%>
<tr>
<td class="dnn_rpt_form_label">
<dnn:Label ID="lblTitle" runat="server" CssClass="SubHead" ControlName="txtTitle"
Suffix=":"/>
</td>
<td class="dnn_rpt_form_field">
<asp:TextBox ID="txtTitle" CssClass="NormalTextBox" Width="90%" runat="server"/>
</td>
</tr>
<%-- Description of the Report --%>
<tr>
<td class="dnn_rpt_form_label">
<dnn:Label ID="lblDescription" runat="server" CssClass="SubHead" ControlName="teDescription"
Suffix=":">
</dnn:Label>
</td>
<td class="dnn_rpt_form_field">
<asp:TextBox ID="txtDescription" CssClass="NormalTextBox" runat="server" Width="90%"
TextMode="MultiLine" Rows="5"/>
</td>
</tr>
<%-- Url Parameters used by the Report --%>
<tr>
<td class="dnn_rpt_form_label">
<dnn:Label ID="lblParameters" runat="server" CssClass="SubHead" ControlName="txtParameters"
Suffix=":">
</dnn:Label>
</td>
<td class="dnn_rpt_form_field">
<asp:TextBox ID="txtParameters" CssClass="NormalTextBox" runat="server" Width="90%"/>
</td>
</tr>
</table>
<%-- Data Source Settings --%>
<%-- Data Source Selector --%>
<div class="dnn_rpt_active_extension SubHead">
<dnn:Label ID="lblDataSource" runat="server" ControlName="DataSourceDropDown" Suffix=":"/>
</div>
<asp:DropDownList ID="DataSourceDropDown" runat="server" AutoPostBack="true" CssClass="Normal"
Width="90%" OnSelectedIndexChanged="DataSourceDropDown_SelectedIndexChanged"/>
<%-- Data Source Settings Host --%>
<div style="padding-top: 10px">
<%-- This view is displayed when no data source is configured --%>
<asp:MultiView ID="DataSourceSettings" runat="server">
<asp:View ID="DataSourceNotConfiguredView" runat="server">
<div style="text-align: center; width: 90%">
<asp:Image ID="DataSourceNotConfiguredImage" runat="server" ImageUrl="~/images/yellow-warning.gif"/>
<asp:Label ID="DataSourceNotConfiguredLabel" runat="server" ResourceKey="DataSourceNotConfigured"
CssClass="NormalRed"/>
</div>
</asp:View>
</asp:MultiView>
</div>
<%-- Test Data Source and Show Xml Source Button --%>
<div style="text-align: right; width: 90%;">
<asp:LinkButton ID="btnTestDataSource" CssClass="dnnSecondaryAction" runat="server" ResourceKey="btnTestDataSource"
CausesValidation="false" OnClick="btnTestQuery_Click"/>
<asp:LinkButton ID="btnShowXml" CssClass="dnnSecondaryAction" runat="server" ResourceKey="btnShowXml"
CausesValidation="false" OnClick="btnShowXml_Click"/>
</div>
<%-- Test Data Source Results Host --%>
<div runat="server" id="rowResults" visible="false" class="dnn_rpt_test_results">
<div style="float: left; height: 90%">
<asp:Image ID="imgQueryResults" runat="server"/>
</div>
<asp:Label ID="lblQueryResults" runat="server"/>
<br/>
<asp:LinkButton ID="btnHideTestResults" runat="server" CssClass="dnnSecondaryAction" ResourceKey="btnHideTestResults" OnClick="btnHideTestResults_Click"/>
</div>
<%-- Show Xml Source Host --%>
<div runat="server" id="rowXmlSource" visible="false" class="dnn_rpt_test_results">
<dnn:Label ID="lblXmlSource" runat="server" ControlName="txtXmlSource" Suffix=":" CssClass="SubHead"/>
<asp:TextBox ID="txtXmlSource" runat="server" ReadOnly="true" CssClass="NormalTextBox"
TextMode="MultiLine" Rows="7" Width="90%"/>
<br/>
<div style="text-align: center">
<asp:LinkButton ID="btnHideXmlSource" runat="server" CssClass="dnnSecondaryAction" ResourceKey="btnHideXmlSource" OnClick="btnHideXmlSource_Click"/>
</div>
</div>
<%-- Data Converters Settings Section Header --%>
<dnn:sectionheadcontrol ID="dshConvertersSettings" runat="server" ResourceKey="Converters.Section"
Section="ConvertersSection" CssClass="Head" IncludeRule="true" IsExpanded="true"/>
<%-- Data Filtering Settings Section Body --%>
<div id="ConvertersSection" runat="server">
<%-- Table used to layout Converter settings --%>
<table cellspacing="0" cellpadding="2" border="0" summary="Report Data Converter Settings Design Table"
style="width: 100%">
<%-- HtmlDecode Filter --%>
<tr>
<td class="dnn_rpt_form_label">
<dnn:Label CssClass="SubHead" ID="lblHtmlDecode" runat="server" ControlName="txtHtmlDecode"
Suffix=":">
</dnn:Label>
</td>
<td class="dnn_rpt_form_field">
<asp:TextBox ID="txtHtmlDecode" CssClass="NormalTextBox" runat="server" Width="90%"/>
</td>
</tr>
<%-- HtmlEncode Filter --%>
<tr>
<td class="dnn_rpt_form_label">
<dnn:Label CssClass="SubHead" ID="lblHtmlEncode" runat="server" ControlName="txtHtmlEncode"
Suffix=":">
</dnn:Label>
</td>
<td class="dnn_rpt_form_field">
<asp:TextBox ID="txtHtmlEncode" CssClass="NormalTextBox" runat="server" Width="90%"/>
</td>
</tr>
</table>
</div>
</asp:View>
<%-- SuperUserView --%>
</asp:MultiView>
<%-- ReportsSettingsMultiView --%>
</div>
<%-- Visualizer Settings Section Header --%>
<dnn:sectionheadcontrol id="dshVisualizerSettings" runat="server" resourcekey="Display.Section"
section="VisualizerSettingsOuter" cssclass="Head" includerule="true" isexpanded="true"/>
<%-- Visualizer Settings Section Body --%>
<div id="VisualizerSettingsOuter" runat="server">
<%-- Show Info Pane and Run On Demand Options --%>
<table cellspacing="0" cellpadding="2" border="0" summary="Report Display Settings Design Table"
style="width: 100%">
<%-- Cache Duration --%>
<tr>
<td class="dnn_rpt_form_label">
<dnn:label id="lblCacheDuration" runat="server" cssclass="SubHead" controlname="txtCacheDuration"
suffix=":">
</dnn:label>
</td>
<td class="dnn_rpt_form_field">
<asp:CheckBox ID="chkCaching" CssClass="NormalTextBox" runat="server"/>
<span id="spanCacheDuration" runat="server" class="Normal">
<asp:Label ID="Label1" runat="server" resourcekey="CacheFor.Text"/>
<asp:TextBox ID="txtCacheDuration" CssClass="NormalTextBox" Columns="5" runat="server"/>
<asp:Label ID="Label2" runat="server" resourcekey="Minutes.Text"/>
<div style="text-align: center; width: 90%">
<asp:Image ID="CacheWarningImage" runat="server" ImageUrl="~/images/yellow-warning.gif"/>
<asp:Label ID="CacheWarningLabel" runat="server" resourcekey="CacheWarning" CssClass="NormalRed"/>
</div>
</span>
</td>
</tr>
<tr>
<td class="dnn_rpt_form_label">
<dnn:label id="lblShowInfoPane" runat="server" cssclass="SubHead" controlname="chkShowInfoPane"
suffix=":">
</dnn:label>
</td>
<td class="dnn_rpt_form_field">
<asp:CheckBox ID="chkShowInfoPane" runat="server"/>
</td>
</tr>
<tr>
<td class="dnn_rpt_form_label">
<dnn:label id="lblShowControls" runat="server" cssclass="SubHead" controlname="chkShowControls"
suffix=":">
</dnn:label>
</td>
<td class="dnn_rpt_form_field">
<asp:CheckBox ID="chkShowControls" runat="server"/>
</td>
</tr>
<tr>
<td class="dnn_rpt_form_label">
<dnn:label id="lblAutoRunReport" runat="server" cssclass="SubHead" controlname="chkAutoRunReport"
suffix=":">
</dnn:label>
</td>
<td class="dnn_rpt_form_field">
<asp:CheckBox ID="chkAutoRunReport" runat="server"/>
</td>
</tr>
<tr>
<td class="dnn_rpt_form_label">
<dnn:label id="lblExportExcel" runat="server" cssclass="SubHead" controlname="chkExportExcel"
suffix=":">
</dnn:label>
</td>
<td class="dnn_rpt_form_field">
<asp:CheckBox ID="chkExportExcel" runat="server" />
</td>
</tr>
<tr>
<td class="dnn_rpt_form_label">
<dnn:label id="lblTokenReplace" runat="server" cssclass="SubHead" controlname="chkTokenReplace"
suffix=":">
</dnn:label>
</td>
<td class="dnn_rpt_form_field">
<asp:CheckBox ID="chkTokenReplace" runat="server"/>
</td>
</tr>
</table>
<%-- Visualizer Selector --%>
<div class="dnn_rpt_active_extension SubHead">
<dnn:label id="lblVisualizer" runat="server" controlname="VisualizerDropDown" suffix=":"/>
</div>
<asp:DropDownList ID="VisualizerDropDown" runat="server" AutoPostBack="true" CssClass="Normal"
Width="90%" OnSelectedIndexChanged="VisualizerDropDown_SelectedIndexChanged"/>
<%-- Visualizer Settings Host --%>
<div style="padding-top: 10px">
<asp:MultiView ID="VisualizerSettings" runat="server">
</asp:MultiView>
</div>
</div>