-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathManageLocations.ascx
131 lines (127 loc) · 9.83 KB
/
ManageLocations.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
<%@ Control Language="C#" Inherits="Engage.Dnn.Locator.ManageLocations" AutoEventWireup="True" CodeBehind="ManageLocations.ascx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<div class="div_ManagementButtons">
<asp:ImageButton ID="lbSettings" CssClass="CommandButton" runat="server" AlternateText="Settings" ImageUrl="~/desktopmodules/EngageLocator/images/settingsBt.gif" OnClick="lbSettings_OnClick" CausesValidation="false" />
<asp:ImageButton ID="lbManageLocations" CssClass="CommandButton" runat="server" AlternateText="Manage Locations" ImageUrl="~/desktopmodules/EngageLocator/images/locationbt.gif" OnClick="lbManageLocations_OnClick" CausesValidation="false" />
<asp:ImageButton ID="lbImportFile" CssClass="CommandButton" runat="server" AlternateText="Import File" ImageUrl="~/desktopmodules/EngageLocator/images/importbt.gif" OnClick="lbImportFile_OnClick" CausesValidation="false" />
<asp:ImageButton ID="lbManageComments" CssClass="CommandButton" runat="server" AlternateText="Comments" ImageUrl="~/desktopmodules/EngageLocator/images/commentsbt.gif" OnClick="lbManageComments_OnClick" CausesValidation="false" />
<asp:ImageButton ID="lbLocationTypes" CssClass="CommandButton" runat="server" AlternateText="Location Types" OnClick="lbManageTypes_OnClick" ImageUrl="~/desktopmodules/EngageLocator/images/locationTypesBt.gif" CausesValidation="false" />
</div>
<asp:Label ID="lblConfigured" runat="server" CssClass="locatorInstruction Normal" Text="Module is not Configured. Please go to Module Settings and configure module before managing locations." Visible="False" resourcekey="lblConfigured"></asp:Label>
<div class="divPanelTab" id="divPanelTab" runat="server">
<asp:ImageButton runat="server" ID="btnAddLocation" CssClass="CommandButton" AlternateText="Add New Location" OnClick="btnAddLocation_Click" ImageUrl="~/desktopmodules/EngageLocator/images/caCreateNew.gif" />
<br />
<asp:Label ID="lblSuccess" runat="server" CssClass="Normal"></asp:Label>
<br />
<asp:Label runat="server" CssClass="Normal" ID="lblEditLocations" resourcekey="lblEditLocations" Visible="false">Edit Locations</asp:Label>
<asp:UpdatePanel ID="upDataImport" runat="server">
<ContentTemplate>
<div id="editDiv" runat="server">
<div id="divApproval" runat="server" class="div_approval">
<asp:RadioButton ID="rbApproved" runat="server" GroupName="approval"
resourcekey="rbApproved" CssClass="Normal" OnCheckedChanged="rbApproved_CheckChanged"
AutoPostBack="true" />
<asp:RadioButton ID="rbWaitingForApproval" runat="server" GroupName="approval"
resourcekey="rbWaitingForApproval" CssClass="Normal" OnCheckedChanged="rbApproved_CheckChanged"
AutoPostBack="true" />
</div>
<dnn:PagingControl ID="pager" runat="server"></dnn:PagingControl>
<asp:DataGrid ID="dgLocations" runat="server" CssClass="DataGrid_Container"
GridLines="Vertical" OnDataBinding="dgLocations_DataBind"
AutoGenerateColumns="False"
OnEditCommand="dgLocations_EditCommand"
OnCancelCommand="dgLocations_CancelCommand"
OnItemDataBound="dgLocations_ItemDataBound"
AllowSorting="True"
DataKeyField="LocationId"
onsortcommand="dgLocations_SortCommand">
<FooterStyle CssClass="Normal DataGrid_Footer" />
<PagerStyle CssClass="Normal PagingTable" HorizontalAlign="Center" Mode="NumericPages" />
<HeaderStyle CssClass="Normal DataGrid_Header" />
<Columns>
<asp:TemplateColumn HeaderText="ID" Visible="False">
<ItemTemplate>
<asp:Label ID="lblLocationId" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.LocationId", "{0:d}") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<%-- <asp:TemplateColumn HeaderText="Key">
<ItemTemplate>
<asp:Label ID="lblLoc" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.ExternalIdentifier", "{0:d}") %>'>
</asp:Label>
</ItemTemplate>
<ItemStyle CssClass="idDataGridFooter" />
<FooterStyle CssClass="idDataGridFooter" />
<HeaderStyle CssClass="idDataGridFooter" />
</asp:TemplateColumn>--%>
<asp:TemplateColumn HeaderText="Name" SortExpression="Name">
<ItemTemplate>
<asp:Label ID="lblName" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Address" SortExpression="Address">
<ItemTemplate>
<asp:Label ID="lblAddress" runat="server" CssClass="datagridLabels">
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="City" SortExpression="City">
<ItemTemplate>
<asp:Label ID="lblCity" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.City") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Region" SortExpression="StateName">
<ItemTemplate>
<asp:Label ID="lblState" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.StateName") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Latitude" SortExpression="Latitude">
<ItemTemplate>
<asp:Label ID="lblLatitude" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.Latitude") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Longitude" SortExpression="Longitude">
<ItemTemplate>
<asp:Label ID="lblLongitude" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.Longitude") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Location Type" SortExpression="Type">
<ItemTemplate>
<asp:Label ID="lblType" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.Type") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Comments">
<ItemTemplate>
<asp:Label ID="lblApprovedComments" runat="server" /><br />
<asp:Label ID="lblWaitingComments" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox ID="chkApproved" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:EditCommandColumn CancelText="Cancel" EditText="Edit" UpdateText="Update"/>
</Columns>
<SelectedItemStyle CssClass="Normal DataGrid_SelectedItem" />
<AlternatingItemStyle CssClass="Normal DataGrid_AlternatingItem" />
<ItemStyle CssClass="Normal DataGrid_Item" />
</asp:DataGrid>
</div>
<br />
</ContentTemplate>
</asp:UpdatePanel>
<br />
<div id="div_navigation">
<asp:ImageButton ID="btnAccept" runat="server" Text="Accept" CssClass="CommandButton" OnClick="btnAccept_Click" Visible="False" ToolTip="Click here to Approve the selected locations." ImageUrl="~/desktopmodules/EngageLocator/images/approve.gif" />
<asp:ImageButton ID="btnReject" runat="server" Text="Reject" CssClass="CommandButton" OnClick="btnReject_Click" Visible="False" ToolTip="Click here to Reject the selected locations." ImageUrl="~/desktopmodules/EngageLocator/images/reject.gif" />
<asp:ImageButton ID="btnCancel" runat="server" CssClass="CommandButton" Text="Cancel" OnClick="btnCancel_Click" ToolTip="Click here to go back to the previous screen." ImageUrl="~/desktopmodules/EngageLocator/images/back.gif"/>
</div>
</div>