<%@ Register TagPrefix="uc1" TagName="TopPage" Src="TopPage.ascx" %>
<%@ Register TagPrefix="uc1" TagName="AddRelatedLinks" Src="AddRelatedLinks.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ViewChildPageContacts.aspx.vb" Inherits="AllSaints.ViewChildPageContacts"%>
<%@ Register TagPrefix="cc1" Namespace="EasyWebEditorControl" Assembly="EasyWebEditorControl" %>
<%@ Register TagPrefix="uc1" TagName="AddRelatedContact" Src="AddRelatedContact.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>ViewChildPageContacts</title>
		<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
		<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="css/default.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server" encType="multipart/form-data">
			<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TR>
					<TD bgColor="white" colSpan="3"><uc1:toppage id="TopPage1" runat="server"></uc1:toppage></TD>
				</TR>
				<TR bgColor="white">
					<TD colSpan="3">
						<table cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
							<tr>
								<td><asp:datalist id=dlSubPages runat="server" DataKeyField="ID" DataMember="GetChildPages" DataSource="<%# DsChildPageLinks1 %>" ShowHeader="False" RepeatDirection="Horizontal" RepeatLayout="Flow" ShowFooter="False" CssClass="nav1linkpipe">
										<ItemTemplate>
											<asp:LinkButton id=LinkButton1 runat="server" CssClass="nav1linkoff" Text='<%# DataBinder.Eval(Container, "DataItem.PageName") %>' CommandName="ParentPageName" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>'>
											</asp:LinkButton>
										</ItemTemplate>
										<SeparatorTemplate>
											&nbsp;|
										</SeparatorTemplate>
									</asp:datalist></td>
							</tr>
						</table>
					</TD>
				</TR>
				<TR>
					<TD noWrap width="150" bgColor="white">&nbsp;</TD>
					<TD bgColor="#ffffff" colSpan="1" rowSpan="1"></TD>
					<TD noWrap width="20%" bgColor="white" colSpan="1" rowSpan="1">&nbsp;</TD>
				</TR>
				<TR>
					<TD class="maintitle2" vAlign="top" noWrap width="150" bgColor="white">&nbsp;&nbsp;Link 
						Title:</TD>
					<TD vAlign="top" bgColor="#ffffff"><asp:textbox id=txtPageName runat="server" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].PageName") %>' Width="250px" ToolTip='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].PageName") %>'>
						</asp:textbox>
						<asp:label id=lblPageID runat="server" Visible="False" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].ID") %>'>
						</asp:label></TD>
					<TD vAlign="top" bgColor="white" colSpan="1" rowSpan="6"><asp:panel id="TopPanel" runat="server" Visible="False" Width="100%">
							<asp:Image id=imgTop runat="server" Width="245px" Height="90px" ImageUrl='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].TopPicture") %>'>
							</asp:Image>
							<asp:LinkButton id="lnkTopPicRemove" runat="server">Remove Picture</asp:LinkButton>
							<BR>
							<INPUT id="TopPicture" type="file" name="TopPicture" runat="server"><BR>
							<asp:Button id="btnTopPicUpdate" runat="server" Text="Update"></asp:Button>
						</asp:panel><asp:panel class="maintitle2" id="RightPanel" runat="server" Visible="False" Width="100%">
<asp:Image id=imgRight runat="server" Width="230px" Height="300px" ImageUrl='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].RightPicture") %>'></asp:Image>
<asp:LinkButton id="lnkRightPicRemove" runat="server">Remove Picture</asp:LinkButton><BR>
<INPUT id="RightPicture" type="file" name="RightPicture" runat="server"><BR>Description:<BR>
<asp:TextBox id=txtImageDesc runat="server" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].RightPicDesc") %>' Width="150px">
							</asp:TextBox><BR>
