<%@ Register TagPrefix="uc1" TagName="AddEvent" Src="AddEvent.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ViewCalender.aspx.vb" Inherits="AllSaints.ViewCalender"%>
<%@ Register TagPrefix="uc1" TagName="TopPage" Src="TopPage.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>ViewCalender</title>
		<meta content="False" name="vs_showGrid">
		<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" encType="multipart/form-data" runat="server">
			<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TR>
					<TD colSpan="3"><uc1:toppage id="TopPage1" runat="server"></uc1:toppage></TD>
				</TR>
				<TR bgColor="white">
					<TD vAlign="top" align="left" colSpan="3">
						<table cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
							<tr>
								<td><asp:datalist id=dlChildPages runat="server" CssClass="nav1linkpipe" ShowHeader="False" ShowFooter="False" RepeatLayout="Flow" RepeatDirection="Horizontal" DataSource="<%# DsChildPageLinks1 %>" DataKeyField="ID" DataMember="GetChildPages" Width="100%" >
										<ItemTemplate>
											<asp:LinkButton id=LinkButton1 runat="server" CssClass="nav1linkoff" Text='<%# DataBinder.Eval(Container, "DataItem.PageName") %>' CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' CommandName="CalendarPage">
											</asp:LinkButton>
										</ItemTemplate>
										<SeparatorTemplate>
											|
										</SeparatorTemplate>
									</asp:datalist>
								</td>
							</tr>
						</table>
					</TD>
				</TR>
				<TR>
					<TD bgColor="#ffffff" colSpan="3">&nbsp;</TD>
				</TR>
				<TR bgColor="#ffffff">
					<TD class="maintitle2" vAlign="top" width="150">&nbsp; Calender Title:</TD>
					<TD vAlign="top"><asp:textbox id=txtPageName runat="server" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].PageName") %>' Width="250px"></asp:textbox><asp:label id="lblID" runat="server" Text="" Visible="False"></asp:label><br>
						<asp:requiredfieldvalidator id="rfvPageName" runat="server" Display="Dynamic" ControlToValidate="txtPageName" ErrorMessage="Page Title cannot be left empty !">Page Title cannot be left empty !</asp:requiredfieldvalidator><BR>
						<asp:button id="btnUpdate" runat="server" Text="Update Page Contents"></asp:button></TD>
					</TD>
					<TD vAlign="top" width="25%"><asp:image id=imgTop runat="server" Width="245px" Height="90px" ImageUrl='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].TopPicture") %>'>
						</asp:image><br>
						&nbsp;<asp:linkbutton id="lnkTopPicRemove" runat="server">Remove Picture</asp:linkbutton>
						<BR>
						<INPUT id="TopPicture" type="file" name="TopPicture" runat="server">
						<asp:button id="btnTopPicUpdate" runat="server" Text="Update"></asp:button><BR>
					</TD>
				</TR>
				<TR class="incell">
					<TD class="incell" align="middle" colSpan="3">&nbsp;<br>
					</TD>
				</TR>
				<TR class="incell">
					<TD vAlign="top" align="middle" colSpan="2" height="500">
						<asp:calendar id="ECalender" runat="server" Width="97%" Height="500px" CellPadding="0" SelectedDate="2003-08-27" VisibleDate="2003-08-27" PrevMonthText="&amp;lt; Previous Month" NextMonthText="Next Month &amp;gt;" ShowGridLines="True" BorderColor="#CDCB9B" Font-Names="Times New Roman" Font-Size="8pt" ForeColor="Olive" BorderWidth="1px">
							<TodayDayStyle CssClass="EventCalender"></TodayDayStyle>
							<SelectorStyle BackColor="#FFCC66"></SelectorStyle>
							<DayStyle HorizontalAlign="Left" Height="85px" Width="150px" CssClass="EventCalender" VerticalAlign="Top" BackColor="Ivory"></DayStyle>
							<NextPrevStyle Font-Size="11pt" Wrap="False" ForeColor="#FFFFCC"></NextPrevStyle>
							<DayHeaderStyle Font-Names="Arial" BackColor="Beige"></DayHeaderStyle>
							<SelectedDayStyle ForeColor="Black" CssClass="EventCalender" BackColor="PaleGoldenrod"></SelectedDayStyle>
							<TitleStyle Font-Size="14pt" Height="30px" ForeColor="#FFFFCC" BackColor="#C1BE84"></TitleStyle>
							<WeekendDayStyle CssClass="EventCalender"></WeekendDayStyle>
							<OtherMonthDayStyle CssClass="EventCalender" BackColor="LightYellow"></OtherMonthDayStyle>
						</asp:calendar><BR>
						<BR>
					</TD>
					<TD vAlign="top" align="middle" height="500">
						<asp:datalist id=EventList runat="server" DataSource="<%# DsEvents1 %>" DataKeyField="EventID" DataMember="GetEvents" Width="97%" CellPadding="0" Font-Names="Times New Roman" BorderWidth="2px" BorderColor="#CDCB9B" BorderStyle="Solid" CssClass="contentarea" BackColor="LightYellow">
							<SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue"></SelectedItemStyle>
							<HeaderTemplate>
								Daily Events
								<TABLE cellSpacing="0" cellPadding="0" width="100%" align="left" border="0">
									<tr>
										<td height="5" class="incell"></td>
									</tr>
									<TR>
										<TD class="incell">&nbsp;
											<asp:Label id=Label2 runat="server" Text='<%# DataBinder.Eval(DsEvents1, "Tables[GetEvents].DefaultView.[0].EventDate", "{0: MMMM dd, yyyy}") %>' Font-Size="12px" Font-Names="Arial" Font-Bold="True" Font-Name="Arial">
											</asp:Label></TD>
									</TR>
									<tr>
										<td height="5" class="incell"></td>
									</tr>
								</TABLE>
							</HeaderTemplate>
							<FooterTemplate>
								&nbsp;
								<asp:LinkButton id="lnkDeleteSelected" runat="server" CssClass="navCalender" Font-Bold="True" CommandName="DeleteSelected">Delete Selected</asp:LinkButton>
							</FooterTemplate>
							<ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>
							<ItemTemplate>
								<asp:CheckBox id=CheckBox1 runat="server" ToolTip='<%# DataBinder.Eval(Container, "DataItem.EventID") %>'>
								</asp:CheckBox>
								<asp:Label id=Label1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Details") %>'>
								</asp:Label><br>
								<br>
							</ItemTemplate>
							<FooterStyle BackColor="LemonChiffon"></FooterStyle>
							<HeaderStyle Font-Size="14pt" HorizontalAlign="Center" ForeColor="#FFFFCC" VerticalAlign="Top" BackColor="#C1BE84"></HeaderStyle>
						</asp:datalist>
						<uc1:addevent id="AddEvent1" runat="server"></uc1:addevent><BR>
					</TD>
				</TR>
				<TR class="incell">
					<TD class="incell" align="middle" colSpan="3">&nbsp;<br>
					</TD>
				</TR>
				<TR class="incell">
					<TD class="incell" align="middle" colSpan="3">&nbsp;<br>
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
