<?php
	/*
	** File: login
	** Description: form for logging in
	** Version: $Revision: 1.10 $
	** Created: 04/22/1999
	** Author: Leon Atkinson
	** Email: leon@clearink.com
	** CVS Author: $Author: jj $
	** Last Revised: $Date: 1999/12/09 03:50:06 $
	** Log : $Log: login,v $
	** Log : Revision 1.10  1999/12/09 03:50:06  jj
	** Log : Adding "name" parameter to login form in order to fix the JavaScript (bug found
	** Log : by Jon Griffin).
	** Log :
	** Log : Revision 1.9  1999/12/07 21:45:10  leon
	** Log : All forms should be using StartForm now...
	** Log :
	** Log : Revision 1.8  1999/10/13 22:19:04  chris
	** Log : Moving text into constants in preparation of localization support.
	** Log :
	** Log : Revision 1.7  1999/10/13 00:42:30  chris
	** Log : Moving text into constants in preparation of localization support.
	** Log :
	** Log : Revision 1.6  1999/09/08 00:11:39  jj
	** Log : When you go to the login screen, the "login" text box is automatically focused.
	** Log :
	** Log : Revision 1.5  1999/08/18 22:32:18  leon
	** Log : Returning opening PHP tag to XML-friendly tag
	** Log :
	** Log : Revision 1.4  1999/07/28 19:27:33  leon
	** Log : Mass update based on code donation from a live project
	** Log :
	**
	** Copyright (c) 1999 Working Dogs.  All rights reserved.
	*/

	/* Do the login form. */
	print("<TABLE>\n");
	
	print(StartForm("contents", 'post', 'LOGIN_USER', TRUE, '', '', '', 
		'loginForm'));

	print("<TR>\n");
	print("<TD>" . L_LOGIN_NAME . "</TD>");
	print("<TD><INPUT TYPE=\"text\" NAME=\"inputLogin\" VALUE=\"\" SIZE=\"32\"></TD>\n");
	print("</TR>\n");


	print("<TR>\n");
	print("<TD>" . L_LOGIN_PASSWORD . "</TD>");	
	print("<TD><INPUT TYPE=\"password\" NAME=\"inputPassword\" VALUE=\"\" " . 
		"SIZE=\"32\"></TD>\n");
	print("</TR>\n");


	print("<TR>\n");
	print("<TD COLSPAN=\"2\"><INPUT TYPE=SUBMIT VALUE=\"" . L_LOGIN_LOGIN . "\"></TD>\n");
	print("</TR>\n");

	print("</FORM>\n");
	print("</TABLE>\n");
	
	
	
	/* Give a link for users who haven't registered yet. */
	print(L_LOGIN_NOACCOUNT);
	print(" <A HREF=\"" . ScreenURL("create_account") . "\">" . L_LOGIN_REGISTER . "</A> " . L_LOGIN_CREATEANACCOUNT . "<BR>\n");

	
	
	/* Just to be nice, put the cursor in the correct place. */
	if ($Browser_JavaScriptOK)
	{
		print("<SCRIPT LANGUAGE=\"Javascript\">\n");
		print("\t document.forms.loginForm.inputLogin.focus(); \n");
		print("</SCRIPT>\n");
	}	
	
?>
