forked from stetard/DNN.Repository
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Settings.ascx
290 lines (264 loc) · 14.5 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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx"%>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="Portal" TagName="URL" Src="~/controls/URLControl.ascx" %>
<%@ Control Language="C#" AutoEventWireup="false" Codebehind="Settings.ascx.cs" Inherits="DotNetNuke.Modules.Repository.Settings" TargetSchema="http://schemas.microsoft.com/intellisense/ie3-2nav3-0" %>
<table cellSpacing="0" cellPadding="0" border="0" class="normal" style="width: 800px;">
<!-- module description -->
<tr>
<td Width="200"><dnn:label id="plDescription" runat="server" controlname="txtDesktopHTML" suffix=":"></dnn:label></td>
<td class="repSettingTop"><dnn:texteditor id="teContent" runat="server" Width="600" Height="350"></dnn:texteditor><br /></td>
</tr>
<!-- categories -->
<tr>
<td><dnn:label id="plCategory" runat="server" controlname="txtNewCategory" suffix=":"></dnn:label></td>
<td valign="top" class="repSetting">
<asp:Table ID="tblCategories" Runat="server">
<asp:TableRow>
<asp:TableCell HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal" ColumnSpan="2">
<asp:DropDownList ID="ddlParentCategory" Runat="server" CssClass="normal" width="400" AutoPostBack="True"></asp:DropDownList><br />
<asp:TextBox ID="txtNewCategory" Runat="server" CssClass="normal" TextMode="SingleLine" Width="392"></asp:TextBox>
<asp:LinkButton ID="lbAddCategory" Runat="server" CssClass="normal">Add NEW Category</asp:LinkButton>
<asp:LinkButton ID="lbCancelCategory" Runat="server" CssClass="normal" Visible="False">CANCEL</asp:LinkButton>
<br />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell Width="400" HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal">
<asp:ListBox ID="lstCategories" Runat="server" CssClass='normal"' Width="400" DataTextField="Category"
DataValueField="ItemId"></asp:ListBox>
<br />
</asp:TableCell>
<asp:TableCell Width="100%" HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal">
<asp:imagebutton id="cmdUp" runat="server" AlternateText="Move Category Up" CommandName="up" ImageUrl="~/images/up.gif"
BorderColor="white" BorderWidth="0"></asp:imagebutton>
<br />
<asp:imagebutton id="cmdDown" runat="server" AlternateText="Move Category Down" CommandName="down"
ImageUrl="~/images/dn.gif" BorderColor="white" BorderWidth="0"></asp:imagebutton>
<br />
<asp:imagebutton id="cmdEdit" runat="server" AlternateText="Edit Category" ImageUrl="~/images/edit.gif"
BorderColor="white" BorderWidth="0"></asp:imagebutton>
<br />
<asp:imagebutton id="cmdDelete" runat="server" AlternateText="Delete Category" ImageUrl="~/images/delete.gif"
BorderColor="white" BorderWidth="0"></asp:imagebutton>
<br />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<asp:Label ID="lblCategoryMsg" Runat="server" CssClass="normalred"></asp:Label>
<br />
</td>
</tr>
<tr>
<td><dnn:label id="lblAllFiles" runat="server" controlname="cbAllFiles" suffix=":"></dnn:label></td>
<td class="repSetting"><asp:CheckBox ID="cbAllFiles" Runat="server" CssClass="normal" Text="Allow user to view All Files" /><br /><br /></td>
</tr>
<tr>
<td><dnn:label id="plAttribute" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:Table ID="tblAtrributes" Runat="server" width="100%">
<asp:TableRow>
<asp:TableCell HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal" ColumnSpan="2">
<asp:TextBox ID="txtNewAttribute" Runat="server" CssClass="normal" TextMode="SingleLine" Width="150"></asp:TextBox>
<asp:LinkButton ID="lbAddAttribute" Runat="server" CssClass="normal">Add NEW Attribute</asp:LinkButton>
<asp:LinkButton ID="lbCancelAttribute" Runat="server" CssClass="normal" Visible="False">CANCEL</asp:LinkButton>
<br />
</asp:TableCell>
<asp:TableCell HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal" ColumnSpan="2">
<asp:TextBox ID="txtNewValue" Runat="server" CssClass="normal" TextMode="SingleLine" Width="150"></asp:TextBox>
<asp:LinkButton ID="lbAddValue" Runat="server" CssClass="normal">Add NEW Value</dnn:label></asp:LinkButton>
<asp:LinkButton ID="lbCancelValue" Runat="server" CssClass="normal" Visible="False">CANCEL</asp:LinkButton>
<br />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell Width="205" HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal">
<asp:ListBox ID="lstAttributes" Runat="server" CssClass='normal"' Width="300" DataTextField="AttributeName"
DataValueField="ItemId" AutoPostBack="True"></asp:ListBox>
<br />
</asp:TableCell>
<asp:TableCell Width="100%" HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal">
<asp:imagebutton id="cmdEditAttr" runat="server" AlternateText="Edit Attribute" ImageUrl="~/images/edit.gif"
BorderColor="white" BorderWidth="0"></asp:imagebutton>
<br />
<asp:imagebutton id="cmdDeleteAttr" runat="server" AlternateText="Delete Attribute" ImageUrl="~/images/delete.gif"
BorderColor="white" BorderWidth="0"></asp:imagebutton>
<br />
</asp:TableCell>
<asp:TableCell Width="205" HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal">
<asp:ListBox ID="lstValues" Runat="server" CssClass='normal"' Width="300" DataTextField="ValueName"
DataValueField="ItemId"></asp:ListBox>
<br />
</asp:TableCell>
<asp:TableCell Width="100%" HorizontalAlign="Left" VerticalAlign="Top" CssClass="normal">
<asp:imagebutton id="cmdEditValue" runat="server" AlternateText="Edit Value" ImageUrl="~/images/edit.gif"
BorderColor="white" BorderWidth="0"></asp:imagebutton>
<br />
<asp:imagebutton id="cmdDeleteValue" runat="server" AlternateText="Delete Value" ImageUrl="~/images/delete.gif"
BorderColor="white" BorderWidth="0"></asp:imagebutton>
<br />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
</td>
</tr>
<tr>
<td><dnn:label id="plDefaultSort" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:DropDownList ID="ddlDefaultSort" Runat="server" CssClass="normal" Width="200px">
<asp:ListItem Value="date">Last Updated</asp:ListItem>
<asp:ListItem Value="downloads">Downloads</asp:ListItem>
<asp:ListItem Value="rating">User Rating</asp:ListItem>
<asp:ListItem Value="title">Title</asp:ListItem>
<asp:ListItem Value="author">Author</asp:ListItem>
<asp:ListItem Value="cdate">Uploaded Date</asp:ListItem>
</asp:DropDownList>
<br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plPageSize" runat="server" controlname="txtPageSize" suffix=":"></dnn:label></td>
<td class="repSetting"><asp:TextBox ID="txtPageSize" Runat="server" CssClass="normal" Width="50" /><br /><br /></td>
</tr>
<tr>
<td><dnn:label id="plIsPersonal" runat="server" controlname="cbxIsPersonal" suffix=":"></dnn:label></td>
<td class="repSetting"><asp:CheckBox ID="cbxIsPersonal" runat="server" Checked="false" CssClass="normal" Text="" /><br /><br /></td>
</tr>
<tr>
<td><dnn:label id="plEmailOnUpload" runat="server" controlname="cbxEmailOnUpload" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:CheckBox ID="cbxEmailOnUpload" runat="server" Checked="false" CssClass="normal" Text="" />
<asp:TextBox ID="txtEmailOnUpload" runat="server" CssClass="normal" Text="" Width="350" /><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plEmailOnComment" runat="server" controlname="cbxEmailOnComment" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:CheckBox ID="cbxEmailOnComment" runat="server" Checked="false" CssClass="normal" Text="" />
<asp:TextBox ID="txtEmailOnComment" runat="server" CssClass="normal" Text="" Width="350" /><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plEmailOnDownload" runat="server" controlname="cbxEmailOnDownload" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:CheckBox ID="cbxEmailOnDownload" runat="server" Checked="false" CssClass="normal" Text="" />
<asp:TextBox ID="txtEmailOnDownload" runat="server" CssClass="normal" Text="" Width="350" /><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plSecurityRoles" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:label ID="lbModRole" Runat="server" CssClass="normalbold"></asp:label><br />
<asp:checkboxlist id="chkModerationRoles" runat="server" CssClass="normal" cellspacing="0" cellpadding="0"
RepeatColumns="5"></asp:checkboxlist><br />
<asp:label ID="lbTrustedRole" Runat="server" CssClass="normalbold"></asp:label><br />
<asp:checkboxlist id="chkTrustedRoles" runat="server" CssClass="normal" cellspacing="0" cellpadding="0"
RepeatColumns="5"></asp:checkboxlist><br />
<asp:label ID="lbDownloadRole" Runat="server" CssClass="normalbold"></asp:label><br />
<asp:checkboxlist id="chkDownloadRoles" runat="server" CssClass="normal" cellspacing="0" cellpadding="0"
RepeatColumns="5"></asp:checkboxlist><br />
<asp:label ID="lbUploadRole" Runat="server" CssClass="normalbold"></asp:label><br />
<asp:checkboxlist id="chkUploadRoles" runat="server" CssClass="normal" cellspacing="0" cellpadding="0"
RepeatColumns="5"></asp:checkboxlist><br />
<asp:label ID="lbRatingRole" Runat="server" CssClass="normalbold"></asp:label><br />
<asp:checkboxlist id="chkRatingRoles" runat="server" CssClass="normal" cellspacing="0" cellpadding="0"
RepeatColumns="5"></asp:checkboxlist><br />
<asp:label ID="lbCommentRole" Runat="server" CssClass="normalbold"></asp:label><br />
<asp:checkboxlist id="chkCommentRoles" runat="server" CssClass="normal" cellspacing="0" cellpadding="0"
RepeatColumns="5"></asp:checkboxlist><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plAnonEditDelete" runat="server" controlname="cbxAnonEditDelete" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:CheckBox ID="cbxAnonEditDelete" runat="server" Checked="true" CssClass="normal" Text="" /><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plViewComments" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:DropDownList ID="ddlViewComments" Runat="server" CssClass="normal" Width="200px">
<asp:ListItem Value="roles">Only Authorized Roles</asp:ListItem>
<asp:ListItem Value="all">All Users</asp:ListItem>
</asp:DropDownList><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plViewRatings" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:DropDownList ID="ddlViewRatings" Runat="server" CssClass="normal" Width="200px">
<asp:ListItem Value="roles">Only Authorized Roles</asp:ListItem>
<asp:ListItem Value="all">All Users</asp:ListItem>
</asp:DropDownList><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plSkin" runat="server" controlname="cboTemplate" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:DropDownList ID="cboTemplate" Runat="server" CssClass="normal" Width="200px"></asp:DropDownList>
<br /><br />
</td>
</tr>
<tr style="display: none;">
<td><dnn:label id="plDataControl" runat="server" controlname="rblDataControl" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:RadioButtonList ID="rblDataControl" Runat="server" CssClass="normal" Width="200px" RepeatDirection="Horizontal">
<asp:ListItem Value="DataGrid">DataGrid</asp:ListItem>
<asp:ListItem Value="DataList">DataList</asp:ListItem>
</asp:RadioButtonList><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plWatermark" runat="server" controlname="txtWatermark" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:TextBox ID="txtWatermark" Runat="server" CssClass="normal" Width="250"></asp:TextBox><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plRatingImage" runat="server" controlname="cboRatingsImages" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:DropDownList ID="cboRatingsImages" Runat="server" CssClass="normal" Width="200px"></asp:DropDownList>
<br /><br /><br />
</td>
</tr>
<tr>
<td><dnn:label id="plNoImage" runat="server" controlname="ctlURL" suffix=":"></dnn:label></td>
<td class="repSetting">
<portal:url id="ctlURL" runat="server" width="250" ShowNewWindow="False" ShowLog="False" ShowTrack="False" ShowTabs="False" />
</td>
</tr>
<tr id="FileLocationRow1" runat="server" visible="false">
<td colspan="2"><h3>Manage File Locations (HOST Only)</h3><br /><br /></td>
</tr>
<tr id="FileLocationRow2" runat="server" visible="false">
<td><dnn:label id="plApprovedFolder" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting"><asp:TextBox ID="txtFolderLocation" Runat="server" CssClass="normal" Width="500"></asp:TextBox><br /><br /></td>
</tr>
<tr id="FileLocationRow3" runat="server" visible="false">
<td><dnn:label id="plUserFolders" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting">
<asp:CheckBox ID="cbUserFolders" Runat="server" CssClass="normal" Text="YES, store each user's approved files in their own folder" />
<br /><br />
</td>
</tr>
<tr id="FileLocationRow4" runat="server" visible="false">
<td><dnn:label id="plUnapprovedFolder" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting"><asp:TextBox ID="txtPendingLocation" Runat="server" CssClass="normal" Width="500"></asp:TextBox>
<br /><br /></td>
</tr>
<tr id="FileLocationRow5" runat="server" visible="false">
<td><dnn:label id="plAnonymousFolder" runat="server" suffix=":"></dnn:label></td>
<td class="repSetting"><asp:TextBox ID="txtAnonymousLocation" Runat="server" CssClass="normal" Width="500"></asp:TextBox>
<br /><br /></td>
</tr>
<tr>
<td colspan="2">
<br />
<asp:Label id="lblMessage" Runat="server" CssClass="normalred"></asp:Label>
<br />
</td>
</tr>
</table>