<%@ Page language="vb" Codebehind="TeamListing.aspx.cs" AutoEventWireup="false" Inherits="Tournamant.TeamListing" %>
<%@ 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>Team Lables</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">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="css/default.css" type="text/css" rel="STYLESHEET">
	</HEAD>
	<body>
		<form id="Form2" 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" style="padding-left:10px;padding-right:10px;">
									<asp:label id=Confirmation runat="server" ForeColor="#00C000" Font-Bold="True" Font-Names="Arial" Font-Size="Medium" Visible="False"></asp:label>
									<table  width="100%">
										<tr>
											<td><FONT color="#404409" face="Arial"><STRONG>Team Listing </STRONG></FONT>
											</td>
										</tr>
										<tr>
											<td><asp:datagrid id="TeamNaming" PageSize="20" AutoGenerateColumns="False" CellPadding="1" BorderWidth="1px"
													BorderStyle="Solid" BorderColor="#CCCCCC" BackColor="White" AllowPaging="False" runat="server"
													Width="100%">
													<HeaderStyle Font-Size="X-Small" Font-Names="arial" Font-Bold="True" ForeColor="White" BackColor="#C1BE84"></HeaderStyle>
													<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
													<Columns>
														<asp:TemplateColumn HeaderText="SNo">
															<ItemStyle Font-Size="XX-Small" HorizontalAlign="Center" ForeColor="Black" Width="30px" VerticalAlign="Middle"
																BackColor="LightGray"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Labels" runat="server" Font-Size="11px" Font-Names="Arial">
																	<%# DataBinder.Eval(Container, "DataItem.Srno") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="SName" HeaderText="School Name">
															<ItemStyle Width="250px"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Label1" runat="server" Font-Size="11px" Font-Names="Arial">
																	<%# DataBinder.Eval(Container, "DataItem.SchoolName") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="TName" HeaderText="Coach Name">
															<ItemStyle Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Label2" runat="server" Font-Size="11px" Font-Names="Arial">
																	<%# DataBinder.Eval(Container, "DataItem.Coach") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="TName" HeaderText="City">
															<ItemStyle Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Label3" runat="server" Font-Size="11px" Font-Names="Arial">
																	<%# DataBinder.Eval(Container, "DataItem.City") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="TName" HeaderText="Grade">
															<ItemStyle Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Label4" runat="server" Font-Size="11px" Font-Names="Arial">
																	<%# DataBinder.Eval(Container, "DataItem.Grade") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="TName" HeaderText="Registration Date">
															<ItemStyle Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Label5" runat="server" Font-Size="11px" Font-Names="Arial">
																	<%# DataBinder.Eval(Container, "DataItem.CreatedDate") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="TName" HeaderText="Team Label">
															<ItemStyle Width="250px"></ItemStyle>
															<ItemTemplate>
																<asp:TextBox id="TeamLabel" runat="server" Width="100%" BackColor="transparent" BorderStyle="None" Text='<%# DataBinder.Eval(Container, "DataItem.TeamLabel") %>' Font-Size="11px" Font-Names="Arial">
																</asp:TextBox>
																<asp:TextBox id="CID" Visible="False" runat="server" Width="100%" BackColor="transparent" BorderStyle="None" Text='<%# DataBinder.Eval(Container, "DataItem.CoachID") %>' Font-Size="11px" Font-Names="Arial">
																</asp:TextBox>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="Edit">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center" Width="50px"></ItemStyle>
															<ItemTemplate>
																<a style="border:none;" href='EditCoach.aspx?CoachID=<%# DataBinder.Eval(Container, "DataItem.CoachID") %>'>
																	<img style="border:none;" src="images/edit.gif" /> </a>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="Delete">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center" Width="50px"></ItemStyle>
															<ItemTemplate>
																
																<asp:ImageButton id="ImageButton1" title="Delete" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.CoachID") %>' CommandName="Delete"  runat="server" ImageUrl="images/delete.png"></asp:ImageButton>
															</ItemTemplate>
														</asp:TemplateColumn>
													</Columns>
													<PagerStyle HorizontalAlign="Center" ForeColor="#000066" BackColor="White"></PagerStyle>
												</asp:datagrid></td>
										</tr>
										<tr>
											<td width="80%" align="right"><asp:button id="Save" runat="server" Width="56px" Text="Update"></asp:button></td>
										</tr>
									</table>
								</TD>
							</TR>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>