    <%@ Page language="vb" Codebehind="ResourceReport.aspx.vb" AutoEventWireup="false" Inherits="ASPNET.StarterKit.TimeTracker.Web.ResourceReportForm" %>
    <%@ Register TagPrefix="TimeTrack" TagName="Banner" Src="Banner.ascx" %>
    <%@ Import Namespace="ASPNET.StarterKit.TimeTracker.BusinessLogicLayer" %>
    <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
        <HEAD>
            <title>Resource Report Page</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="ResourceReportForm" method="post" runat="server">
                <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                    <tr>
                        <td vAlign="top" background="images/bars.gif" height="46"><timetrack:banner id="Banner1" runat="server"></timetrack: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="11"><img height="11" src="images/spacer.gif" width="11"></td>
                        <td>
                            <asp:hyperlink ID="BackLink1" Text='< Back to Reports' Runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td width="11" colspan="2"><img height="11" src="images/spacer.gif" width="11">
                        </td>
                    </tr>
                    <tr>
                        <td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
                        <td valign="top">
                            <table class="tan-border" cellSpacing="11" cellPadding="0" width="100%" border="0" height="526">
                                <tr vAlign="top">
                                    <td>
                                        <asp:label id="NoData" runat="server" Visible="False" CssClass="header-gray">No Data Retrieved.</asp:label>
                                        <asp:datalist id="UserList" runat="server" Width="100%">
                                            <headertemplate>
                                                <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                                    <tr>
                                                        <td colspan="3" class="header-gray">Resource Report</td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3"> </td>
                                                    </tr>
                                                    <tr>
                                                        <td width="150" class="report-header">Beginning Date</td>
                                                        <td width="150" class="report-header">Ending Date</td>
                                                        <td width="*" class="report-header"> </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="report-text">
                                                            <asp:Label ID="StartDate" Runat="server" Text='<%# _startDate.ToString("d") %>' /></td>
                                                        <td class="report-text">
                                                            <asp:Label ID="EndDate" Runat="server" Text='<%# _endDate.ToString("d") %>' /></td>
                                                        <td></td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="3"> </td>
                                                    </tr>
                                                </table>
                                            </headertemplate>
                                            <itemtemplate>
                                                <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                                    <tr>
                                                        <td width="150" class="report-main-header">Consultant</td>
                                                        <td width="78" align="right" class="report-main-header">Total Hours</td>
                                                        <td width="*" class="report-main-header"> </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="report-text"><%# DataBinder.Eval(Container.DataItem, "FullName") %></td>
                                                        <td class="report-text" align="right"><%# DataBinder.Eval(Container.DataItem, "TotalHours") %></td>
                                                        <td class="report-text"> </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="24" colspan="3"> </td>
                                                    </tr>
                                                </table>
                                                <table cellSpacing="0" cellPadding="3" width="100%" border="0">
                                                    <tr>
                                                        <td>
                                                            <asp:datagrid id="TimeEntryGrid" DataSource='<%# ListTimeEntry(TTSecurity.GetUserID(), CInt(DataBinder.Eval(Container.DataItem, "UserID")), _startDate, _endDate) %>' runat="server" BorderStyle="None" Width="100%" CellPadding="4" AutoGenerateColumns="False" Font-Name="Verdana" AllowSorting="True" BorderColor="White" OnSortCommand="TimeEntryGrid_Sort">
                                                                <headerstyle Font-Bold="True" CssClass="report-header"></headerstyle>
                                                                <columns>
                                                                    <asp:templatecolumn SortExpression="EntryDate" HeaderText="Date">
                                                                        <headerstyle HorizontalAlign="Left" Width="25px" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
                                                                        <itemstyle HorizontalAlign="Left" Width="25px" CssClass="report-text"></itemstyle>
                                                                        <itemtemplate>
                                                                            <%# DataBinder.Eval(Container, "DataItem.EntryDate", "{0:d}") %>
                                                                        </itemtemplate>
                                                                    </asp:templatecolumn>
                                                                    <asp:templatecolumn SortExpression="ProjectName" HeaderText="Project">
                                                                        <headerstyle HorizontalAlign="Left" Width="120px" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
                                                                        <itemstyle CssClass="report-text" Width="120px" Wrap="False"></itemstyle>
                                                                        <itemtemplate>
                                                                            <%# DataBinder.Eval(Container, "DataItem.ProjectName") %>
                                                                        </itemtemplate>
                                                                    </asp:templatecolumn>
                                                                    <asp:templatecolumn SortExpression="CategoryName" HeaderText="Cat.">
                                                                        <headerstyle HorizontalAlign="Left" Width="20px" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
                                                                        <itemstyle CssClass="report-text" Width="20px"></itemstyle>
                                                                        <itemtemplate>
                                                                            <%# DataBinder.Eval(Container.DataItem, "CategoryShortName") %>
                                                                        </itemtemplate>
                                                                    </asp:templatecolumn>
                                                                    <asp:templatecolumn SortExpression="Duration" HeaderText="Hrs.">
                                                                        <headerstyle HorizontalAlign="Right" Width="40px" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
                                                                        <itemstyle HorizontalAlign="Right" CssClass="report-text" Width="40px"></itemstyle>
                                                                        <itemtemplate>
                                                                            <%# DataBinder.Eval(Container.DataItem, "Duration", "{0:f}") %>
                                                                        </itemtemplate>
                                                                    </asp:templatecolumn>
                                                                    <asp:templatecolumn SortExpression="Description" HeaderText="Description">
                                                                        <headerstyle HorizontalAlign="Left" CssClass="report-header" VerticalAlign="Middle"></headerstyle>
                                                                        <itemstyle CssClass="report-text" Wrap="False"></itemstyle>
                                                                        <itemtemplate>
                                                                            <%# DataBinder.Eval(Container, "DataItem.Description") %>
                                                                        </itemtemplate>
                                                                    </asp:templatecolumn>
                                                                </columns>
                                                            </asp:datagrid>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="48"> </td>
                                                    </tr>
                                                </table>
                                            </itemtemplate>
                                        </asp:datalist>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
                    </tr>
                    <tr>
                        <td width="11" colspan="2"><img height="11" src="images/spacer.gif" width="11"></td>
                    </tr>
                    <tr>
                        <td width="11"><img height="11" src="images/spacer.gif" width="11"></td>
                        <td>
                            <asp:hyperlink ID="BackLink2" Text='< Back to Reports' Runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td vAlign="top" height="15" colspan="5"><img height="15" src="images/spacer.gif" width="15"></td>
                    </tr>
                </table>
            </form>
        </body>
    </HTML>