<%@ Control language="c#" Inherits="Xpdt.Portal.Signin" CodeBehind="Signin.ascx.cs" AutoEventWireup="false" %>
<%@ Register TagPrefix="Portal" TagName="Title" Src="~/DesktopModuleTitle.ascx"%>
<%@ Register TagPrefix="Portal" TagName="Divider" Src="~/ModuleDivider.ascx"%>
<%--

   The SignIn User Control enables clients to authenticate themselves using 
   the ASP.NET Forms based authentication system.

   When a client enters their username/password within the appropriate
   textboxes and clicks the "Login" button, the LoginBtn_Click event
   handler executes on the server and attempts to validate their
   credentials against a SQL database.

   If the password check succeeds, then the LoginBtn_Click event handler
   sets the customers username in an encrypted cookieID and redirects
   back to the portal home page.

   If the password check fails, then an appropriate error message
   is displayed.

--%>
<TABLE width="100%">
	<TR>
		<TD class="ModuleFrame"><portal:title id="Title1" EditText="Edit Survey" EditUrl="~/DesktopModules/EditSurvey.aspx" runat="server"></portal:title><br>
			<asp:Label id="EmailLabel" runat="server">E-mail</asp:Label><br>
			<asp:textbox id="email" runat="server" cssclass="NormalTextBox" width="130" columns="9"></asp:textbox><br>
			<asp:Label id="PasswordLabel" runat="server">Password: </asp:Label><br>
			<asp:textbox id="password" runat="server" cssclass="NormalTextBox" width="130" columns="9" textmode="password"></asp:textbox><br>
			<asp:checkbox class="<%# GetNormalStyle() %>" id=RememberCheckbox runat="server" Text="Remember Login">
			</asp:checkbox>
			<table cellSpacing="0" cellPadding="4" width="100%" border="0">
				<tr>
					<td><asp:imagebutton id="SigninBtn" runat="server" CausesValidation="False" ImageUrl="~/images/signin.gif"></asp:imagebutton><BR>
						<BR>
						<asp:linkbutton id="HelpWithPasswordBtn" runat="server" CssClass="PasswordLink">Help! I forgot my password!</asp:linkbutton><br>
						<asp:label class="NormalRed" id="Message" runat="server"></asp:label></td>
				</tr>
			</table>
			<table id="CustomerRegister" cellSpacing="0" cellPadding="4" width="100%" border="0" runat="server">
				<tr>
					<td>
						<HR width="100%" SIZE="1">
						<br>
						<asp:label class="NormalRed" id="NewCustomersLabel" runat="server">New customers, please register with us now.</asp:label><BR>
						<br>
						<asp:hyperlink id="RegisterCustomer" runat="server" ImageUrl="~/images/register.gif" NavigateUrl="~/admin/register.aspx"></asp:hyperlink><BR>
					</td>
				</tr>
			</table>
			<PORTAL:DIVIDER id="Divider1" runat="server" visible="false"></PORTAL:DIVIDER></TD>
	</TR>
</TABLE>
