    <%@ Page language="c#" Codebehind="ProjectDetails.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.TimeTracker.Web.ProjectDetails" %>
    <%@ Register TagPrefix="TimeTracker" TagName="Banner" Src="Banner.ascx" %>
    <%@ Register TagPrefix="uc1" TagName="AdminTabs" Src="AdminTabs.ascx" %>
    <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
        <HEAD>
            <title>Project Details</title>
            <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
            <LINK href="styles.css" type="text/css" rel="stylesheet">
            <script language="javascript" src="script.js"></script>
        </HEAD>
        <body>
            <form id="ProjectDetails" 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">
                            <table class="admin-tan-border" cellSpacing="20" cellPadding="0" width="600" border="0">
                                <tr height="10">
                                    <td vAlign="top">
                                        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                            <tr>
                                                <td class="header-gray">Project Configuration</td>
                                                <td align="right"><asp:button id="SaveButton" runat="server" Text="Save" CssClass="standard-text" width="53px"></asp:button>
                                                    <asp:button id="CancelButton" runat="server" Text="Cancel" CssClass="standard-text" width="53" causesvalidation="False"></asp:button>
                                                    <asp:button id="DeleteButton" runat="server" Text="Delete" CssClass="standard-text" causesvalidation="False"></asp:button></td>
                                            </tr>
                                            <tr>
                                                <td colSpan="2"><asp:label id="ErrorMessage" runat="server" CssClass="standard-text" enableviewstate="False" ForeColor="Red"></asp:label>
                                                    <hr>
                                                    Define the project and specify which users will be part of the project. Then
                                                    add categories to the project to help keep track of specific areas of product.
                                                    Press the <b>SAVE</b> button for configuration to take effect.
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr height="*">
                                    <td vAlign="top">
                                        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                            <tr>
                                                <td class="header-lightgray" width="240">PROJECT INFORMATION
                                                </td>
                                                <td width="*"><IMG height="1" src="images/spacer.gif" width="240"></td>
                                                <td class="header-lightgray" width="240">SPECIFY PROJECT MEMBERS
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colSpan="3"><IMG height="11" src="images/spacer.gif" width="1"></td>
                                            </tr>
                                            <tr height="*">
                                                <td vAlign="top">
                                                    <table cellSpacing="0" cellPadding="0" width="204" border="0">
                                                        <tr>
                                                            <td>Project Name<br>
                                                                <asp:textbox id="ProjectName" runat="server" width="194px" MaxLength="50" cssclass="standard-text"></asp:textbox></td>
                                                        </tr>
                                                        <tr>
                                                            <td><asp:requiredfieldvalidator id="ProjectNameRequiredfieldvalidator" runat="server" ErrorMessage="Project Name is a required value." ControlToValidate="ProjectName" display="Dynamic"></asp:requiredfieldvalidator></td>
                                                        </tr>
                                                        <tr>
                                                            <td><IMG height="11" src="images/spacer.gif" width="1"></td>
                                                        </tr>
                                                        <tr>
                                                            <td>Project Manager<br>
                                                                <asp:dropdownlist id="Managers" runat="server" width="193px" cssclass="standard-text"></asp:dropdownlist></td>
                                                        </tr>
                                                        <tr>
                                                            <td><asp:requiredfieldvalidator id="ManagerRequiredFieldValidator" runat="server" ErrorMessage="You must select a manager." ControlToValidate="Managers" display="Dynamic"></asp:requiredfieldvalidator></td>
                                                        </tr>
                                                        <tr>
                                                            <td><IMG height="11" src="images/spacer.gif" width="1"></td>
                                                        </tr>
                                                        <tr>
                                                            <td><IMG height="11" src="images/spacer.gif" width="1"></td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                                                    <tr>
                                                                        <td>Est.Completion Date</td>
                                                                        <td>Est.Duration</td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td><asp:textbox id="CompletionDate" runat="server" width="76px" cssclass="standard-text" columns="12"></asp:textbox><A href="javascript:OpenCalendar('CompletionDate', true)"><IMG src="images/icon-calendar.gif" border="0"></A>
                                                                        </td>
                                                                        <td><asp:textbox id="Duration" runat="server" cssclass="standard-text" columns="12" Width="49px"></asp:textbox>hrs
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td><asp:comparevalidator id="CompletionDateCompareValidator" runat="server" ErrorMessage="Date format is incorrect." display="Dynamic" controltovalidate="CompletionDate" type="Date" operator="DataTypeCheck"></asp:comparevalidator><asp:requiredfieldvalidator id="CompletionDateRequiredFieldValidator" runat="server" ErrorMessage="Est. Comletion Date is required." ControlToValidate="CompletionDate" Display="Dynamic"></asp:requiredfieldvalidator><asp:comparevalidator id="DurationCompareValidator" runat="server" ErrorMessage="Duration must be integer value." ControlToValidate="Duration" Display="Dynamic" Type="Integer" Operator="DataTypeCheck"></asp:comparevalidator><asp:requiredfieldvalidator id="DurationRequiredFieldValidator" runat="server" ErrorMessage="Duration is required." ControlToValidate="Duration" Display="Dynamic"></asp:requiredfieldvalidator><asp:rangevalidator id="RangeValidator1" runat="server" ErrorMessage="Duration is out of range" ControlToValidate="Duration" Type="Integer" MinimumValue="0" MaximumValue="99999"></asp:rangevalidator></td>
                                                        </tr>
                                                        <tr>
                                                            <td><IMG height="11" src="images/spacer.gif" width="1"></td>
                                                        </tr>
                                                        <tr>
                                                            <td><IMG height="11" src="images/spacer.gif" width="1"></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td vAlign="top">Description<br>
                                                    <asp:textbox id="Description" runat="server" cssclass="standard-text" columns="20" Width="204px" rows="8" Height="116px" TextMode="MultiLine"></asp:textbox></td>
                                                <td vAlign="top" noWrap>Project Members (CTRL+Click for multiples)<br>
                                                    <asp:listbox id="Members" runat="server" cssclass="standard-text" Width="220px" rows="9" Height="122px" SelectionMode="Multiple" DataTextField="UserName" DataValueField="UserID"></asp:listbox></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td vAlign="top">
                                        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                            <tr>
                                                <td class="header-lightgray" colSpan="3">DEFINE PROJECT CATEGORIES FOR PROJECT
                                                    MANAGEMENT
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colSpan="3"><IMG height="11" src="images/spacer.gif" width="1"></td>
                                            </tr>
                                            <tr>
                                                <td colSpan="3">Categories can be added in two ways. You can <b>ADD</b> a category
                                                    by specifying name, abbreviation (4 characters max), and duration - the amount
                                                    of hours that may be charged under the category. Or, You can <b>COPY</b> categories
                                                    that already have been defined in another project to this project.
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colSpan="3"><IMG height="11" src="images/spacer.gif" width="1"></td>
                                            </tr>
                                            <tr>
                                                <td width="410">
                                                    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                                        <tr>
                                                            <td>Name</td>
                                                            <td>Abbrev.</td>
                                                            <td>Duration(hrs)</td>
                                                            <td> </td>
                                                        </tr>
                                                        <tr>
                                                            <td vAlign="top"><asp:textbox id="CategoryName" runat="server" width="166px" enableviewstate="False" MaxLength="50" cssclass="standard-text"></asp:textbox></td>
                                                            <td vAlign="top"><asp:textbox id="Abbrev" runat="server" width="70px" enableviewstate="False" cssclass="standard-text"></asp:textbox></td>
                                                            <td vAlign="top"><asp:textbox id="CatDuration" runat="server" width="70px" enableviewstate="False" cssclass="standard-text"></asp:textbox></td>
                                                            <td vAlign="top" align="right"><asp:button id="AddButton" runat="server" Text="Add" CssClass="standard-text" width="46px"></asp:button></td>
                                                        </tr>
                                                        <tr>
                                                            <td colSpan="4"><asp:comparevalidator id="CatDurationValidator" runat="server" ErrorMessage="Duration for category must be integer value." ControlToValidate="CatDuration" Display="Dynamic" Type="Integer" Operator="DataTypeCheck"></asp:comparevalidator><asp:customvalidator id="AbbrevCustomValidator" runat="server" ErrorMessage="Duplicate category abbreviation are not allowed." display="Dynamic"></asp:customvalidator><asp:rangevalidator id="RangeValidator2" runat="server" ErrorMessage="Duration is out of range." ControlToValidate="CatDuration" display="Dynamic" Type="Integer" MinimumValue="0" MaximumValue="99999"></asp:rangevalidator><asp:regularexpressionvalidator id="CategoryNameValidator" runat="server" ErrorMessage="Category name must be alphanumeric." ControlToValidate="CategoryName" Display="Dynamic" ValidationExpression="[a-zA-Z0-9 ]*"></asp:regularexpressionvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" ErrorMessage="Category abbreviation must be alphanumeric." ControlToValidate="Abbrev" Display="Dynamic" ValidationExpression="[a-zA-Z0-9 ]*"></asp:regularexpressionvalidator></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                                <td class="header-gray" align="middle" width="100"> OR </td>
                                                <td align="right" width="260">
                                                    <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                                        <tr>
                                                            <td colSpan="2">Add Categories From Another Project</td>
                                                        </tr>
                                                        <tr>
                                                            <td><asp:dropdownlist id="Projects" runat="server" width="190px" cssclass="standard-text"></asp:dropdownlist></td>
                                                            <td align="right"><asp:button id="CopyButton" runat="server" Text="Copy" CssClass="standard-text" width="46" causesvalidation="False"></asp:button></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colSpan="3"><asp:regularexpressionvalidator id="RegularExpressionValidatorAbbrev" runat="server" ErrorMessage="Abbreviation must be between 1-4 characters long." ControlToValidate="Abbrev" Display="Dynamic" ValidationExpression="\S{1,4}"></asp:regularexpressionvalidator><asp:label id="CategoryErrorMessage" runat="server" CssClass="standard-text" enableviewstate="False" ForeColor="Red"></asp:label></td>
                                            </tr>
                                            <tr>
                                                <td colSpan="3"><IMG height="11" src="images/spacer.gif" width="1"></td>
                                            </tr>
                                            <tr>
                                                <td>List of Project Categories<br>
                                                    <asp:datagrid id="CategoriesGrid" runat="server" Width="100%" font-names="Verdana" BorderColor="White" AllowSorting="True" Font-Name="Verdana" AutoGenerateColumns="False" CellPadding="2" OnEditCommand="CategoriesGrid_OnEdit" OnDeleteCommand="CategoriesGrid_OnDelete" OnCancelCommand="CategoriesGrid_OnCancel" OnUpdateCommand="CategoriesGrid_OnUpdate" DataKeyField="CategoryID" BorderStyle="None">
                                                        <HeaderStyle Font-Bold="True" CssClass="grid-header"></HeaderStyle>
                                                        <Columns>
                                                            <asp:TemplateColumn SortExpression="Name" HeaderText="Name">
                                                                <HeaderStyle HorizontalAlign="Left" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
                                                                <ItemStyle CssClass="grid-first-item"></ItemStyle>
                                                                <ItemTemplate>
                                                                     <%# DataBinder.Eval(Container, "DataItem.Name") %>
                                                                </ItemTemplate>
                                                                <EditItemTemplate>
                                                                    <asp:textbox id=EditName Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' CssClass="Standard-text" MaxLength="50" Runat="server" AutoPostBack="false">
                                                                    </asp:textbox>
                                                                    <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="Category name is required" ControlToValidate="EditName" Display="Dynamic"></asp:RequiredFieldValidator>
                                                                </EditItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn SortExpression="Abbrev" HeaderText="Abbrev.">
                                                                <HeaderStyle HorizontalAlign="Left" Width="70px" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
                                                                <ItemStyle CssClass="grid-item"></ItemStyle>
                                                                <ItemTemplate>
                                                                     <%# DataBinder.Eval(Container, "DataItem.Abbreviation") %>
                                                                </ItemTemplate>
                                                                <EditItemTemplate>
                                                                    <asp:textbox id=EditAbbreviation Text='<%# DataBinder.Eval(Container, "DataItem.Abbreviation") %>' CssClass="Standard-text" width="70px" Runat="server" AutoPostBack="false">
                                                                    </asp:textbox>
                                                                    <asp:requiredfieldvalidator id="Requiredfieldvalidator5" runat="server" ErrorMessage="This is a required value." ControlToValidate="EditAbbreviation" display="Dynamic"></asp:requiredfieldvalidator>
                                                                    <asp:regularexpressionvalidator id="Regularexpressionvalidator3" runat="server" ErrorMessage="Abbreviation must be between 1-4 characters long." ControlToValidate="EditAbbreviation" Display="Dynamic" ValidationExpression="\S{1,4}"></asp:regularexpressionvalidator>
                                                                </EditItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn SortExpression="Duration" HeaderText="Duration(hrs)">
                                                                <HeaderStyle Wrap="False" HorizontalAlign="Right" Width="100px" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Right" CssClass="grid-item"></ItemStyle>
                                                                <ItemTemplate>
                                                                     <%# DataBinder.Eval(Container, "DataItem.EstDuration") %>
                                                                </ItemTemplate>
                                                                <EditItemTemplate>
                                                                    <asp:textbox id=EditDuration Text='<%# DataBinder.Eval(Container, "DataItem.EstDuration") %>' CssClass="Standard-text" width="70px" Runat="server" AutoPostBack="false">
                                                                    </asp:textbox>
                                                                    <asp:requiredfieldvalidator id="Requiredfieldvalidator2" runat="server" ErrorMessage="This is a required value." ControlToValidate="EditDuration" display="Dynamic"></asp:requiredfieldvalidator>
                                                                    <asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="Hours must be an integer value" ControlToValidate="EditDuration" Display="Dynamic" Type="Integer" Operator="DataTypeCheck"></asp:CompareValidator>
                                                                </EditItemTemplate>
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn HeaderText="Edit">
                                                                <HeaderStyle HorizontalAlign="Left" Width="50px" CssClass="grid-header" VerticalAlign="Middle"></HeaderStyle>
                                                                <ItemStyle HorizontalAlign="Center" CssClass="grid-edit-column"></ItemStyle>
                                                                <ItemTemplate>
                                                                    <asp:imagebutton runat="server" ImageUrl="images/icon-pencil.gif" CommandName="Edit" CausesValidation="false" ID="EditButton"></asp:imagebutton>
                                                                    <img src="images/spacer.gif" width="3">
                                                                    <asp:imagebutton Runat="server" ImageUrl="images/icon-delete.gif" CommandName="Delete" CausesValidation="False" ID="CatDeleteButton"></asp:imagebutton>
                                                                </ItemTemplate>
                                                                <EditItemTemplate>
                                                                    <asp:imagebutton runat="server" ImageUrl="images/icon-floppy.gif" CommandName="Update" CausesValidation="True" ID="UpdateButton"></asp:imagebutton>
                                                                    <img src="images/spacer.gif" width="3">
                                                                    <asp:imagebutton runat="server" ImageUrl="images/icon-pencil-x.gif" CommandName="Cancel" CausesValidation="false" ID="CatCancelButton"></asp:imagebutton>
                                                                </EditItemTemplate>
                                                            </asp:TemplateColumn>
                                                        </Columns>
                                                    </asp:datagrid><asp:customvalidator id="ProjectsGridCustomValidator" runat="server" enableviewstate="False" ErrorMessage="A project must have at least one category." display="Dynamic"></asp:customvalidator></td>
                                                <td> </td>
                                                <td> </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr height="10">
                                    <td vAlign="top">
                                        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                                            <tr>
                                                <td>
                                                    <hr>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right"><asp:button id="SaveButton2" runat="server" Text="Save" CssClass="standard-text" width="53px"></asp:button>
                                                    <asp:button id="CancelButton2" runat="server" Text="Cancel" CssClass="standard-text" width="53" causesvalidation="False"></asp:button>
                                                    <asp:button id="DeleteButton2" runat="server" Text="Delete" CssClass="standard-text" causesvalidation="False"></asp:button></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="11"><IMG height="11" src="images/spacer.gif" width="11"></td>
                    </tr>
                </table>
            </form>
        </body>
    </HTML>