/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2022-11-10 06:43:01 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;

public final class admin_005flogin_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<html >\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
      out.write("\r\n");
      out.write("<title>后台登录</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("\r\n");
      out.write(".STYLE1 {\r\n");
      out.write("\tfont-size: xx-large;\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("}\r\n");
      out.write(".STYLE2 {\r\n");
      out.write("\thtml,body{text-align:center;margin:0px auto;}\r\n");
      out.write("}\r\n");
      out.write("</style>\r\n");

Object username=session.getAttribute("usercode");
if (username==null) username="";
Object password=session.getAttribute("password");
if (password==null) password="";


      out.write("\r\n");
      out.write("\r\n");
      out.write("<script  language=\"javascript\">\r\n");
      out.write("function changeImg()  \r\n");
      out.write(" {  \r\n");
      out.write("   document.getElementById(\"id_checkimg\").src=\"imgCode?t=\"+new Date().getTime();;  \r\n");
      out.write(" }\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body onload=\"document.getElementById('txt_username').focus(); \">\r\n");
      out.write("<form id=\"loginform\" name=\"loginform\" method=\"post\" action=\"regLogin\" >\r\n");
      out.write("  \r\n");
      out.write("  <table  width=\"285\" border=\"0\" align=\"center\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td colspan=\"2\" align=\"center\" valign=\"middle\"><span class=\"STYLE1\">登录</span></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td colspan=\"2\" align=\"center\" valign=\"middle\">&nbsp;</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"center\" valign=\"middle\">帐号：</td>\r\n");
      out.write("      <td align=\"center\" valign=\"middle\"><input name=\"txt_username\" type=\"text\" id=\"txt_username\" tabindex=\"10\" value=\"");
      out.print(username);
      out.write("\" onkeyup=\"if (window.event.keyCode==13) document.all('loginform').all('txt_password').focus(); \"/></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"center\" valign=\"middle\">密码：</td>\r\n");
      out.write("      <td align=\"center\" valign=\"middle\"><input name=\"txt_password\" type=\"password\" id=\"txt_password\" tabindex=\"20\" value=\"");
      out.print(password);
      out.write("\" onkeyup=\"if (window.event.keyCode==13) login();\" style=\"width: 147px; \"/></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"center\" valign=\"middle\">验证码：<img src=\"imgCode\" id=\"id_checkimg\" name=\"id_checkimg\" ></td>\r\n");
      out.write("      <td align=\"center\" valign=\"middle\"><input name=\"txt_imgcode\" type=\"text\" id=\"txt_imgcode\" tabindex=\"25\" onkeyup=\"if (window.event.keyCode==13) login(); \" /></td>\r\n");
      out.write("        \r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("    <td colspan=\"2\" align=\"center\" valign=\"middle\"><a href=\"javascript:changeImg();\">看不清？单击换一张图片</a></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td align=\"center\" valign=\"middle\"><input name=\"cb_login\" type=\"button\" id=\"cb_login\" tabindex=\"30\" value=\"登录\" onclick=\"login()\" /></td>\r\n");
      out.write("      <td align=\"center\" valign=\"middle\"><input name=\"cb_reset\" type=\"button\" id=\"cb_reset\" tabindex=\"40\" value=\"重置\" onclick=\"reset1()\" /></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("</form>\r\n");
      out.write("\r\n");
      out.write("<script  language=\"javascript\">\r\n");
      out.write("function checklogin()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar username=document.getElementById(\"txt_username\");\r\n");
      out.write("\t\tif (username.value==\"\") \r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\talert(\"请输入用户名\");\r\n");
      out.write("\t\t\tdocument.getElementById(\"txt_username\").focus();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\tvar password=document.getElementById(\"txt_password\");\r\n");
      out.write("\t\tif (password.value==\"\") \r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\talert(\"请输入密码 \");\r\n");
      out.write("\t\t\tdocument.getElementById(\"txt_password\").focus();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tvar imgcode=document.getElementById(\"txt_imgcode\");\r\n");
      out.write("\t\tif (imgcode.value==\"\") \r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\talert(\"请输入验证码 \");\r\n");
      out.write("\t\t\tdocument.getElementById(\"txt_imgcode\").focus();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\treturn true;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("function login(){\r\n");
      out.write("\tif (checklogin()){\r\n");
      out.write("\t\tdocument.getElementById(\"loginform\").submit();\r\n");
      out.write("\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("}\r\n");
      out.write("function reset1(){\r\n");
      out.write("\t\r\n");
      out.write("\tdocument.getElementById(\"txt_username\").value=\"\";\r\n");
      out.write("\tdocument.getElementById(\"txt_password\").value=\"\";\t\t\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write(" </script> \r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("\r\n");
      out.write("</html>\r\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
