forked from fordnn/usersexportimport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainControl.ascx
134 lines (130 loc) · 7.26 KB
/
MainControl.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
<%@ Control Language="C#" Inherits="forDNN.Modules.UsersExportImport.MainControl" AutoEventWireup="true"
CodeBehind="MainControl.ascx.cs" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<script type="text/javascript">
function importProfileProperties(ctl1, ctl2)
{
if ($(ctl1).is(":checked"))
{
$(ctl2).prop('disabled', false);
}
else
{
$(ctl2).prop('disabled', true);
$(ctl2).prop('checked', false);
}
}
</script>
<div class="dnnForm" id="tabs-demo">
<ul class="dnnAdminTabNav">
<li><a href="#divExportUsers">
<asp:Label runat="server" ID="lblExportUsers" resourcekey="ExportUsers"></asp:Label></a></li>
<li><a href="#divImportUsers">
<asp:Label runat="server" ID="lblImportUsers" resourcekey="ImportUsers"></asp:Label></a></li>
</ul>
<div id="divExportUsers" class="dnnClear dnnForm">
<fieldset>
<div class="dnnFormItem">
<dnn:Label runat="server" ID="lblExportFileType" resourcekey="ExportFileType"></dnn:Label>
<asp:DropDownList runat="server" ID="ddlExportFileType" Style="width: 100px;">
<asp:ListItem Value="1" resourcekey="ExportFileType_1"></asp:ListItem>
<asp:ListItem Value="2" resourcekey="ExportFileType_2" Selected></asp:ListItem>
</asp:DropDownList>
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" id="lblIncludeSuperUsers" resourcekey="IncludeSuperUsers" AssociatedControlID="cbIncludeSuperUsers"></dnn:Label>
<asp:CheckBox runat="server" ID="cbIncludeSuperUsers" CssClass="normalCheckBox" />
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" id="lblIncludeDeleted" resourcekey="IncludeDeleted" AssociatedControlID="cbIncludeDeleted"></dnn:Label>
<asp:CheckBox runat="server" ID="cbIncludeDeleted" CssClass="normalCheckBox" />
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" id="lblIncludeNonAuthorised" resourcekey="IncludeNonAuthorised" AssociatedControlID="cbIncludeNonAuthorised"></dnn:Label>
<asp:CheckBox runat="server" ID="cbIncludeNonAuthorised" CssClass="normalCheckBox" />
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" id="lblExportRoles" resourcekey="ExportRoles" AssociatedControlID="cbExportRoles"></dnn:Label>
<asp:CheckBox runat="server" ID="cbExportRoles" CssClass="normalCheckBox" />
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" id="lblExportPasswords" resourcekey="ExportPasswords" AssociatedControlID="cbExportPasswords"></dnn:Label>
<asp:CheckBox runat="server" ID="cbExportPasswords" CssClass="normalCheckBox" />
</div>
<div>
<asp:Label runat="server" ID="lblExportPasswordsDisabled" resourcekey="ExportPasswordsDisabled" CssClass="NormalRed" Visible="false"></asp:Label>
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" ID="lblPropertiesToExport" resourcekey="PropertiesToExport"></dnn:Label>
<asp:CheckBox runat="server" ID="cbPropertiesToExport" CssClass="SubHead normalCheckBox" />
</div>
<div id="divPropertiesToExport">
<asp:CheckBoxList runat="server" ID="cblPropertiesToExport" RepeatDirection="Vertical" RepeatColumns="3" CssClass="normalCheckBox"></asp:CheckBoxList>
</div>
</fieldset>
<asp:LinkButton ID="btnExportUsers" runat="server" CssClass="dnnPrimaryAction" OnClick="btnExportUsers_Click"
resourcekey="ExportUsers"></asp:LinkButton>
</div>
<div id="divImportUsers" class="dnnClear dnnForm">
<fieldset>
<div class="dnnFormItem">
<dnn:Label ID="lblImport" runat="server" resourcekey="Import"></dnn:Label>
<input id="objFile" type="file" name="objFile" runat="server">
</div>
<div>
<asp:Label ID="lblMaxAllowedFileSize" runat="server" CssClass="NormalRed"></asp:Label>
</div>
<div class="dnnFormItem">
<dnn:Label ID="lblImportRoles" runat="server" resourcekey="ImportRoles"></dnn:Label>
<asp:RadioButtonList runat="server" ID="rblImportRoles">
<asp:ListItem Value="0" resourcekey="ImportRoles0" Selected></asp:ListItem>
<asp:ListItem Value="1" resourcekey="ImportRoles1"></asp:ListItem>
<asp:ListItem Value="2" resourcekey="ImportRoles2"></asp:ListItem>
</asp:RadioButtonList>
</div>
<div class="dnnFormItem">
<dnn:Label ID="lblImportProfileProperties" runat="server" resourcekey="ImportProfileProperties"></dnn:Label>
<asp:CheckBox runat="server" ID="cbImportProfileProperties" CssClass="normalCheckBox" Checked="true" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="lblCreateMissedProfileProperties" runat="server" resourcekey="CreateMissedProfileProperties"></dnn:Label>
<asp:CheckBox runat="server" ID="cbCreateMissedProfileProperties" CssClass="normalCheckBox" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="lblRandomPassword" runat="server" resourcekey="RandomPassword"></dnn:Label>
<asp:CheckBox runat="server" ID="cbRandomPassword" CssClass="normalCheckBox" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="lblForcePasswordChange" runat="server" resourcekey="ForcePasswordChange"></dnn:Label>
<asp:CheckBox runat="server" ID="cbForcePasswordChange" CssClass="normalCheckBox" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="lblEmailUser" runat="server" resourcekey="EmailUser"></dnn:Label>
<asp:CheckBox runat="server" ID="cbEmailUser" CssClass="normalCheckBox" />
</div>
</fieldset>
<div style="clear: both;">
<asp:LinkButton ID="btnImport" runat="server" CssClass="dnnPrimaryAction" OnClick="btnImport_Click"
resourcekey="ImportUsers"></asp:LinkButton>
</div>
<fieldset>
<div class="dnnFormItem">
<dnn:Label runat="server" ID="lblExamples" resourcekey="Examples"></dnn:Label>
<asp:HyperLink runat="server" ID="lnkExampleCSV" resourcekey="ExampleCSV" Target="_blank"></asp:HyperLink><br />
<asp:HyperLink runat="server" ID="lnkExampleXML" resourcekey="ExampleXML" Target="_blank"></asp:HyperLink>
</div>
</fieldset>
</div>
</div>
<div>
<asp:Label ID="lblResult" CssClass="NormalRed" runat="server"></asp:Label>
</div>
<div style="padding-top: 100px;">
<asp:Label ID="lblIcon" runat="server"></asp:Label>
</div>
<script type="text/javascript">
jQuery(function ($)
{
$('#tabs-demo').dnnTabs();
});
</script>