-
Notifications
You must be signed in to change notification settings - Fork 1
/
Users.ascx
77 lines (77 loc) · 3.05 KB
/
Users.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Users.ascx.vb" Inherits="DNNEurope.Modules.LocalizationEditor.Users" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<table cellpadding="2" cellspacing="0">
<tr class="Normal" valign="top">
<td>
<dnn:Label ID="lblUsername" runat="server" ControlName="lblUsername" ResourceKey="lblUsername" Suffix=":" />
</td>
<td>
<asp:TextBox runat="server" ID="txtUsername" Width="200" MaxLength="256" />
<asp:RequiredFieldValidator runat="server" ID="reqVal1" ControlToValidate="txtUsername"
resourcekey="Required.Error" Display="Dynamic" />
</td>
</tr>
<tr class="Normal" valign="top">
<td>
<dnn:Label ID="lblLocale" runat="server" ControlName="lblLocale" ResourceKey="lblLocale" Suffix=":" />
</td>
<td>
<asp:TextBox runat="server" ID="txtLocale" Width="50" />
<asp:RequiredFieldValidator runat="server" ID="reqVal2" ControlToValidate="txtLocale"
resourcekey="Required.Error" Display="Dynamic" />
<asp:RegularExpressionValidator runat="server" ID="regVal1" ControlToValidate="txtLocale"
ValidationExpression="^[a-z][a-z](-[A-Z][A-Z])?$" resourcekey="InvalidLocale.Error"
Display="Dynamic" />
</td>
</tr>
</table>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton runat="server" ID="cmdAdd" resourcekey="cmdAdd" Text="Add" CssClass="dnnPrimaryAction" /></li>
<li><asp:LinkButton runat="server" ID="cmdReturn" resourcekey="cmdReturn" Text="Return" CssClass="dnnSecondaryAction" CausesValidation="false" /></li>
</ul>
<p>
<asp:Label runat="server" ID="lblError" CssClass="NormalRed" /></p>
<asp:DataList runat="server" ID="dlUserPermissions" DataKeyField="PermissionId">
<HeaderTemplate>
<table cellpadding="2" cellspacing="1">
<tr>
<th>
</th>
<th>
<%#DotNetNuke.Services.Localization.Localization.GetString("User.Header", LocalResourceFile)%>
</th>
<th>
</th>
<th>
</th>
<th>
<%#DotNetNuke.Services.Localization.Localization.GetString("Locale.Header", LocalResourceFile)%>
</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<asp:ImageButton ID="cmdDeleteUserPermission" runat="server" CausesValidation="false"
CommandName="Delete" ImageUrl="~/images/delete.gif" OnClientClick='<%# String.Concat("return confirm(""", DotNetNuke.Services.Localization.Localization.GetString("DeleteItem.Text"), """);") %>'
AlternateText="Delete" resourcekey="cmdDelete" />
</td>
<td>
<%#DataBinder.Eval(Container.DataItem, "DisplayName")%>
(<%#DataBinder.Eval(Container.DataItem, "Username")%>)
</td>
<td>
</td>
<td>
</td>
<td>
<%#DataBinder.Eval(Container.DataItem, "Locale")%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:DataList>