forked from DNNCommunity/DNN.Events
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventList.ascx
142 lines (141 loc) · 9.51 KB
/
EventList.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
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EventList.ascx.cs" Inherits="DotNetNuke.Modules.Events.EventList" %>
<%@ Register TagPrefix="evt" TagName="Category" Src="~/DesktopModules/Events/SubControls/SelectCategory.ascx" %>
<%@ Register TagPrefix="evt" TagName="Location" Src="~/DesktopModules/Events/SubControls/SelectLocation.ascx" %>
<%@ Register TagPrefix="evt" TagName="Icons" Src="~/DesktopModules/Events/SubControls/EventIcons.ascx" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.Web.Deprecated" Namespace="DotNetNuke.Web.UI.WebControls" %>
<dnn:DnnToolTipManager
ID="toolTipManager" runat="server" HideEvent="LeaveTargetAndToolTip" Modal="False" EnableShadow="True" CssClass="Eventtooltip" ShowCallout="False"/>
<div>
<div class="EvtHdrLftCol">
<evt:Category ID="SelectCategory" runat="server" OnCategorySelectedChanged="SelectCategory_CategorySelected"></evt:Category>
</div>
<div class="EvtHdrMdlCol">
<evt:Location ID="SelectLocation" runat="server" OnLocationSelectedChanged="SelectLocation_LocationSelected"></evt:Location>
</div>
<div class="TopIconBar EvtHdrRgtCol">
<evt:Icons ID="EventIcons" runat="server"></evt:Icons>
</div>
<div style="clear: both">
<asp:GridView ID="gvEvents" ClientIDMode="AutoID" AllowPaging="True" PageSize="25" AllowSorting="True" GridLines="None" runat="server" CssClass="ListDataGrid" Width="100%" AutoGenerateColumns="False" OnRowCreated="gvEvents_RowCreated" OnRowDataBound="gvEvents_RowDataBound" OnPageIndexChanging="gvEvents_PageIndexChanging" OnRowCommand="gvEvents_RowCommand" OnSorting="gvEvents_Sorting">
<AlternatingRowStyle CssClass="ListAlternate"/>
<RowStyle CssClass="ListNormal"/>
<PagerStyle CssClass="ListPager"/>
<Columns>
<asp:TemplateField>
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListEdit"></ItemStyle>
<ItemTemplate>
<asp:ImageButton ID="btnEventEdit" runat="server" IconKey="Edit" CausesValidation="false" CommandName="Edit" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "EventId") %>'
visible='<%# DataBinder.Eval(Container.DataItem, "EditVisibility") %>'/>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="EventDateBegin" HeaderText="Event Start">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDate"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblEventBegin" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "txtEventTimeBegin") %>' forecolor='<%# DataBinder.Eval(Container.DataItem, "CategoryFontColor") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="EventDateEnd" HeaderText="Event End">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDate"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblEventEnd" Text='<%# DataBinder.Eval(Container.DataItem, "txtEventDateEnd") %>' runat="server" forecolor='<%# DataBinder.Eval(Container.DataItem, "CategoryFontColor") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="EventName" HeaderText="Title">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListTitle"></ItemStyle>
<ItemTemplate>
<%#Eval("Icons") %>
<asp:HyperLink CssClass="ListTitle" ID="lnkEvent" runat="Server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "URL") %>' Target='<%# DataBinder.Eval(Container.DataItem, "Target") %>'
Text='<%# DataBinder.Eval(Container.DataItem, "EventName") %>'>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField >
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle Wrap="False" CssClass="ListLink"></ItemStyle>
<ItemTemplate>
<asp:Label ID="imgEvent" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ImageURL") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="Duration" HeaderText="Duration">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDuration"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblDuration" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DisplayDuration") %>' forecolor='<%# DataBinder.Eval(Container.DataItem, "CategoryFontColor") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="CategoryName" HeaderText="Category">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListCategory"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblCategory" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CategoryName") %>' forecolor='<%# DataBinder.Eval(Container.DataItem, "CategoryFontColor") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="LocationName" HeaderText="Location">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListLocation"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblLocation" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "LocationName") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="CustomField1" HeaderText="CustomField1">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListCustomField1"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblCustomField1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CustomField1") %>' forecolor='<%# DataBinder.Eval(Container.DataItem, "CategoryFontColor") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="CustomField2" HeaderText="CustomField2">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListCustomField2"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblCustomField2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CustomField2") %>' forecolor='<%# DataBinder.Eval(Container.DataItem, "CategoryFontColor") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="Description" HeaderText="Description">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDescription"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DecodedDesc") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="RecurText" HeaderText="RecurText">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListRecurText"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblRecurText" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RecurText") %>' forecolor='<%# DataBinder.Eval(Container.DataItem, "CategoryFontColor") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField SortExpression="RecurUntil" HeaderText="RecurUntil">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListRecurUntil"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblRecurUntil" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RecurUntil") %>' forecolor='<%# DataBinder.Eval(Container.DataItem, "CategoryFontColor") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<div id="divNoEvents" runat="server" visible="false" class="dnnForm">
<div class="dnnFormMessage dnnFormWarning">
<asp:Label ID="lblNoEvents" runat="server" resourcekey="lblNoEvents">No events to display.</asp:Label>
</div>
</div>
<div class="BottomIconBar">
<evt:Icons ID="EventIcons2" runat="server"></evt:Icons>
</div>
</div>