-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathViewLinks.ascx
134 lines (131 loc) · 6.59 KB
/
ViewLinks.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="Engage.Dnn.F3.ViewLinks" AutoEventWireup="false" CodeBehind="ViewLinks.ascx.cs" %>
<%@ Register TagPrefix="dnn" TagName="label" Src="~/controls/labelControl.ascx" %>
<div class="Normal engageF3">
<div style="clear: both;">
<p>
<asp:Label resourcekey="lblInstructions" runat="server" />
</p>
</div>
<div><asp:CheckBox ID="AllPortalsCheckBox" runat="server" ResourceKey="Search All Portals" Visible="false" /></div>
<asp:label ResourceKey="lblSearchString" runat="server"/>
<asp:TextBox ID="SearchTextBox" runat="server"/>
<asp:Button ID="SearchTextHtmlButton" resourcekey="btnSearch" runat="server" Text="Text/HTML" />
<asp:Button ID="SearchPublishButton" resourcekey="btnEngagePublish" runat="server" Text="Engage: Publish" />
<asp:GridView ID="ResultsGrid" runat="server" AutoGenerateColumns="false" CssClass="DataGrid_Container" GridLines="None">
<HeaderStyle VerticalAlign="Top" CssClass="DataGrid_Header" />
<RowStyle CssClass="DataGrid_Item" />
<AlternatingRowStyle CssClass="DataGrid_AlternatingItem" />
<FooterStyle CssClass="DataGrid_Footer" />
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblPortalNameHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("PortalName") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblPageNameHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("TabName") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblModuleTitleHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("ModuleTitle") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblModuleTextHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# CleanupText(Eval("Content").ToString(), false) %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblContentStateIdHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("StateId") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblEditHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink Target="_blank" NavigateUrl='<%# GetTextHtmlModuleEditLink((int)Eval("ModuleId"), (int)Eval("TabId"))%>' resourcekey="lnkEditLink" runat="server"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate><asp:Label runat="server" ResourceKey="No Results" /></EmptyDataTemplate>
</asp:GridView>
<asp:GridView ID="PublishResultsGrid" runat="server" AutoGenerateColumns="false" CssClass="DataGrid_Container" GridLines="None">
<HeaderStyle VerticalAlign="Top" CssClass="DataGrid_Header" />
<RowStyle CssClass="DataGrid_Item" />
<AlternatingRowStyle CssClass="DataGrid_AlternatingItem" />
<FooterStyle CssClass="DataGrid_Footer" />
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblPortalNameHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("PortalName") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblItemId" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("ItemId") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblArticleTitleHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# Eval("Name") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblModuleTextHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:Label runat="server" Text='<%# CleanupText(Eval("ArticleText").ToString(), true) %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<asp:Label resourcekey="lblEditPublishHeader" runat="server"/>
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink Target="_blank" NavigateUrl='<%# GetPublishViewLink((int)Eval("ItemID"))%>' resourcekey="lnkViewLink" runat="server"/>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate><asp:Label runat="server" ResourceKey="No Publish Results" /></EmptyDataTemplate>
</asp:GridView>
<asp:Panel ID="ReplacementPanel" runat="server" Visible="false">
<div>
<dnn:label ResourceKey="plHtmlReplace" runat="server" />
<asp:TextBox ID="ReplacementTextBox" runat="server" />
<asp:Button ID="ReplaceTextHtmlButton" resourcekey="btnReplace" runat="server" />
<asp:Button ID="ReplacePublishButton" resourcekey="btnReplaceEngagePublish" runat="server" />
</div>
<div>
<asp:Label ID="ReplacementResultsLabel" CssClass="error" runat="server" />
</div>
</asp:Panel>
</div>