-
Notifications
You must be signed in to change notification settings - Fork 20
/
FAQs.ascx
77 lines (77 loc) · 5.77 KB
/
FAQs.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="C#" Inherits="DotNetNuke.Modules.FAQs.FAQs" AutoEventWireup="True" CodeBehind="FAQs.ascx.cs" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web.Deprecated" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<div class="dnnForm dnnFAQs dnnClear">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="width: 1px; vertical-align: top;">
<asp:Panel ID="pnlShowCategories" runat="server" Visible="false">
<asp:MultiView ID="mvShowCategoryType" runat="server" ActiveViewIndex="0">
<asp:View ID="vShowCategoryTypeList" runat="server">
<div class="categoryList">
<dnn:DnnListBox runat="server" ID="listCategories" CssClass="categoryListControl" OnItemDataBound="listCategories_ItemDataBound">
<itemtemplate>
<asp:CheckBox ID="chkCategory" runat="server" Text='<%# Eval("FaqCategoryName") %>' OnCheckedChanged="chkCategory_CheckedChanged" AutoPostBack="true" />
</itemtemplate>
</dnn:DnnListBox>
</div>
</asp:View>
<asp:View ID="vShowCategoryTypeTree" runat="server">
<div class="categoryTree" style="margin-right: 20px;">
<dnn:DnnTreeView ID="treeCategories" runat="server" CssClass="categoryTreeControl"
ShowLineImages="False" OnNodeClick="treeCategories_NodeClick" OnNodeDataBound="treeCategories_NodeDataBound">
<databindings>
<telerik:RadTreeNodeBinding Expanded="true" />
</databindings>
</dnn:DnnTreeView>
</div>
</asp:View>
</asp:MultiView>
</asp:Panel>
</td>
<td style="vertical-align: top;">
<asp:Panel ID="pnlSortbox" runat="server" width="350" Visible="false">
<dnn:Label ID="lblSort" runat="server" ControlName="drpSort" CssClass="SubHead" />
<asp:DropDownList ID="drpSort" runat="server" AutoPostBack="true" Width="180" OnSelectedIndexChanged="drpSort_SelectedIndexChanged">
<asp:ListItem Value="6" resourcekey="OrderByViewOrder">Predefined Order</asp:ListItem>
<asp:ListItem Value="0" resourcekey="OrderByDateNew">Date New</asp:ListItem>
<asp:ListItem Value="1" resourcekey="OrderByDateOld">Date Old</asp:ListItem>
<asp:ListItem Value="2" resourcekey="OrderByPopularityHigh">Popularity High</asp:ListItem>
<asp:ListItem Value="3" resourcekey="OrderByPopularityLow">Popularity Low</asp:ListItem>
<asp:ListItem Value="4" resourcekey="OrderByDateCreatedReverse">Creation Date Descending</asp:ListItem>
<asp:ListItem Value="5" resourcekey="OrderByDateCreatedOriginal">Creation Date Ascending</asp:ListItem>
</asp:DropDownList>
</asp:Panel>
<asp:Panel ID="pnlShowCategoryTypeDropdown" runat="server" Visible="false">
<dnn:Label ID="lblSelectCategory" runat="server" ControlName="drpCategories" CssClass="SubHead" />
<asp:DropDownList ID="drpCategories" runat="server" AutoPostBack="true" OnSelectedIndexChanged="drpCategories_SelectedIndexChanged" />
</asp:Panel>
</td>
</tr>
<tr style="height: 10px;">
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2">
<asp:DataList ID="lstFAQs" runat="server" CellPadding="0" DataKeyField="ItemId" RepeatLayout="Flow" CssClass="faqsList" OnItemDataBound="lstFAQs_ItemDataBound" OnItemCommand="lstFAQs_ItemCommand">
<ItemTemplate>
<div>
<asp:HyperLink ID="Hyperlink1" runat="server" Visible="<%# IsEditable %>" NavigateUrl='<%# EditUrl("ItemId",DataBinder.Eval(Container.DataItem,"ItemId").ToString()) %>'>
<asp:Image ID="Hyperlink1Image" runat="server" ImageUrl="images/FAQs-edit.png" AlternateText="Edit" Visible="<%#IsEditable%>" resourcekey="Edit" />
</asp:HyperLink>
<asp:ImageButton ID="lnkUp" CommandArgument='<%# HtmlDecode(DataBinder.Eval(Container.DataItem, "ItemId").ToString()) %>' CommandName="Up" runat="server" ImageUrl="images/FAQs-up.png" Visible="<%#IsMovable%>" />
<asp:ImageButton ID="lnkDn" CommandArgument='<%# HtmlDecode(DataBinder.Eval(Container.DataItem, "ItemId").ToString()) %>' CommandName="Down" runat="server" ImageUrl="images/FAQs-down.png" Visible="<%#IsMovable%>" />
<asp:LinkButton ID="lnkQ2" CommandArgument='<%# HtmlDecode(DataBinder.Eval(Container.DataItem, "ItemId").ToString()) %>' CommandName="Select" runat="server" CssClass="SubHead"></asp:LinkButton>
<a href="javascript://" id="Q2" runat="server"></a>
<asp:Panel ID="pnl" runat="server" Width="100%">
<asp:Label runat="server" ID="A2"></asp:Label>
</asp:Panel>
</div>
</ItemTemplate>
</asp:DataList>
</td>
</tr>
</table>
</div>