This repository has been archived by the owner on Feb 12, 2018. It is now read-only.
forked from DNNCommunity/DNN.Events
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EventDay.ascx
145 lines (144 loc) · 9.19 KB
/
EventDay.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="EventDay.ascx.vb" Inherits="DotNetNuke.Modules.Events.EventDay" %>
<%@ 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" Namespace="DotNetNuke.Web.UI.WebControls" %>
<dnn:DnnToolTipManager
ID="toolTipManager" runat="server" HideEvent="LeaveTargetAndToolTip" Modal="False" EnableShadow="True" CssClass="HTMLNtooltip" ShowCallout="False" />
<asp:Panel ID="pnlEventsModuleDay" runat="server">
<div style="text-align:center">
<div class="EvtHdrLftCol"></div>
<div class="EvtHdrMdlCol">
<evt:Category ID="SelectCategory" runat="server"></evt:Category>
<evt:Location ID="SelectLocation" runat="server"></evt:Location>
</div>
<div class="TopIconBar EvtHdrRgtCol">
<evt:Icons ID="EventIcons" runat="server"></evt:Icons>
</div>
<div style="clear:both">
<asp:DataGrid ID="lstEvents" ClientIDMode="AutoID" CellPadding="2" AutoGenerateColumns="False" GridLines="None" runat="server" ShowHeader="False"
CssClass="ListDataGrid" DataKeyField="EventID" Width="100%">
<AlternatingItemStyle CssClass="ListAlternate"></AlternatingItemStyle>
<Columns>
<asp:TemplateColumn>
<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:TemplateColumn>
<asp:TemplateColumn HeaderText="Event Start">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDate"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblEventBegin" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"txtEventTimeBegin") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Event End">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDate"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblEventEnd" Text='<%# DataBinder.Eval(Container.DataItem,"txtEventDateEnd") %>' runat="server">
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Title">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListTitle"></ItemStyle>
<ItemTemplate>
<asp:label ID="lblIcons" Text='<%# Databinder.Eval(Container.DataItem, "Icons")%>' runat="server"></asp:label>
<asp:HyperLink ID="lnkEvent" CssClass="ListTitle" runat="Server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"URL") %>' Target='<%# DataBinder.Eval(Container.DataItem,"Target") %>'
Text='<%# DataBinder.Eval(Container.DataItem,"EventName") %>' forecolor='<%# DataBinder.Eval(Container.DataItem,"CategoryFontColor") %>'>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle Wrap="False" CssClass="ListLink"></ItemStyle>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ImageURL") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Duration">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDuration"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblDuration" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"DisplayDuration") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn 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:TemplateColumn>
<asp:TemplateColumn 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:TemplateColumn>
<asp:TemplateColumn HeaderText="CustomField1">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListCustomField1"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblCustomField1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CustomField1") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="CustomField2">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListCustomField2"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblCustomField2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CustomField2") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Description" SortExpression="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:TemplateColumn>
<asp:TemplateColumn HeaderText="RecurText">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDescription"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblRecurText" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"RecurText") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="RecurUntil">
<HeaderStyle CssClass="ListHeader"></HeaderStyle>
<ItemStyle CssClass="ListDate"></ItemStyle>
<ItemTemplate>
<asp:Label ID="lblRecurUntil" Text='<%# DataBinder.Eval(Container.DataItem,"RecurUntil") %>' runat="server">
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</div>
<div id="divMessage" runat="server" visible="false" class="dnnForm" >
<div class="dnnFormMessage dnnFormWarning">
<asp:Label ID="lblMessage" runat="server" resourcekey="lblMessage" > No Events for this day...</asp:Label>
</div>
</div>
<div class="BottomIconBar">
<evt:Icons ID="EventIcons2" runat="server"></evt:Icons>
</div>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton ID="returnButton" runat="server" CssClass="dnnPrimaryAction" IconKey="Lt" CausesValidation="False" resourcekey="returnButton"/></li>
</ul>
</div>
</asp:Panel>