<%@ Page language="c#" Codebehind="ManualLogin.aspx.cs" AutoEventWireup="false" Inherits="WoodgroveNet.Templates.ManualLogin" EnableSessionState="False"%>
<%@ Register TagPrefix="uc1" TagName="HeadTags" Src="../UserControls/HeadTags.ascx" %>
<%@Import Namespace="System.Collections.Specialized" %>
<%@Import Namespace="System.Web" %>
<%@Import Namespace="System.Web.Security" %>
<%@Import Namespace="System.Security.Principal" %>
<%@Import Namespace="System.Web.Security" %>
<%@Import Namespace="System.Data" %>
<%@Import Namespace="System.Data.OleDb" %>
<%@Import Namespace="System.Xml" %>
<html>
	<head>
		<title>ManualLogin</title> 
		<!-- Microsoft Content Management Server template file -->
		<%
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//' Microsoft Content Management Server - Sample Code
//'
//' This sample code is provided "AS IS" with no warranties, and confers no rights.
//' You assume all risk for your use.  2002 Microsoft Corporation. All rights reserved.
//'
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
%>
		<meta content="Microsoft Visual Studio 7.0" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<link href="/WoodgroveNet/Style/Styles.css" type="text/css" rel="stylesheet">
		<script language="JavaScript" type="text/javascript">
		// ---- [Private] To refresh the input box value based on the dropdown list selection
			//This code is meant for displaying the supported domains in a list box on teh screen.
			//If you want to display the supported domains, uncomment this code.
			/*
			function WBC_onChangeDomain()
			{
			var nOptIndex = window.document.ManualLogin.NR_DOMAIN_LIST.selectedIndex;
			var Domain = window.document.ManualLogin.NR_DOMAIN_LIST.options[nOptIndex].value;
			window.document.ManualLogin.TxtInsDomains.value = Domain;
			return false;
			}
			*/
		</script>
	</head>
	<body>
		<!--Add this property to the body tag is you want to display the list of supported domains on the browser
	onload="WBC_onChangeDomain();"
	-->
		<form id="ManualLogin" runat="server">
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<br>
			<table cellSpacing="0" cellPadding="0" width="65%" align="center">
				<tr>
					<td>
						<div id="SSLWarning" runat="server"></div>
					</td>
				</tr>
			</table>
			<table cellSpacing="0" cellPadding="0" width="65%" align="center">
				<tr>
					<td vAlign="bottom" width="173" background="../images/login.gif" height="70%"><IMG height="100%" alt="" src="../images/login.gif" width="173">
					</td>
					<td>
						<table height="70%" bgColor="#336633">
							<tr>
								<td width="20%"></td>
								<td>
									<table>
										<tr>
											<td width="22%" colSpan="2">
												<div id="OutMessage" runat="server"></div>
											</td>
										</tr>
										<!--
										This code is meant for displaying the list of supported domains on the screen in a list box
										If you want to display the list of domains, uncomment this code.
										<tr>
											<td class="LoginText" width="22%"><asp:literal id="LTManualLoginSupportedDomains" runat="server" Text="Supported Domains:"></asp:literal></td>
											<td class="Domain"><select onchange="WBC_onChangeDomain();" name="NR_DOMAIN_LIST">
										-->
										<%
										/*
													string valSelTxtDomain = Request.Form["NR_DOMAIN_LIST"];
													
													StringCollection domains = Microsoft.ContentManagement.Web.Security.CmsFormsAuthentication.Domains;
										            
													foreach ( string domain in domains )
													{
														string DomainWinNT = domain.Substring( 0, 1 );
														//Set the value of each option to the domain name.
														//HttpContext.Current.Response.Write("<OPTION VALUE=\"" + domain + "\">");
										  
														// first, check to see if WinNT domain.
														if ( DomainWinNT.Equals( "W" ) )
														{
															//Set the displayed value of each option to the domain name w/o the "WinNT://" in front.
															domain.Substring( 8 );
														}
														// For LDAP (and all other) entries, just use the literal name for the display name
														
														if (valSelTxtDomain == domain)
														{
															//Set the value of each option to the domain name.
															HttpContext.Current.Response.Write("<OPTION selected VALUE=\"" + domain + "\">");
														}
														else
														{
															//Set the value of each option to the domain name.
															HttpContext.Current.Response.Write("<OPTION VALUE=\"" + domain + "\">");
														}
														HttpContext.Current.Response.Write( domain.Substring(8) );
													}
										*/
												%>
										<!--
												</select>
											</td>
										</tr>
										-->
										<tr>
											<td class="LoginText" width="22%"><asp:literal id="LTManualLoginDomain" runat="server" Text="Domain:"></asp:literal></td>
											<td><input id="TxtInsDomains" type="text" name="TxtInsDomains" runat="server">
											</td>
										</tr>
										<tr>
											<td class="LoginText" width="22%"><asp:literal id="LTManualLoginNTUserName" runat="server" Text="NTUserName:"></asp:literal></td>
											<td><input id="TxtNTUser" type="text" name="TxtNTUser" runat="server">
											</td>
										</tr>
										<tr>
											<td class="LoginText" width="22%"><asp:literal id="LTManualLoginNTPassword" runat="server" Text="NTPassword:"></asp:literal></td>
											<td><input id="TxtNTPassword" type="password" name="TxtNTPassword" runat="server">
											</td>
										</tr>
										<tr>
											<td class="LoginText" width="22%">&nbsp;
											</td>
											<td class="LoginText"><asp:checkbox id="CheckPersistent" runat="server"></asp:checkbox><asp:literal id="LTManualLoginRememberCredentials" runat="server" Text="Remember my credentials"></asp:literal></td>
										</tr>
										<tr>
											<td width="22%">&nbsp;
											</td>
											<td>&nbsp;
											</td>
										</tr>
										<tr>
											<td width="22%">&nbsp;
											</td>
											<td><input id="ManualLoginSubmit" type="submit" value="Continue" name="Submit1" runat="server">
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
					<td></td>
				</tr>
			</table>
		</form>
	</body>
</html>
