-
Notifications
You must be signed in to change notification settings - Fork 1
/
DownloadPack.ascx
73 lines (72 loc) · 4.16 KB
/
DownloadPack.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="DownloadPack.ascx.vb"
Inherits="DNNEurope.Modules.LocalizationEditor.DownloadPack" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<asp:Panel runat="server" ID="pnlHeader">
<h1>
<%=FriendlyName%> <%=Version%></h1>
</asp:Panel>
<asp:Panel ID="pnlTranslations" runat="server">
<table>
<tr>
<td>
<dnn:Label runat="server" ID="lblVersion" ControlName="ddVersion" Suffix=":" CssClass="SubHead" />
</td>
<td>
<asp:DropDownList runat="server" ID="ddVersion" DataValueField="Version" DataTextField="Version" AutoPostBack="true" />
</td>
</tr>
<tr>
<td>
<dnn:Label runat="server" ID="lblTotalTranslations" Suffix=":" CssClass="SubHead" />
</td>
<td>
<%=TotalItems%>
</td>
</tr>
</table>
<p style="margin-top: 20px;">
<asp:DataGrid ID="dgLocales" runat="server" GridLines="Horizontal" BorderWidth="1px" CellPadding="4" CellSpacing="0" AutoGenerateColumns="False" CssClass="le_tbl" HeaderStyle-CssClass="SubHead" ItemStyle-CssClass="Normal">
<Columns>
<asp:BoundColumn DataField="Locale" HeaderText="Locale" />
<asp:BoundColumn DataField="PercentComplete" HeaderText="PercentComplete" DataFormatString="{0:F0}" />
<asp:TemplateColumn HeaderText="PartnerName">
<ItemTemplate>
<a href="<%#DataBinder.Eval(Container.DataItem, "PartnerUrl")%>" target="_blank"><%#DataBinder.Eval(Container.DataItem, "PartnerName")%></a>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="LastModified" HeaderText="LastModified" DataFormatString="{0:d}" />
<asp:TemplateColumn Visible="true" HeaderText="AvailablePacks">
<ItemTemplate>
<%#DownloadPackList(DataBinder.Eval(Container.DataItem, "PackUrl"), ObjectId, DataBinder.Eval(Container.DataItem, "RemoteObjectId"), DataBinder.Eval(Container.DataItem, "Locale"), Version)%>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</p>
</asp:Panel>
<asp:Panel runat="server" ID="pnlVersions">
<h2><%=(New Globalization.CultureInfo(Locale)).NativeName %></h2>
<asp:DataGrid ID="dgVersions" runat="server" GridLines="Horizontal" BorderWidth="1px" CellPadding="4" CellSpacing="0" AutoGenerateColumns="False" CssClass="le_tbl" HeaderStyle-CssClass="SubHead" ItemStyle-CssClass="Normal">
<Columns>
<asp:BoundColumn DataField="Version" HeaderText="Version" />
<asp:BoundColumn DataField="PercentComplete" HeaderText="PercentComplete" DataFormatString="{0:F0}" />
<asp:TemplateColumn HeaderText="Download">
<ItemTemplate>
<a href="<%=ResolveUrl("~/DesktopModules/DNNEurope/LocalizationEditor/Pack.aspx")%>?ObjectId=<%#DataBinder.Eval(Container.DataItem, "ObjectId")%>&Version=<%#DataBinder.Eval(Container.DataItem, "Version")%>&Locale=<%=Locale%>"
title="<%=DotNetNuke.Services.Localization.Localization.GetString("Download", LocalResourceFile) %>"
style="display: <%#IIF(DataBinder.Eval(Container.DataItem, "PercentComplete")>0,"block","none")%>">
<img src="<%=ResolveUrl("~/images/eip_save.gif")%>" border="0" alt="<%=DotNetNuke.Services.Localization.Localization.GetString("Download",LocalResourceFile) %>" />
</a>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</asp:Panel>
<ul class="dnnActions dnnClear">
<li>
<asp:HyperLink runat="server" ID="cmdReturn" resourcekey="cmdReturn" Text="Return" CssClass="dnnPrimaryAction" />
</li>
</ul>
<p style="margin-top: 20px;">
<asp:Label runat="server" ID="lblNoResourceFiles" resourcekey="lblNoResourceFiles" Visible="false" />
</p>