<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="struts-bean.tld" prefix="bean" %>
<%@ taglib uri="struts-html.tld" prefix="html" %>
<%@ taglib uri="struts-logic.tld" prefix="logic" %>
<%@ taglib uri="lybbs.tld" prefix="lybbs" %>
<%@ page import="java.util.*"%>
<%@ page import="net.lybbs.util.*"%>
<%@ page import="net.lybbs.user.util.DrawRandNumber"%>
<html:html locale="true">
<STYLE type=text/css>
A:visited,A:active,A:link {
  TEXT-DECORATION: none; Color:#000000
}
A:hover {
  TEXT-DECORATION: underline
}
BODY {
  FONT-SIZE: 12px;
  COLOR:#000000;
  BACKGROUND-COLOR: #FFFFFF;
  SCROLLBAR-ARROW-COLOR: #006699;
  SCROLLBAR-DARKSHADOW-COLOR: #98aab1;
  SCROLLBAR-FACE-COLOR: #dee3e7;
  SCROLLBAR-HIGHLIGHT-COLOR: #ffffff;
  SCROLLBAR-3DLIGHT-COLOR: #d1d7dc;
  SCROLLBAR-SHADOW-COLOR: #dee3e7;
  
}
TD {
  FONT-SIZE: 12px; LINE-HEIGHT: 15px
}
TD.catStyle {
  COLOR:#ffffff;
  BACKGROUND-COLOR: #7C96B8;
  
    BACKGROUND-IMAGE: url(skins/default/bg/catbg.gif)
  
}
TD.forumColorOne {
  BACKGROUND-COLOR: #C4D0DF
}
TD.forumColorTwo {
  BACKGROUND-COLOR: #FFFFFF
}
.tableCommonStyle {
  BORDER-RIGHT: 1px solid;
  BORDER-TOP: 1px solid;
  BORDER-LEFT: 1px solid;
  BORDER-BOTTOM: 1px solid;
  WIDTH: 98%;
  BACKGROUND-COLOR: #7C96B8;
}
</STYLE>
<body>
Submit to lybbs/login.do<br>
if can't find login.do,please modifies next action=lybbs/login.do<br><br>
<FORM name=login method=post action="lybbs/login.do">
UserName: <input type=text name='userName' size=12 maxlength=16 tabindex=1><br>
Password: <input type=password name='password' size=12 maxlength=20 tabindex=2><br>
<select name=cookieDate tabindex=4>");
<option value=0 selected>dont save</option>
<option value=1>one day</option>
<option value=2>one month</option>
<option value=3>for ever</option>
</select><br>
<%
//use validate code
if(PropertiesCache.getInstance().isValidateCodeEnabled()) {
  out.println("<br>");
  out.println("Validate Code: <input type=text name='validateCode' size=4 maxlength=4 tabindex=3>");
  if(PropertiesCache.getInstance().isValidateCodeInGraphic()) {
    //image show
    out.println("<img border=0 src='lybbs/servlet/drawRand'>");
  }
  else {
    //text show
    out.println(DrawRandNumber.getInstance().writeRandNumber(4,10,request));
  }
}
%>
<br>
<input type=submit value="login">
</FORM>
</body>
</html:html>