-
Notifications
You must be signed in to change notification settings - Fork 20
/
settings.ascx
76 lines (74 loc) · 3.32 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
<%@ Control Language="C#" Inherits="DotNetNuke.Modules.UserDefinedTable.Settings" AutoEventWireup="True" CodeBehind="Settings.ascx.cs" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<div style="margin-top: 14px;">
<p>
<asp:CheckBox ID="chkEditOwnData" runat="server" CssClass="Normal" resourcekey="EditOwnData"
Text="User is only allowed to manipulate his own items."></asp:CheckBox></p>
<p>
<asp:CheckBox ID="chkInputFiltering" Text="Filter input for markup code or script input. Note: Filtering is always enabled for Anonymous."
resourcekey="InputFiltering" CssClass="Normal" runat="server"></asp:CheckBox></p>
<p>
<asp:CheckBox ID="chkDisplayColumns" Text="Negate permission/feature DisplayColumns for Administators."
resourcekey="DisplayColumns" CssClass="Normal" runat="server"></asp:CheckBox></p>
<p>
<asp:CheckBox ID="chkHideSystemColumns"
resourcekey="DisplaySystemColumns" CssClass="Normal" runat="server"></asp:CheckBox></p>
<p>
<asp:CheckBox ID="chkPrivateColumns" Text="Negate permission/feature PrivateColumns for Administators."
resourcekey="PrivateColumns" CssClass="Normal" runat="server"></asp:CheckBox></p>
<table cellspacing="4" cellpadding="0" border="0" class="Normal">
<tr>
<td>
<dnn:Label class="Normal" ID="lblUserRecordQuota" ResourceKey="plUserRecordQuota"
runat="server" Suffix=":" ControlName="txtUserRecordQuota" />
</td>
<td>
<asp:TextBox ID="txtUserRecordQuota" runat="server" CssClass="Normal" MaxLength="4"
Width="40" />
</td>
</tr>
<tr>
<td>
<dnn:Label class="Normal" id="lblForceCaptcha" runat="server" Suffix=":" ControlName="ddlCaptcha" />
</td>
<td>
<asp:DropDownList ID="ddlCaptcha" runat="server" CssClass="Normal" />
</td>
</tr>
<tr class="siteKeyRow" style="display:none;">
<td><dnn:Label class="Normal" id="lblSiteKey" runat="server" Suffix=":" ControlName="txtSiteKey" /></td>
<td><asp:TextBox ID="txtSiteKey" runat="server" /></td>
</tr>
<tr class="secretKeyRow" style="display:none;">
<td><dnn:Label class="Normal" id="lblSecretKey" runat="server" Suffix=":" ControlName="txtSecretKey" /></td>
<td><asp:TextBox ID="txtSecretKey" runat="server" /></td>
</tr>
</table>
</div>
<script type="text/javascript">
$(document).ready(function () {
FnlReCaptcha.update();
$('#<%=ddlCaptcha.ClientID %>').change(function () {
FnlReCaptcha.update();
});
});
var FnlReCaptcha = {
update: function () {
if ($('#<%=ddlCaptcha.ClientID%>').val() == "ReCaptcha")
{
this.showControls();
}
else {
this.hideControls();
}
},
showControls: function () {
$('.siteKeyRow').show('slow');
$('.secretKeyRow').show('slow');
},
hideControls: function () {
$('.siteKeyRow').hide('slow');
$('.secretKeyRow').hide('slow');
}
};
</script>