<%@ Register TagPrefix="uc1" TagName="Counter" Src="Counter.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="MgrCensus.aspx.vb" Inherits="AllSaints.frmMgr"%>
<%@ 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>Census Management</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">
		<LINK href="css/default.css" type="text/css" rel="STYLESHEET">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<table id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<TR>
					<TD bgColor="white" 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">
						<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>
								<td bgColor="white">&nbsp;&nbsp;
									<asp:linkbutton id="lnkExport" runat="server" Font-Bold="True">Download Census Data (csv)</asp:linkbutton></td>
							</tr>
							<TR>
								<TD bgColor="#ffffff" width="100%">&nbsp;</TD>
							</TR>
							<TR>
								<TD bgColor="#ffffff" width="100%"><asp:datagrid id="DG_Census" runat="server" AllowSorting="True" PageSize="25" Font-Names="Verdana"
										Font-Size="10px" BorderStyle="None" HorizontalAlign="Center" ShowFooter="True" ForeColor="Black" GridLines="Horizontal"
										CellPadding="0" BackColor="White" BorderWidth="1px" BorderColor="#DEDFDE" AllowPaging="True" Width="100%" DataKeyField="ID"
										DataMember="GetAllCensus" AutoGenerateColumns="False">
										<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#CE5D5A"></SelectedItemStyle>
										<AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
										<ItemStyle CssClass="incell" Width="100%"></ItemStyle>
										<HeaderStyle Font-Bold="True" ForeColor="White" CssClass="menustrip" Width="100%"></HeaderStyle>
										<Columns>
											<asp:TemplateColumn>
												<HeaderStyle Width="20px"></HeaderStyle>
												<ItemTemplate>
													<asp:CheckBox id=CheckBox1 runat="server" ToolTip='<%# DataBinder.Eval(Container, "DataItem.ID") %>'>
													</asp:CheckBox>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:BoundColumn DataField="FName1" SortExpression="FName1" HeaderText="First Name">
												<HeaderStyle Width="30%"></HeaderStyle>
												<ItemStyle Width="30%"></ItemStyle>
											</asp:BoundColumn>
											<asp:BoundColumn DataField="LName" SortExpression="LName" HeaderText="Last Name">
												<HeaderStyle Width="30%"></HeaderStyle>
												<ItemStyle Width="30%"></ItemStyle>
											</asp:BoundColumn>
											<asp:BoundColumn DataField="PostDate" SortExpression="PostDate" HeaderText="Post Date" DataFormatString="{0:dd MMM, yyyy}">
												<HeaderStyle Width="20%"></HeaderStyle>
												<ItemStyle Width="20%"></ItemStyle>
											</asp:BoundColumn>
											<asp:HyperLinkColumn Text="Full Details" DataNavigateUrlField="ID" DataNavigateUrlFormatString="ViewCensus.aspx?ID={0}">
												<HeaderStyle Width="15%"></HeaderStyle>
												<ItemStyle Width="15%"></ItemStyle>
											</asp:HyperLinkColumn>
										</Columns>
										<PagerStyle NextPageText="NEXT &amp;gt; " PrevPageText="&amp;lt; PREVIOUS" HorizontalAlign="Center"
											BackColor="PaleGoldenrod" CssClass="nav1linkoff"></PagerStyle>
									</asp:datagrid></TD>
							</TR>
							<tr>
								<td bgColor="white" colSpan="2">&nbsp;</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
			<uc1:Counter id="Counter1" runat="server"></uc1:Counter>
		</form>
	</body>
</HTML>
