<%@ Page language="c#" Codebehind="TimeSheet.aspx.cs" Inherits="ASPNET.StarterKit.TimeTracker.MobileWeb.TimeSheet" AutoEventWireup="false" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" %>
<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="http://schemas.microsoft.com/Mobile/Page" name="vs_targetSchema">
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
	<mobile:stylesheet id="Stylesheet1" ReferencePath="Styles.ascx" runat="server"></mobile:stylesheet>
	<mobile:form id="FormMain" runat="server" StyleReference="Form">
		<mobile:label id="Title" runat="server" StyleReference="title">Time Sheet</mobile:label>
		<mobile:label id="WeekEndingMain" runat="server" BreakAfter="False">Week Ending</mobile:label>
		<mobile:command id="ChangeWeekMain" runat="server" Wrapping="NoWrap" Format="Link">Change Week</mobile:command>
		<mobile:label id="TotalHoursLabel" runat="server">Total Hours:</mobile:label>
		<mobile:objectlist id="TimeEntryGrid" runat="server" CommandStyle-ForeColor="White" CommandStyle-StyleReference="subcommand" CommandStyle-BackColor="White" LabelField="Description" TableFields="Day;Hours;Description" AutoGenerateFields="False" LabelStyle-StyleReference="list-header" BackColor="White">
			<command name="SelectCommand" text="Need to create a command here to make the first column a link"></command>
			<field title="Day" name="Day" dataformatstring="{0:ddd}" datafield="EntryDate"></field>
			<field title="Hrs" name="Hours" dataformatstring="{0:f}" datafield="Duration"></field>
			<field title="Description" name="Description" datafield="Description"></field>
			<field title="EntryLogID" name="EntryLogID" datafield="EntryLogID" visible="False"></field>
		</mobile:objectlist>
		<mobile:panel id="Panel2" runat="server">
			<mobile:devicespecific id="DeviceSpecific2" runat="server">
				<choice filter="IsHTML32">
					<contenttemplate>
						<div width="100%" align="center">
							<input id="Button1" type="button" value="Add Entry" name="Button1" runat="server" onserverclick="AddEntryCommand2_Click"></input>
						</div>
					</contenttemplate>
				</choice>
			</mobile:devicespecific>
			<mobile:command id="AddEntryCommand2" runat="server" BreakAfter="False" Wrapping="NoWrap" Alignment="Center">Add Entry</mobile:command>
		</mobile:panel>
	</mobile:form>
	<mobile:form id="FormProject" runat="server" StyleReference="Form">
		<mobile:label id="Label2" runat="server" StyleReference="title" Font-Name="Arial">Project</mobile:label>
		<mobile:label id="Label1" runat="server">Select a Project:</mobile:label>
		<mobile:selectionlist id="ProjectListBox" runat="server" Wrapping="NoWrap" Rows="6" SelectType="ListBox" DataTextField="Name" DataValueField="ProjectID"></mobile:selectionlist>
		<mobile:command id="SelectProjectCommand" runat="server">Select</mobile:command>
	</mobile:form>
	<mobile:form id="FormDetail" runat="server" StyleReference="Form">
		<mobile:label id="Label3" runat="server" StyleReference="title">Time Entry</mobile:label>
		<mobile:label id="WeekEndingDetail" runat="server" BreakAfter="False">Week Ending:</mobile:label>
		<mobile:command id="ChangeWeekDetail" runat="server" Wrapping="NoWrap" Format="Link">Change Week</mobile:command>
		<mobile:label id="ProjectLabel" runat="server" BreakAfter="False">Project:</mobile:label>
		<mobile:command id="ChangeProjectCommand" runat="server" Wrapping="NoWrap" Format="Link">Change</mobile:command>
		<mobile:label id="CategoryLabel" runat="server">Category:</mobile:label>
		<mobile:selectionlist id="CategoryList" runat="server" DataTextField="Abbreviation" DataValueField="CategoryID"></mobile:selectionlist>
		<mobile:label id="DayLabel" runat="server">Day:</mobile:label>
		<mobile:selectionlist id="DayList" runat="server" DataTextField="Day" DataValueField="Date"></mobile:selectionlist>
		<mobile:label id="HoursLabel" runat="server">Hours:</mobile:label>
		<mobile:textbox id="HoursText" runat="server"></mobile:textbox>
		<mobile:label id="EntryDescriptionLabel" runat="server">Description:</mobile:label>
		<mobile:textbox id="EntryDescriptionText" runat="server"></mobile:textbox>
		<mobile:command id="SaveCommand" runat="server">Save</mobile:command>
		<mobile:command id="DeleteCommand" runat="server">Delete</mobile:command>
		<mobile:command id="CancelCommand" runat="server">Cancel</mobile:command>
		<mobile:requiredfieldvalidator id="RequiredFieldValidatorHrs" runat="server" Font-Size="Small" ControlToValidate="HoursText" ErrorMessage="Hours is required"></mobile:requiredfieldvalidator>
		<mobile:requiredfieldvalidator id="RequiredFieldValidatorDesc" runat="server" Font-Size="Small" ControlToValidate="EntryDescriptionText" ErrorMessage="Description is required"></mobile:requiredfieldvalidator>
		<mobile:comparevalidator id="CompareValidatorHrs" runat="server" Font-Size="Small" ControlToValidate="HoursText" ErrorMessage="Hours field must be numeric" Operator="DataTypeCheck" Type="Currency"></mobile:comparevalidator>
		<mobile:label id="HiddenProjectName" runat="server" Visible="False">0</mobile:label>
		<mobile:label id="HiddenProjectID" runat="server" Visible="False">0</mobile:label>
		<mobile:label id="HiddenLogID" runat="server" Visible="False">0</mobile:label>
		<mobile:label id="HiddenDate" runat="server" Visible="False">EntryDate</mobile:label>
		<mobile:label id="HiddenOrigin" runat="server" Visible="False">Originated Form</mobile:label>
	</mobile:form>
	<mobile:form id="FormCalendar" runat="server" StyleReference="Form">
		<mobile:label id="Label4" runat="server" StyleReference="title">Select Week</mobile:label>
		<mobile:calendar id="Calendar1" runat="server" StyleReference="standard-text" BackColor="White" Font-Name="verdana" Font-Size="Small"></mobile:calendar>
	</mobile:form>
</body>
