<%@ Register TagPrefix="uc1" TagName="AddEvent" Src="AddEvent.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Counter" Src="Counter.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ViewCalender.aspx.vb" Inherits="AllSaints.ViewCalender"%>
<%@ Register TagPrefix="uc1" TagName="TopPage" Src="TopPage.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftPage" Src="LeftPage.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" colspan="2"><uc1:toppage id="TopPage1" runat="server"></uc1:toppage></TD>
				</TR>
				<tr>
					<td style="width:210px; padding-left:10px; padding-bottom:10px;" valign="top" bgcolor="#ffffff" align="left">
						<table cellpadding="0" cellspacing="0" width="100%">
							<tr>
								<td valign="top" class="LeftLinksTd">
									<uc1:leftpage id="Toppage2" runat="server"></uc1:leftpage>
								</td>
							</tr>
						</table>
					</td>
					<td style="width:100%; padding:10px;" valign=top bgcolor="#ffffff">
						<table cellpadding="0" cellspacing="0" align=left width="100%">
							<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" Width="100%" DataMember="GetChildPages" DataKeyField="ID" DataSource="<%# DsChildPageLinks1 %>" RepeatDirection="Horizontal" RepeatLayout="Flow" ShowFooter="False" ShowHeader="False" CssClass="nav1linkpipe">
													<ItemTemplate>
														<asp:LinkButton id=LinkButton1 runat="server" CssClass="nav1linkoff" Text='<%# DataBinder.Eval(Container, "DataItem.PageName") %>' CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>'>
														</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" Width="250px" Text='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].BodyHeading") %>'></asp:textbox><asp:label id="lblID" runat="server" Text="" Visible="False"></asp:label><br>
									<asp:requiredfieldvalidator id="rfvPageName" runat="server" ErrorMessage="Page Title cannot be left empty !"
										ControlToValidate="txtPageName" Display="Dynamic">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" ImageUrl='<%# DataBinder.Eval(DsViewPage1, "Tables[GetPageInfo].DefaultView.[0].TopPicture") %>' Height="90px">
									</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="center" colSpan="3">&nbsp;<br>
								</TD>
							</TR>
							<TR class="incell">
								<TD vAlign="top" align="center" colSpan="2" height="500"><asp:calendar id="ECalender" runat="server" Width="97%" Height="500px" BorderWidth="1px" ForeColor="Olive"
										Font-Size="8pt" Font-Names="Times New Roman" BorderColor="#CDCB9B" ShowGridLines="True" NextMonthText="Next Month &amp;gt;" PrevMonthText="&amp;lt; Previous Month"
										VisibleDate="2003-08-27" SelectedDate="2003-08-27" CellPadding="0">
										<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="center" height="500"><asp:datalist id=EventList runat="server" Width="97%" DataMember="GetEvents" DataKeyField="EventID" DataSource="<%# DsEvents1 %>" CssClass="contentarea" BorderWidth="2px" Font-Names="Times New Roman" BorderColor="#CDCB9B" CellPadding="0" BackColor="LightYellow" BorderStyle="Solid">
										<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="center" colSpan="3">&nbsp;<br>
								</TD>
							</TR>
							<TR class="incell">
								<TD class="incell" align="center" colSpan="3">&nbsp;<br>
								</TD>
							</TR>
						</table>
					</td>
				</tr>
			</TABLE>
			<uc1:Counter id="Counter1" runat="server"></uc1:Counter>
		</form>
	</body>
</HTML>