<asp:Button id="btnRightPicUpdate" runat="server" Text="Update"></asp:Button></asp:panel><BR>
					</TD>
				</TR>
				<TR bgColor="white">
					<TD class="maintitle2" vAlign="top">&nbsp;
						<asp:label id="lblPageHeading" runat="server" Visible="False">Page Heading:</asp:label></TD>
					<TD vAlign="top"><asp:panel id="pnlPageHeading" runat="server" Visible="False">
							<asp:textbox id=txtPageHeading runat="server" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].BodyHeading") %>' Width="250px">
							</asp:textbox>
						</asp:panel></TD>
				</TR>
				<TR bgColor="white">
					<TD class="maintitle2" vAlign="top"><asp:panel id="pnlPageBodyLeft" runat="server" Visible="False">&nbsp; Page Body:</asp:panel>
						<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
							<TR>
								<TD>&nbsp;</TD>
							</TR>
							<TR>
								<TD vAlign="top"><asp:datagrid id=DataGrid2 runat="server" DataKeyField="ID" DataMember="GetChildPages" DataSource="<%# DsViewChildPages1 %>" ShowHeader="False" AutoGenerateColumns="False" BorderWidth="0px" CellPadding="1" CellSpacing="1" CssClass="nav2linkoff">
										<Columns>
											<asp:HyperLinkColumn DataNavigateUrlField="ID" DataNavigateUrlFormatString="ViewChildPageContacts.aspx?Level=1&amp;ID={0}" DataTextField="PageName"></asp:HyperLinkColumn>
										</Columns>
									</asp:datagrid><BR>
								</TD>
							</TR>
						</TABLE>
					</TD>
					<TD class="maintitle2" vAlign="top" colSpan="1">
						<cc1:EasyWebEdit id="EWE1" runat="server" Width="98%" ImagesLocation="../images/EasyWebPics" Visible="False" ForeColor="Black"></cc1:EasyWebEdit>
						<BR>
						<BR>
						<asp:button id="btnUpdate" runat="server" Text="Update Page Contents"></asp:button></TD>
				</TR>
				<TR bgColor="#ffffff">
					<TD class="maintitle2" vAlign="top" colSpan="2"><asp:panel id="pnlLinks" runat="server" Visible="False"><STRONG>&nbsp;Related&nbsp;Links:<BR>
							</STRONG>
							<asp:datagrid id=DG_RelatedLinks runat="server" CssClass="itable" DataSource="<%# DsContactLinks1 %>" DataMember="cmdCL_Select" DataKeyField="ID" Width="100%" AutoGenerateColumns="False">
								<ItemStyle BorderWidth="0px" CssClass="itablebody"></ItemStyle>
								<HeaderStyle Font-Bold="True" CssClass="itablehead"></HeaderStyle>
								<Columns>
									<asp:BoundColumn DataField="LinkName" SortExpression="LinkName" HeaderText="Link Text">
										<HeaderStyle Width="40%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="LinkURL" SortExpression="LinkURL" HeaderText="Linkl URL Address">
										<HeaderStyle Width="40%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit">
										<HeaderStyle Width="20%"></HeaderStyle>
									</asp:EditCommandColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
								</Columns>
							</asp:datagrid>
							<BR>
							<uc1:AddRelatedLinks id="AddRelLinks1" runat="server" Visible="True"></uc1:AddRelatedLinks>
						</asp:panel></TD>
				</TR>
				<TR bgColor="#ffffff">
					<TD class="maintitle2" vAlign="top" colSpan="2" rowSpan="1"><asp:panel id="pnlContacts" runat="server" Visible="False"><STRONG>&nbsp;Related 
								Contacts :<BR>
							</STRONG>
							<asp:DataGrid id=DG_RelatedContacts runat="server" CssClass="itable" DataSource="<%# DsGetRelatedContacts1 %>" DataMember="GetRelContacts" DataKeyField="ID" Width="100%" AutoGenerateColumns="False">
								<ItemStyle CssClass="itablebody"></ItemStyle>
								<HeaderStyle CssClass="itablehead"></HeaderStyle>
								<Columns>
									<asp:BoundColumn DataField="Heading" SortExpression="Heading" HeaderText="Heading">
										<HeaderStyle Width="40%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="InfoText" SortExpression="InfoText" HeaderText="Info Text">
										<HeaderStyle Width="40%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit">
										<HeaderStyle Width="10%"></HeaderStyle>
									</asp:EditCommandColumn>
									<asp:ButtonColumn Text="Delete" CommandName="Delete">
										<HeaderStyle Width="10%"></HeaderStyle>
									</asp:ButtonColumn>
								</Columns>
							</asp:DataGrid>
							<BR>
							<uc1:AddRelatedContact id="AddRelContact1" runat="server" Visible="True"></uc1:AddRelatedContact>
						</asp:panel></TD>
				</TR>
				<TR>
					<TD class="maintitle2" vAlign="top" bgColor="white" colSpan="2">&nbsp;</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
