-
Notifications
You must be signed in to change notification settings - Fork 12
/
EditProperties.ascx
executable file
·115 lines (114 loc) · 5.56 KB
/
EditProperties.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="EditProperties.ascx.vb" Inherits="Ventrian.PropertyAgent.EditProperties" %>
<%@ Register TagPrefix="dnnsc" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register TagPrefix="Agent" TagName="Options" Src="Options.ascx" %>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left">
<asp:Repeater ID="rptBreadCrumbs" Runat="server">
<ItemTemplate><a href='<%# DataBinder.Eval(Container.DataItem, "Url") %>' class="NormalBold"><%# DataBinder.Eval(Container.DataItem, "Caption") %></a></ItemTemplate>
<SeparatorTemplate> » </SeparatorTemplate>
</asp:Repeater>
</td>
<td align="right">
<Agent:Options id="Options1" runat="server" />
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
<asp:Panel runat="server" DefaultButton="cmdSearch">
<table width="100%" border="0">
<tr>
<td colspan="2" align="center">
<asp:Label ID="lblLimit" Runat="server" CssClass="Normal" />
</td>
</tr>
<tr>
<td align="left" class="Normal" colspan="2">
<asp:Label ID="lblSearch" Runat="server" resourcekey="Search" CssClass="SubHead" EnableViewState="False">Search:</asp:Label><br>
<asp:TextBox ID="txtCustomField" runat="Server" CssClass="NormalTextBox" />
<asp:dropdownlist id="drpCustomFields" DataValueField="CustomFieldID" DataTextField="Name" Runat="server"
CssClass="NormalTextBox"></asp:dropdownlist>
<asp:dropdownlist id="drpTypes" DataValueField="PropertyTypeID" DataTextField="NameIndented" Runat="server"
CssClass="NormalTextBox"></asp:dropdownlist>
<asp:dropdownlist id="drpStatus" Runat="server" CssClass="NormalTextBox"></asp:dropdownlist>
</td>
</tr>
<tr>
<td align="left" class="Normal">
<asp:Label ID="lblSortBy" Runat="server" resourcekey="SortBy" CssClass="SubHead" EnableViewState="False">Sort By:</asp:Label><br>
<asp:DropDownList id="drpSortBy" Runat="server" CssClass="NormalTextBox" />
<asp:DropDownList id="drpSortDirection" Runat="server" CssClass="NormalTextBox" />
</td>
<td align="right" class="Normal">
<asp:Label ID="lblRecordsPerPage" Runat="server" resourcekey="RecordsPage" CssClass="SubHead"
EnableViewState="False">Records Per Page:</asp:Label><br>
<asp:DropDownList id="drpRecordsPerPage" Runat="server" CssClass="NormalTextBox">
<asp:ListItem Value="10">10</asp:ListItem>
<asp:ListItem Value="25">25</asp:ListItem>
<asp:ListItem Value="50">50</asp:ListItem>
<asp:ListItem Value="100">100</asp:ListItem>
<asp:ListItem Value="250">250</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td colspan="2" align="Center">
<asp:linkbutton id="cmdSearch" runat="server" cssclass="CommandButton" text="Filter Properties" ResourceKey="FilterProperties" causesvalidation="False" borderstyle="none" />
</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</asp:Panel>
<asp:datagrid id="grdProperties" Border="0" CellPadding="4" width="100%" AutoGenerateColumns="false"
runat="server" summary="Property Design Table" BorderStyle="None" BorderWidth="0px" GridLines="None" EnableViewState="True">
<Columns>
<asp:TemplateColumn ItemStyle-Width="20">
<ItemTemplate>
<asp:HyperLink NavigateUrl='<%# GetPropertyEditUrl(DataBinder.Eval(Container.DataItem,"PropertyID").ToString()) %>' runat="server" ID="Hyperlink1">
<asp:Image ImageUrl="~/images/edit.gif" AlternateText="Edit" runat="server" ID="Hyperlink1Image"
resourcekey="Edit" />
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn HeaderText="Type" DataField="PropertyTypeName" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold" />
<asp:BoundColumn HeaderText="Modified" DataField="DateModified" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold"
HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="120px" />
<asp:TemplateColumn ItemStyle-Width="100px">
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" CssClass="Normal" />
<HeaderTemplate>
<asp:Label ID="lblStatus" Runat="server" ResourceKey="Status.Header" CssClass="NormalBold"></asp:Label>
</HeaderTemplate>
<ItemTemplate>
<%# GetLocalizedStatus(Container.DataItem) %>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn HeaderText="Hits" DataField="ViewCount" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold"
ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" />
<asp:TemplateColumn>
<HeaderTemplate>
<asp:Label ID="lblApproved" Runat="server" ResourceKey="Approved.Header" CssClass="NormalBold" />
</HeaderTemplate>
<ItemStyle Width="60px" HorizontalAlign="Center" />
<ItemTemplate>
<asp:ImageButton ID="btnApproved" Runat="server" ImageUrl="~/Images/checked.gif" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:Label ID="lblDelete" Runat="server" ResourceKey="Delete.Header" CssClass="NormalBold" />
</HeaderTemplate>
<ItemStyle Width="60px" HorizontalAlign="Center" />
<ItemTemplate>
<asp:ImageButton ID="btnDelete" Runat="server" ImageUrl="~/Images/delete.gif" CommandName="Delete" />
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
<div align="center"><asp:Label ID="lblNoProperties" Runat="server" CssClass="Normal" ResourceKey="NoProperties"
EnableViewState="False" /></div>
<dnnsc:PagingControl id="ctlPagingControl" runat="server" Visible="False"></dnnsc:PagingControl>