<%@ Page Language="vb" AutoEventWireup="false" Codebehind="MgrTeachers.aspx.vb" Inherits="AllSaints.MgrTeachers"%>
<%@ 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>Teachers 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 href="css/default.css" type="text/css" rel="STYLESHEET">
	</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" 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>
								<TD bgColor="#ffffff">&nbsp;<STRONG>&nbsp;</STRONG><A href="Teacher_Info.aspx"><STRONG>Create 
											New Teacher Account</STRONG></A>&nbsp;&nbsp;
									<asp:linkbutton id="lnkExport" runat="server" Font-Bold="True" Visible="False">Download Teachers Data (csv)</asp:linkbutton></TD>
							</TR>
							<TR>
								<TD bgColor="#ffffff">&nbsp;
									<asp:DataGrid id="DG_Teachers" runat="server" DataKeyField="LoginName" DataMember="GetTeacherInfo"
										AutoGenerateColumns="False" BorderColor="#DEDFDE" BorderWidth="1px" BackColor="White" CellPadding="0"
										GridLines="Horizontal" ForeColor="Black" Font-Names="Verdana" Font-Size="11px" Width="98%"
										BorderStyle="None" ShowFooter="True" HorizontalAlign="Center" AllowPaging="True" PageSize="25"
										AllowSorting="True">
										<SelectedItemStyle ForeColor="GhostWhite" BackColor="DarkSlateBlue"></SelectedItemStyle>
										<AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
										<ItemStyle CssClass="incell"></ItemStyle>
										<HeaderStyle Font-Bold="True" ForeColor="White" CssClass="menustrip"></HeaderStyle>
										<Columns>
											<asp:TemplateColumn>
												<HeaderStyle Width="20px"></HeaderStyle>
												<ItemTemplate>
													<asp:CheckBox id=CheckBox1 runat="server" ToolTip='<%# DataBinder.Eval(Container, "DataItem.LoginName") %>'>
													</asp:CheckBox>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:BoundColumn DataField="LoginName" SortExpression="LoginName" HeaderText="LoginName"></asp:BoundColumn>
											<asp:TemplateColumn SortExpression="FirstName" HeaderText="Full Name">
												<ItemTemplate>
													<asp:Label id=lblTitle runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Title") %>'>
													</asp:Label>
													<asp:Label id=lblFirstName runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.FirstName") %>'>
													</asp:Label>
													<asp:Label id=lblLastName runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.LastName") %>'>
													</asp:Label>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn SortExpression="Address1" HeaderText="Address">
												<ItemTemplate>
													<asp:Label id=lblAddress1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Address1") %>'>
													</asp:Label>,
													<asp:Label id=lblCity runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.City") %>'>
													</asp:Label>,
													<asp:Label id=lblZipcode runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ZipCode") %>'>
													</asp:Label>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:HyperLinkColumn Text="Edit" DataNavigateUrlField="LoginName" DataNavigateUrlFormatString="Teacher_Info.aspx?TID={0}"></asp:HyperLinkColumn>
										</Columns>
										<PagerStyle NextPageText="NEXT &amp;gt; " PrevPageText="&amp;lt; PREVIOUS" HorizontalAlign="Center"
											BackColor="PaleGoldenrod" CssClass="nav1linkoff"></PagerStyle>
									</asp:DataGrid><BR>
									<BR>
								</TD>
							</TR>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
