Login.jsp

 

<%@ page session="false" buffer="none" %><%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004 - All Rights reserved. --%><%@ taglib uri="/WEB-INF/tld/portal.tld" prefix="wps" %><%@ include file="BidiInclude.jsp" %><wps:constants /><wps:defineObjects/><%-- extra table needed to replace table removed from home.jsp on Netscape 4.x --%><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td><form method="POST" action='<wps:url command="LoginUser" />' enctype="application/x-www-form-urlencoded" name="LoginPage"><%-- Welcome message --%><table border="0" class="wpsPlaceBar" cellspacing="0" cellpadding="0" width="100%"><tr><td align="<%=bidiAlignLeft%>" valign="bottom" nowrap><table border="0" cellpadding="0" cellspacing="0" height="100%" background='<%= wpsBaseURL %>/images/dot.gif'><tr><td class="wpsPlaceBar3dShadow" valign="middle"><img width="30" height="18" border="0" src='<%= wpsBaseURL %>/images/dot.gif' alt=""></td><td class="wpsUnSelectedPlace" align="<%= bidiAlignLeft %>" nowrap>&nbsp;<wps:text key="enrollment.main.title" bundle="nls.registration"/> </td></tr></table></td></tr></table><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td align="<%= bidiAlignLeft %>" valign="top"><table border="0" cellspacing="6" cellpadding="0"><tr><td class="wpsEditText" colspan="2"><div class="wpsFieldErrorText"><wps:problem bundle="nls.problem"/></div></td></tr><tr><td colspan="2">&nbsp;</td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td align="<%= bidiAlignLeft %>" class="wpsLabelText"><label for="userid"><wps:text key="userid" bundle="nls.field"/><label></td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td><input dir="ltr" class="wpsEditField" size="16" value='<% String uid=request.getParameter ("userid"); if (uid != null) escapeXmlWriter.write (uid); %>' name="userid" id="userid" type="text"></td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td align="<%= bidiAlignLeft %>" class="wpsLabelText"><label for="password"><wps:text key="password" bundle="nls.field"/></label></td></tr><tr><td>&nbsp;&nbsp;&nbsp;</td><td><input dir="ltr" class="wpsEditField" size="16" value="" id="password" name="password" type="password"></td></tr><tr><wps:if resumeLevel="1,2" resumeOption="no"><%-- hide and check resume session checkbox - user has no choice --%><td><input type="hidden" value="true" id="resumeSession" name="resumeSession"></td></wps:if><wps:if resumeLevel="1,2" resumeOption="yes"><%-- user is allowed to resume the prior session at their option --%><%-- show the checkbox unchecked --%><td>&nbsp;</td><td><input value="true" id="resumeSession" name="resumeSession" type=checkbox><label for="resumeSession"><wps:text key="resume" bundle="nls.field" /></label></td></wps:if><wps:if resumeLevel="0"><%-- user is not allowed to resume. Do not generate the checkbox --%><td>&nbsp;</td><td>&nbsp;</td></wps:if></tr></table></td><td height="100%" valign="top" align="<%= bidiAlignRight %>"><img src="<wps:urlFindInTheme file='loginimage.gif'/>" alt="" ></td></tr><tr><td colspan="2"><table border="0" cellspacing="0" cellpadding="8"><tr><td colspan="2"><script language="JavaScript"><!-- Hide script content from old browsers
var cookiesEnabled=-9;
if (navigator.cookieEnabled == true)
{
cookiesEnabled=1;
}
else if (navigator.cookieEnabled == false)
{
cookiesEnabled=0;
}
else
{
var expire=new Date();
expire.setTime(expire.getTime() + 3600000);
document.cookie='TestingCookieSupport=AreCookiesTurnedOn;expires=' + expire.toGMTString();
if (document.cookie.indexOf('TestingCookieSupport=') == -1)
{
cookiesEnabled=-2;
}
else
{
cookiesEnabled=2;
document.cookie='TestingCookieSupport=;expires=Thu, 01-Jan-70 00:00:01 GMT';
}
}
if (cookiesEnabled <= 0)
document.writeln("<div class=wpsFieldErrorText><wps:text key="info.disabledcookies" bundle="nls.engine" /></div>");
// end hiding contents from old browsers -->
</script>&nbsp;
</td></tr><tr><td colspan="2" class="wpsEditSmText"><wps:text key="info.inactivity" bundle="nls.engine" /></td></tr></table><%-- Login/Cancel buttons --%><table cellspacing="4" cellpadding="0" border="0" width="100%"><tr><td align="<%= bidiAlignLeft %>" valign="bottom" nowrap><input class="wpsButtonText" type="submit" value='<wps:text bundle="nls.button" key="login" />'></td><td align="<%= bidiAlignLeft %>" valign="bottom" nowrap></form><form method="POST" action="<wps:url home='public' reqid='no'/>" enctype="application/x-www-form-urlencoded" name="CancelLogin"><input class="wpsButtonText" type="submit" value='<wps:text bundle="nls.registration" key="button.cancel" />'></td> <!-- this image button is here so the form will submit when pressing enter in the password field -->
<td width="100%">&nbsp;</td></tr></table><%-- end Login/Cancel buttons --%></td></tr></table><script language="JavaScript">function setFocus()
{
document.LoginPage.userid.focus();
}
setTimeout(setFocus, 400);
</script></form></td></tr></table>