-
Notifications
You must be signed in to change notification settings - Fork 1
/
ManageObjects.ascx
73 lines (73 loc) · 3.07 KB
/
ManageObjects.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ManageObjects.ascx.vb" Inherits="DNNEurope.Modules.LocalizationEditor.ManageObjects" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<h2>
<asp:Label ID="lblImportObject" runat="server" resourcekey="lblImportObject" /></h2>
<table cellpadding="2" cellspacing="1">
<tr>
<td>
<dnn:Label ID="lblPackageFile" runat="server" ResourceKey="lblPackageFile" Suffix=":" />
</td>
<td>
<asp:FileUpload runat="server" ID="ctlUpload" />
</td>
<td>
<ul class="dnnActions dnnClear">
<li>
<asp:LinkButton ID="lbImportPackage" runat="server" resourcekey="lbImportPackage" Text="Import Package" CssClass="dnnSecondaryAction" /></li>
</ul>
</td>
</tr>
</table>
<p>
<asp:Label runat="server" ID="lblUploadError" CssClass="NormalRed" />
</p>
<ul class="dnnActions dnnClear">
<li>
<asp:LinkButton runat="server" ID="cmdReturn" resourcekey="cmdReturn" Text="Return"
CssClass="dnnPrimaryAction" CausesValidation="false" /></li>
</ul>
<h2>
<asp:Label ID="lblCurrentObjects" runat="server" resourcekey="lblCurrentObjects" /></h2>
<asp:DataList runat="server" ID="dlTranslateObjects" DataKeyField="ObjectId">
<HeaderTemplate>
<table cellpadding="2" cellspacing="1">
<tr align="left">
<th></th>
<th>
<%#DotNetNuke.Services.Localization.Localization.GetString("FriendlyName.Header", LocalResourceFile)%>
</th>
<th>
<%#DotNetNuke.Services.Localization.Localization.GetString("LastVersion.Header", LocalResourceFile)%>
</th>
<th></th>
<th>
<%#DotNetNuke.Services.Localization.Localization.GetString("ObjectName.Header", LocalResourceFile)%>
</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr align="left">
<td>
<% If CanDelete Then%>
<asp:ImageButton ID="cmdDeleteTranslateObject" runat="server" CausesValidation="false"
CommandName="Delete" ImageUrl="~/images/delete.gif" OnClientClick='<%# String.Concat("return confirm(""", DotNetNuke.Services.Localization.Localization.GetString("DeleteItem.Text", LocalResourceFile), """);") %>'
AlternateText="Delete" resourcekey="cmdDelete" />
<% End If %>
</td>
<td>
<%#DataBinder.Eval(Container.DataItem, "FriendlyName")%>
</td>
<td>
<%#DataBinder.Eval(Container.DataItem, "LastVersion")%>
</td>
<td>
</td>
<td>
<%#DataBinder.Eval(Container.DataItem, "ObjectName")%>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:DataList>