-
Notifications
You must be signed in to change notification settings - Fork 12
/
EditPropertyTypes.ascx
executable file
·94 lines (94 loc) · 4.63 KB
/
EditPropertyTypes.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="EditPropertyTypes.ascx.vb" Inherits="Ventrian.PropertyAgent.EditPropertyTypes" %>
<%@ 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 height="5px" colspan="2"></td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td align="left" class="Normal">
<asp:Repeater ID="rptTypeCrumbs" 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" class="Normal">
<asp:Label ID="lblRecordsPerPage" Runat="server" resourcekey="RecordsPage" CssClass="SubHead">Records Per Page:</asp:Label><br>
<asp:DropDownList id="drpRecordsPerPage" Runat="server" AutoPostBack="True" 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>
</table>
<asp:datagrid id="grdPropertyTypes" Border="0" CellPadding="4" CellSpacing="0" Width="100%" AutoGenerateColumns="false"
runat="server" summary="Property Types Design Table" GridLines="None">
<Columns>
<asp:TemplateColumn ItemStyle-Width="20">
<ItemTemplate>
<asp:HyperLink NavigateUrl='<%# GetPropertyTypeEditUrl(DataBinder.Eval(Container.DataItem,"PropertyTypeID").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:TemplateColumn ItemStyle-Width="150px">
<HeaderTemplate>
<asp:Label ID="lblName" runat="server" CssClass="NormalBold" ResourceKey="Name.Header" EnableViewState="False" />
</HeaderTemplate>
<ItemTemplate>
<asp:HyperLink NavigateUrl='<%# GetSubPropertyTypeEditUrl(DataBinder.Eval(Container.DataItem,"PropertyTypeID").ToString()) %>' runat="server" ID="Hyperlink2" CssClass="CommandButton">
<%# DataBinder.Eval(Container.DataItem,"Name") %>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn HeaderText="Description" DataField="Description" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold" />
<asp:TemplateColumn>
<HeaderTemplate>
<asp:Label ID="lblPublished" Runat="server" ResourceKey="Published.Header" CssClass="NormalBold" />
</HeaderTemplate>
<ItemStyle Width="60px" HorizontalAlign="Center" />
<ItemTemplate>
<asp:ImageButton ID="btnPublished" Runat="server" ImageUrl="~/Images/checked.gif" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn>
<HeaderTemplate>
<asp:Label ID="lblSortOrder" Runat="server" ResourceKey="SortOrder.Header" CssClass="NormalBold" />
</HeaderTemplate>
<ItemStyle Width="60px" HorizontalAlign="Center" />
<ItemTemplate>
<table cellpadding="0" cellspacing="0">
<tr>
<td width="16px"><asp:ImageButton ID="btnDown" Runat="server" ImageUrl="~/Images/dn.gif" /></td>
<td width="16px"><asp:ImageButton ID="btnUp" Runat="server" ImageUrl="~/Images/up.gif" /></td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
<div align="center"><asp:Label ID="lblNoPropertyTypes" Runat="server" CssClass="Normal" ResourceKey="NoPropertyTypes" Visible="False" /></div>
<dnnsc:PagingControl id="ctlPagingControl" runat="server"></dnnsc:PagingControl>
<p align="center">
<asp:linkbutton id="cmdAddPropertyType" resourcekey="AddPropertyType" runat="server" cssclass="CommandButton"
text="Add Property Type" causesvalidation="False" borderstyle="none" />
<asp:linkbutton id="cmdReturnToModule" resourcekey="ReturnToModule" runat="server" cssclass="CommandButton" text="Return To Module" causesvalidation="False" borderstyle="none" />
</p>