<%@ Register TagPrefix="TimeTracker" TagName="Banner" Src="Banner.ascx" %>
<%@ Register TagPrefix="TimeTracker" TagName="AdminTabs" Src="AdminTabs.ascx" %>
<%@ Page language="c#" Codebehind="ProjectList.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.TimeTracker.Web.ProjectList" %>
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>项目列表</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" Text="创建新工程" CssClass="standard-text"></asp:button></td>
							</tr>
							<tr vAlign="top" height="*">
								<td><asp:datagrid id="ProjectsGrid" runat="server" AllowSorting="True" AutoGenerateColumns="False"
										CellPadding="2" Width="100%" BorderStyle="None" BorderColor="White" allowpaging="True" OnPageIndexChanged="ProjectsGrid_Page">
										<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>
