-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathManageComments.ascx
62 lines (60 loc) · 5.28 KB
/
ManageComments.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
<%@ Control Language="C#" Inherits="Engage.Dnn.Locator.ManageComments" AutoEventWireup="True" CodeBehind="ManageComments.ascx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" %>
<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>
<asp:Label ID="lblNoPending" runat="server" Text="No Pending Comments" CssClass="Normal" resourceKey="lblNoPending"></asp:Label>
<div class="divPanelTab" id="divPanelTab" runat="server">
<asp:Label ID="lblSuccess" runat="server" CssClass="Normal"></asp:Label>
<div>
<asp:DataGrid ID="dgSubmittedComments" runat="server" CssClass="DataGrid_Container" GridLines="Vertical"
AllowPaging="True" AutoGenerateColumns="False"
OnDeleteCommand="dgComments_DeleteCommand" OnItemCreated="dgComments_ItemCreated">
<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="lblCommentId" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.CommentId", "{0:d}") %>'>
</asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Location">
<ItemTemplate>
<asp:Label ID="lblLocationName" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.Name", "{0:d}") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Comment">
<ItemTemplate>
<asp:Label ID="lblComment" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.Text", "{0:d}") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Submitted By">
<ItemTemplate>
<asp:Label ID="lblCommentAuthor" runat="server" CssClass="datagridLabels" Text='<%# DataBinder.Eval(Container, "DataItem.Author", "{0:d}") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn >
<ItemTemplate>
<asp:CheckBox ID="cbCommentApproved" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
<SelectedItemStyle CssClass="Normal DataGrid_SelectedItem" />
<AlternatingItemStyle CssClass="Normal DataGrid_AlternatingItem" />
<ItemStyle CssClass="Normal DataGrid_Item" />
</asp:DataGrid>
</div>
<br />
<div id="div_navigation">
<asp:ImageButton ID="btnAcceptComment" runat="server" CssClass="CommandButton" AlternateText="Approve" resourcekey="btnAccept" OnClick="btnApprove_Click" Visible="False" ToolTip="Click here to Approve the selected comments." ImageUrl="~/desktopmodules/EngageLocator/images/approve.gif"/>
<asp:ImageButton ID="btnDeleteComment" runat="server" CssClass="CommandButton" AlternateText="Reject" resourcekey="btnDelete" OnClick="btnReject_Click" Visible="False" ToolTip="Click here to Reject the selected comments." ImageUrl="~/desktopmodules/EngageLocator/images/reject.gif"/>
<asp:ImageButton ID="btnCancelComment" runat="server" CssClass="CommandButton" AlternateText="Cancel" resourcekey="btnCancel" OnClick="btnCancel_Click" ToolTip="Click here to go back to the previous screen." ImageUrl="~/desktopmodules/EngageLocator/images/back.gif" />
</div>
</div>