<%@ Page language="vb" Codebehind="TeamSchedule.aspx.cs" AutoEventWireup="false" Inherits="Tournamant.TeamSchedule" %>
<%@ Register TagPrefix="uc1" TagName="TopPage" Src="TopPage.ascx" %>
<%@ Register TagPrefix="uc1" TagName="LeftPage" Src="LeftPage.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<HTML>
	<HEAD>
		<title>Team Schedule</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">

		
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script type="text/javascript" src="JS/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="js/jquery_ui_datepicker.js"></script>
		<script type="text/javascript" src="js/timepicker.js"></script>
		<script type="text/javascript" src="js/ui.datepicker-de.js"></script>
		<LINK rel="stylesheet" type="text/css" href="css/DatePick.css">
		<LINK rel="stylesheet" type="text/css" href="css/jquery_ui_datepicker.css">
		<LINK href="css/default.css" type="text/css" rel="STYLESHEET">
		<script type="text/javascript">
	/* <![CDATA[ */
		$(function() {
				  $('#MDate').datetime({
									userLang	: 'en',
									americanMode: true
								});
					$('#MDate').attr('readonly','readonly');			
			});
	/* ]]> */
		</script>
	</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="Green" Font-Bold="True" Font-Names="Arial"
										Font-Size="14px"></asp:Label>
									<table style="BACKGROUND-COLOR: #fefed8" cellSpacing="0" cellPadding="0" width="100%">
										<tr>
											<td style="BACKGROUND-COLOR: #c1be84; COLOR: white; FONT-SIZE: 12pt"><STRONG><FONT face="Arial"><FONT size="2">Schedule 
															&amp; Brackets</FONT> </FONT></STRONG>
											</td>
										</tr>
										<tr>
											<td>
												<table style="BACKGROUND-COLOR: #fefed8" width="100%">
													<tr>
														<td style="HEIGHT: 26px" width="10%"><FONT face="Arial"><FONT size="2"><label>Match:</label>
																</FONT></FONT>
														</td>
														<td style="HEIGHT: 26px"><FONT size="2" face="Arial"><asp:textbox style="Z-INDEX: 0" id="Match" runat="server"></asp:textbox></FONT><asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="!Required" Font-Names="Arial"
																Font-Size="11px" Display="Dynamic" ControlToValidate="Match"></asp:requiredfieldvalidator></td>
													</tr>
													<tr>
														<td><FONT face="Arial"><FONT size="2"><label>Date and Time:</label> </FONT></FONT>
														</td>
														<td><asp:textbox id="MDate" runat="server"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ErrorMessage="!Required" Font-Names="Arial"
																Font-Size="11px" ControlToValidate="MDate"></asp:requiredfieldvalidator></td>
													</tr>
													<tr style="DISPLAY: none">
														<td><FONT face="Arial"><FONT size="2"><label>Time:</label> </FONT></FONT>
														</td>
														<td><asp:textbox style="Z-INDEX: 0" id="Time" runat="server"></asp:textbox><FONT size="2" face="Arial"></FONT></td>
													</tr>
													<tr>
														<td><label><FONT size="2" face="Arial">Venue:</FONT></label>
														</td>
														<td><asp:textbox style="Z-INDEX: 0" id="Venue" runat="server"></asp:textbox><asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" ErrorMessage="!Required" Font-Names="Arial"
																Font-Size="11px" ControlToValidate="Venue"></asp:requiredfieldvalidator></td>
													</tr>
													<tr>
														<td></td>
														<td><asp:button id="btnSave" runat="server" Text="Save" Width="64px"></asp:button></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
									<table width="100%">
										<tr>
											<td><asp:datagrid id="ScheduleGrid" runat="server" Width="100%" PageSize="20" AutoGenerateColumns="False"
													CellPadding="1" BorderWidth="1px" BorderStyle="Solid" BorderColor="#CCCCCC" BackColor="White"
													AllowPaging="False">
													<HeaderStyle Font-Size="12px" 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="11px" Font-Names="Arial" HorizontalAlign="Center" ForeColor="Black" Width="20px"
																VerticalAlign="Middle" BackColor="LightGray"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Labels" runat="server">
																	<%# DataBinder.Eval(Container, "DataItem.Srno") %>
																</asp:Label>
																<asp:TextBox Visible="False" id="TextBox1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.MatchID") %>'>
																</asp:TextBox>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="Match" HeaderText="Match">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Label1" runat="server" Font-Names="Arial" Font-Size="11px">
																	<%# DataBinder.Eval(Container, "DataItem.Match") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="Date" HeaderText="Date &amp; Time">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Label2" runat="server" Font-Names="Arial" Font-Size="11px">
																	<%# DataBinder.Eval(Container, "DataItem.DateTime") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="Venue" HeaderText="Venue">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:Label id="Label3" runat="server" Font-Names="Arial" Font-Size="11px">
																	<%# DataBinder.Eval(Container, "DataItem.Vennue") %>
																</asp:Label>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="TName" HeaderText="Team">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center" Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:DropDownList id="TeamA" Width="100%" Runat="server" Font-Names="Arial" Font-Size="11px"></asp:DropDownList>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="vs.">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle Width="20px"></ItemStyle>
															<ItemTemplate>
																<FONT size="2" face="Arial">&nbsp;vs</FONT>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="Team2" HeaderText="Team">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center" Width="150px"></ItemStyle>
															<ItemTemplate>
																<asp:DropDownList id="TeamB" Width="100%" Runat="server" Font-Names="Arial" Font-Size="11px"></asp:DropDownList>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn HeaderText="Delete">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center" Width="50px"></ItemStyle>
															<ItemTemplate>
																<asp:ImageButton style="Z-INDEX: 0" id=ImageButton1 runat="server" onClientClick="return confirm('Are You Sure You Want to Delete ?')" CausesValidation="False" ImageUrl="images/delete.png" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.MatchID") %>' CommandName="Delete">
																</asp:ImageButton>
															</ItemTemplate>
														</asp:TemplateColumn>
														<asp:TemplateColumn SortExpression="Results" HeaderText="Results &amp; Stats">
															<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
															<ItemStyle HorizontalAlign="Center" Width="100px"></ItemStyle>
															<ItemTemplate>
																<a href="Stats.aspx?MatchID=<%# DataBinder.Eval(Container, "DataItem.MatchID") %>" style="border:none;"><IMG alt="" src="images\icon_view.gif" style="border:none;"></a>
															</ItemTemplate>
														</asp:TemplateColumn>
													</Columns>
													<PagerStyle HorizontalAlign="Center" ForeColor="#000066" BackColor="White"></PagerStyle>
												</asp:datagrid></td>
										<tr>
											<td align="right"><asp:button id="update" Text="Update" CausesValidation="False" Runat="server"></asp:button></td>
										</tr>
									</table>
									<br/>
								</TD>
							</TR>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
