-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAdmin.ascx
163 lines (149 loc) · 12.2 KB
/
Admin.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<%@ Import Namespace="Globals=DotNetNuke.Common.Globals" %>
<%@ Control Language="C#" Inherits="Engage.Dnn.Dashboard.Admin" AutoEventWireup="false" CodeBehind="Admin.ascx.cs" %>
<%@ Register TagPrefix="engage" TagName="DashboardItem" Src="Controls/DashboardItem.ascx" %>
<%@ Register TagPrefix="engage" TagName="ModuleMessage" Src="Controls/ModuleMessage.ascx" %>
<fieldset>
<legend class="SubHead"><asp:Label runat="server" ResourceKey="Users.Title" /> <asp:HyperLink runat="server" ID="AboutUsersLink" NavigateUrl="javascript:void(0);" CssClass="CommandButton" /></legend>
<engage:DashboardItem Id="NumberOfUsersRegisteredItem" runat="server" TitleResourceKey="NumberOfUsersRegisteredItem.Text" HasDateRange="true" />
<engage:DashboardItem Id="UniqueUsersLoggedInItem" runat="server" TitleResourceKey="UniqueUsersLoggedInItem.Text" HasDateRange="true" />
<engage:DashboardItem Id="NumberOfRolesInPortalItem" runat="server" TitleResourceKey="NumberOfRolesInPortalItem.Text" NavigateLinkResourceKey="Security Roles Link.Text" />
<engage:ModuleMessage runat="server" ID="AboutUsersMessage" ResourceKey="Users.Text" CssClass="Normal" MessageType="Information" style="display:none;" />
</fieldset>
<fieldset>
<legend class="SubHead"><asp:Label runat="server" ResourceKey="Pages and Content.Title" /> <asp:HyperLink runat="server" ID="AboutPagesAndContentLink" NavigateUrl="javascript:void(0);" CssClass="CommandButton" /></legend>
<engage:DashboardItem Id="NumberOfPagesInPortalItem" runat="server" TitleResourceKey="NumberOfPagesInPortalItem.Text" NavigateLinkResourceKey="Pages Link.Text" />
<engage:DashboardItem Id="NumberInRecycleBinItem" runat="server" TitleResourceKey="NumberInRecycleBinItem.Text" NavigateLinkResourceKey="Recycle Bin Link.Text" />
<engage:DashboardItem Id="EmptyPagesItem" runat="server" TitleResourceKey="EmptyPagesItem.Text" DetailsPanelId="EmptyPagesPanel" />
<asp:Panel ID="EmptyPagesPanel" runat="server" CssClass="detailsTableWrapper">
<asp:GridView ID="EmptyPagesGridView" runat="server" AutoGenerateColumns="false" CssClass="detailsTable Normal" AlternatingRowStyle-CssClass="detailsTableAltRow" HeaderStyle-CssClass="detailsTableHeader" RowStyle-CssClass="detailsTableRow" GridLines="None">
<Columns>
<asp:BoundField DataField="TabId" HeaderText="Tab ID" ItemStyle-HorizontalAlign="Center"/>
<asp:TemplateField HeaderText="Page Link">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# Globals.NavigateURL((int)Eval("TabId")) %>'>
<%# Eval("TabName") %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Page Settings" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# GetPageEditUrl((int)Eval("TabId")) %>' ImageUrl="~/images/action_settings.gif" ResourceKey="PageSettings.Alt"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate><asp:Label ResourceKey="None.Text" runat="server" /></EmptyDataTemplate>
</asp:GridView>
</asp:Panel>
<engage:DashboardItem Id="AdministratorPagesItem" runat="server" TitleResourceKey="AdministratorPagesItem.Text" DetailsPanelId="AdministratorPagesPanel" />
<asp:Panel ID="AdministratorPagesPanel" runat="server" CssClass="detailsTableWrapper">
<asp:GridView ID="AdministratorPagesGridView" runat="server" AutoGenerateColumns="false" CssClass="detailsTable Normal" AlternatingRowStyle-CssClass="detailsTableAltRow" HeaderStyle-CssClass="detailsTableHeader" RowStyle-CssClass="detailsTableRow" GridLines="None">
<Columns>
<asp:BoundField DataField="TabId" HeaderText="Tab ID" ItemStyle-HorizontalAlign="Center"/>
<asp:TemplateField HeaderText="Page Link">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# Globals.NavigateURL((int)Eval("TabId")) %>'>
<%# Eval("TabName") %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Page Settings" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# GetPageEditUrl((int)Eval("TabId")) %>' ImageUrl="~/images/action_settings.gif" ResourceKey="PageSettings.Alt"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate><asp:Label ResourceKey="None.Text" runat="server" /></EmptyDataTemplate>
</asp:GridView>
</asp:Panel>
<engage:DashboardItem Id="AdministratorModulesItem" runat="server" TitleResourceKey="AdministratorModulesItem.Text" DetailsPanelId="AdministratorModulesPanel" />
<asp:Panel ID="AdministratorModulesPanel" runat="server" CssClass="detailsTableWrapper">
<asp:GridView ID="AdministratorModulesGridView" runat="server" AutoGenerateColumns="false" CssClass="detailsTable Normal" AlternatingRowStyle-CssClass="detailsTableAltRow" HeaderStyle-CssClass="detailsTableHeader" RowStyle-CssClass="detailsTableRow" GridLines="None">
<Columns>
<asp:BoundField DataField="TabId" HeaderText="Tab ID" ItemStyle-HorizontalAlign="Center"/>
<asp:TemplateField HeaderText="Page Link" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# Globals.NavigateURL((int)Eval("TabId")) %>'>
<%# Eval("TabName") %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="Module Title" DataField="ModuleTitle" />
<asp:TemplateField HeaderText="Edit Module" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# GetModuleEditUrl((int)Eval("ModuleId"), (int)Eval("TabId"))%>' ImageUrl="~/images/action_settings.gif" ResourceKey="EditModule.Alt"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate><asp:Label ResourceKey="None.Text" runat="server" /></EmptyDataTemplate>
</asp:GridView>
</asp:Panel>
<engage:ModuleMessage runat="server" ID="AboutPagesAndContentMessage" ResourceKey="Pages and Content.Text" CssClass="Normal" MessageType="Information" style="display:none;" />
</fieldset>
<fieldset>
<legend class="SubHead"><asp:Label runat="server" ResourceKey="Search Engine Optimization.Title" /> <asp:HyperLink runat="server" id="AboutSeoLink" NavigateUrl="javascript:void(0);" CssClass="CommandButton" /></legend>
<engage:DashboardItem Id="PagesWithoutDescriptionItem" runat="server" TitleResourceKey="PagesWithoutDescriptionItem.Text" DetailsPanelId="PagesWithoutDescriptionPanel" />
<asp:Panel ID="PagesWithoutDescriptionPanel" runat="server" CssClass="detailsTableWrapper">
<asp:GridView ID="PagesWithoutDescriptionGridView" runat="server" AutoGenerateColumns="false" CssClass="detailsTable Normal" AlternatingRowStyle-CssClass="detailsTableAltRow" HeaderStyle-CssClass="detailsTableHeader" RowStyle-CssClass="detailsTableRow" GridLines="None" >
<Columns>
<asp:BoundField DataField="TabId" HeaderText="Tab ID" ItemStyle-HorizontalAlign="Center"/>
<asp:TemplateField HeaderText="Page Link" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# Globals.NavigateURL((int)Eval("TabId")) %>'>
<%# Eval("TabName") %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Page Settings" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# GetPageEditUrl((int)Eval("TabId")) %>' ImageUrl="~/images/action_settings.gif" ResourceKey="PageSettings.Alt"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate><asp:Label ResourceKey="None.Text" runat="server" /></EmptyDataTemplate>
</asp:GridView>
</asp:Panel>
<engage:DashboardItem Id="PagesWithoutKeywordsItem" runat="server" TitleResourceKey="PagesWithoutKeywordsItem.Text" DetailsPanelId="PagesWithoutKeywordsPanel" />
<asp:Panel ID="PagesWithoutKeywordsPanel" runat="server" CssClass="detailsTableWrapper">
<asp:GridView ID="PagesWithoutKeywordsGridView" runat="server" AutoGenerateColumns="false" CssClass="detailsTable Normal" AlternatingRowStyle-CssClass="detailsTableAltRow" HeaderStyle-CssClass="detailsTableHeader" RowStyle-CssClass="detailsTableRow" GridLines="None">
<Columns>
<asp:BoundField DataField="TabId" HeaderText="Tab ID" ItemStyle-HorizontalAlign="Center"/>
<asp:TemplateField HeaderText="Page Link" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# Globals.NavigateURL((int)Eval("TabId")) %>'>
<%# Eval("TabName") %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Page Settings" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# GetPageEditUrl((int)Eval("TabId")) %>' ImageUrl="~/images/action_settings.gif" ResourceKey="PageSettings.Alt"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate><asp:Label ResourceKey="None.Text" runat="server" /></EmptyDataTemplate>
</asp:GridView>
</asp:Panel>
<engage:DashboardItem Id="TextModulesWithoutSummaryItem" runat="server" TitleResourceKey="TextModulesWithoutSummaryItem.Text" DetailsPanelId="TextModulesWithoutSummaryPanel" />
<asp:Panel ID="TextModulesWithoutSummaryPanel" runat="server" CssClass="detailsTableWrapper">
<asp:GridView ID="TextModulesWithoutSummaryGridView" runat="server" AutoGenerateColumns="false" CssClass="detailsTable Normal" AlternatingRowStyle-CssClass="detailsTableAltRow" HeaderStyle-CssClass="detailsTableHeader" RowStyle-CssClass="detailsTableRow" GridLines="None">
<Columns>
<asp:BoundField DataField="TabId" HeaderText="Tab ID" ItemStyle-HorizontalAlign="Center"/>
<asp:TemplateField HeaderText="Page Link" HeaderStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# Globals.NavigateURL((int)Eval("TabId")) %>'>
<%# Eval("TabName") %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField HeaderText="Module Title" DataField="ModuleTitle" />
<asp:TemplateField HeaderText="Edit Module" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:HyperLink runat="server" NavigateUrl='<%# GetModuleEditUrl((int)Eval("ModuleId"), (int)Eval("TabId"))%>' ImageUrl="~/images/action_settings.gif" ResourceKey="EditModule.Alt"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate><asp:Label ResourceKey="None.Text" runat="server" /></EmptyDataTemplate>
</asp:GridView>
</asp:Panel>
<engage:ModuleMessage runat="server" ID="AboutSeoMessage" ResourceKey="Search Engine Optimization.Text" CssClass="Normal" MessageType="Information" style="display:none;" />
</fieldset>