<%@ Page language="vb" Codebehind="ProjectList.aspx.vb" AutoEventWireup="false" Inherits="ASPNET.StarterKit.TimeTracker.Web.ProjectList" %>
<%@ Register TagPrefix="TimeTracker" TagName="AdminTabs" Src="AdminTabs.ascx" %>
<%@ Register TagPrefix="TimeTracker" TagName="Banner" Src="Banner.ascx" %>
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Project List</title>
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<link href="styles.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body>
		<form id="ProjectList" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td vAlign="top" background="images/bars.gif" height="46"><timetracker:banner id="Banner1" runat="server"></timetracker:banner></td>
				</tr>
				<tr>
					<td class="tab-active" vAlign="top" height="15"><img height="15" src="images/spacer.gif" width="15"></td>
				</tr>
			</table>
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td width="8"><img height="8" src="images/spacer.gif" width="8"></td>
					<td vAlign="top">
						<timetracker:admintabs id="AdminTabs1" runat="server"></timetracker:admintabs>
						<table class="admin-tan-border" height="530" cellSpacing="20" cellPadding="0" width="100%" border="0">
							<tr>
								<td height="20"><asp:button id="NewProjectButton" runat="server" CssClass="standard-text" Text="建立新的專案"></asp:button></td>
							</tr>
							<tr vAlign="top" height="*">
								<td>
									<asp:datagrid id="ProjectsGrid" runat="server" OnPageIndexChanged="ProjectsGrid_Page" allowpaging="True" BorderColor="White" BorderStyle="None" Width="100%" CellPadding="2" AutoGenerateColumns="False" AllowSorting="True">
										<HeaderStyle CssClass="grid-header"></HeaderStyle>
										<Columns>
											<asp:HyperLinkColumn DataNavigateUrlField="ProjectID" DataNavigateUrlFormatString="ProjectDetails.aspx?id={0}&amp;index=2" DataTextField="Name" SortExpression="Name" HeaderText="專案 (按下專案名稱-編輯)">
												<HeaderStyle HorizontalAlign="Left" Width="65%" CssClass="grid-header"></HeaderStyle>
												<ItemStyle CssClass="grid-first-item"></ItemStyle>
											</asp:HyperLinkColumn>
											<asp:TemplateColumn SortExpression="ManagerUserName" HeaderText="管理員">
												<HeaderStyle HorizontalAlign="Left" Width="15%" CssClass="grid-header"></HeaderStyle>
												<ItemStyle CssClass="grid-item"></ItemStyle>
												<ItemTemplate>
													&nbsp;<%# DataBinder.Eval(Container, "DataItem.ManagerUserName") %>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn SortExpression="CompletionDate" HeaderText="完成">
												<HeaderStyle HorizontalAlign="Left" Width="10%" CssClass="grid-header"></HeaderStyle>
												<ItemStyle HorizontalAlign="Left" CssClass="grid-item"></ItemStyle>
												<ItemTemplate>
													&nbsp;<%# DataBinder.Eval(Container, "DataItem.EstCompletionDate", "{0:d}") %>
												</ItemTemplate>
											</asp:TemplateColumn>
											<asp:TemplateColumn SortExpression="Duration" HeaderText="區間">
												<HeaderStyle HorizontalAlign="Right" Width="10%" CssClass="grid-header"></HeaderStyle>
												<ItemStyle HorizontalAlign="Right" CssClass="grid-last-item"></ItemStyle>
												<ItemTemplate>
													&nbsp;<%# DataBinder.Eval(Container, "DataItem.EstDuration") %>
												</ItemTemplate>
											</asp:TemplateColumn>
										</Columns>
										<PagerStyle HorizontalAlign="Center"></PagerStyle>
									</asp:datagrid>
								</td>
							</tr>
							<tr vAlign="top">
								<td colSpan="3" height="12"><img height="1" src="images/spacer.gif" width="1"></td>
							</tr>
						</table>
					</td>
					<td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
				</tr>
				<tr>
					<td vAlign="top" colSpan="5" height="15"><img height="15" src="images/spacer.gif" width="15"></td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
