<%@ Register TagPrefix="uc1" TagName="TopPage" Src="TopPage.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftPage" Src="LeftPage.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ViewParentPage.aspx.vb" Inherits="AllSaints.ViewParentPage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Content Management</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
		<meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK rel="stylesheet" type="text/css" href="css/default.css">
	</HEAD>
	<body>
		<form id="Form1" encType="multipart/form-data" method="post" runat="server">
			<TABLE id="Table1" border="0" cellSpacing="0" cellPadding="0" width="100%">
				<TR>
					<TD colSpan="3"><uc1:toppage id="TopPage1" runat="server"></uc1:toppage></TD>
				</TR>
				<tr bgColor="white">
					<td style="padding-left:10px; padding-bottom:10px; padding-right:10px;" valign=top>
						<table cellpadding="0" cellspacing="0" width="100%" align=left>
							<tr>
								<td style="width:210px;" class="LeftLinksTd">
									<uc1:leftpage id="Toppage2" runat="server"></uc1:leftpage>
								</td>
								<td style="padding: 10px;" valign="top">
									<table cellpadding="0" cellspacing="0" width="100%" style="vertical-align:top;">
										<TR bgColor="white">
											<TD class="maintitle2" align="left">&nbsp; Page Title:</TD>
											<TD><asp:textbox id=txtPageName runat="server" Width="250px" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].PageName") %>'>
												</asp:textbox><asp:label id=lblID runat="server" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].ID") %>' Visible="False">
												</asp:label></TD>
											<TD><asp:requiredfieldvalidator id="rfvPageName" runat="server" ErrorMessage="Page Title cannot be left empty !"
													ControlToValidate="txtPageName">Page Title cannot be left empty !</asp:requiredfieldvalidator></TD>
										</TR>
										<TR bgColor="white">
											<TD class="maintitle2" align="left">&nbsp; Page Heading:
											</TD>
											<TD><asp:textbox id=txtPageHeading runat="server" Width="250px" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].BodyHeading") %>'>
												</asp:textbox></TD>
											<TD><asp:requiredfieldvalidator id="rfvPageHeading" runat="server" ErrorMessage="Page Heading cannot be left empty !"
													ControlToValidate="txtPageHeading">Page Heading cannot be left empty !</asp:requiredfieldvalidator></TD>
										</TR>
										<TR>
											<TD class="maintitle2" bgColor="white" colSpan="3">&nbsp;</TD>
										</TR>
										<TR bgColor="white">
											<TD class="maintitle2" colSpan="3">&nbsp; Sub Page Links:</TD>
										</TR>
										<TR>
											<TD bgColor="white" colSpan="3">
												<table border="0" cellSpacing="0" cellPadding="0" width="90%" align="center">
													<tr>
														<td><asp:datalist id=dlChildPages runat="server" CssClass="nav1linkpipe" DataKeyField="ID" DataMember="GetChildPages" DataSource="<%# DsViewChildPages1 %>" ShowHeader="False" ShowFooter="False" RepeatLayout="Flow" RepeatDirection="Horizontal">
																<ItemTemplate>
																	<asp:LinkButton id=LinkButton1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PageName") %>' CssClass="nav1linkoff" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' CommandName="PageName">
																	</asp:LinkButton>
																</ItemTemplate>
																<SeparatorTemplate>
																	|
																</SeparatorTemplate>
															</asp:datalist><asp:label id="Label1" runat="server" CssClass="nav1linkpipe">|</asp:label><asp:hyperlink id="hlnkManageLinks" runat="server" CssClass="nav1linkhigh" NavigateUrl="#"> Manage Links</asp:hyperlink></td>
													</tr>
												</table>
											</TD>
										</TR>
										<TR>
											<TD bgColor="white" colSpan="3" align="left">&nbsp;</TD>
										</TR>
										<TR runat="server" id="BoostersTR">
											<TD style="PADDING-RIGHT: 20px" bgColor="white" colSpan="3" align="right">
												<table cellSpacing="0" cellPadding="0">
													<tr>
														<TD bgColor="white" vAlign="top" rowSpan="6">
															<label class="maintitle2">Top Picture:</label><BR>
															<asp:image id="imgTop" runat="server" Width="245px" Height="90px" ImageUrl='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].TopPicture") %>'>
															</asp:image><BR>
															<BR>
															<asp:LinkButton Runat="server" ID="RemoveTPic">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></TD>
														<TD style="PADDING-LEFT: 10px">
															<label class="maintitle2">Right Picture:</label><BR>
															<asp:image id="imgRight" runat="server" Width="230px" Height="300px" ImageUrl='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].RightPicture") %>'>
															</asp:image><BR>
															<BR>
															<asp:LinkButton Runat="server" ID="RemoveRPic">Remove Picture</asp:LinkButton><BR>
															<INPUT id="RightPicture" type="file" name="RightPicture" runat="server"><BR>
															<asp:Button id="btnRightPicUpdate" runat="server" Text="Update"></asp:Button></TD>
													</tr>
												</table>
											</TD>
										</TR>
										<TR>
											<TD bgColor="white" colSpan="3" align="center"><asp:button id="btnUpdate" runat="server" Text="Update Page Contents"></asp:button></TD>
										</TR>
										<TR>
											<TD bgColor="#ffffff" colSpan="3" align="center">&nbsp;
											</TD>
										</TR>
									</table>	
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</TABLE>
		</form>
	</body>
</HTML>
