-
Notifications
You must be signed in to change notification settings - Fork 12
/
EditReviewFields.ascx
executable file
·71 lines (71 loc) · 3.93 KB
/
EditReviewFields.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="EditReviewFields.ascx.vb" Inherits="Ventrian.PropertyAgent.EditReviewFields" %>
<%@ 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">
</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" Selected="True">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="grdReviewFields" Border="0" CellPadding="4" width="100%" AutoGenerateColumns="false"
runat="server" summary="Review Fields Table" BorderStyle="None" BorderWidth="0px"
GridLines="None">
<Columns>
<asp:TemplateColumn ItemStyle-Width="20">
<ItemTemplate>
<asp:HyperLink NavigateUrl='<%# GetReviewFieldEditUrl(DataBinder.Eval(Container.DataItem,"ReviewFieldID").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="Name" DataField="Name" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="100px" />
<asp:BoundColumn HeaderText="Caption" DataField="Caption" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
<asp:BoundColumn HeaderText="FieldType" DataField="FieldType" ItemStyle-CssClass="Normal" HeaderStyle-Cssclass="NormalBold" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" />
<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="lblNoReviewFields" Runat="server" CssClass="Normal" ResourceKey="NoReviewFields" EnableViewState="False" Visible="False" /></div>
<dnnsc:PagingControl id="ctlPagingControl" runat="server"></dnnsc:PagingControl>
<p align="center">
<asp:linkbutton id="cmdAddReviewField" resourcekey="AddReviewField" runat="server" cssclass="CommandButton" text="Add Review Field" causesvalidation="False" borderstyle="none" />
<asp:linkbutton id="cmdReturnToModule" resourcekey="ReturnToModule" runat="server" cssclass="CommandButton" text="Return To Module" causesvalidation="False" borderstyle="none" />
</p>