/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: Apache Tomcat/8.5.32
 * Generated at: 2018-10-16 08:27:09 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.WEB_002dINF.views.account;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.smartloli.kafka.eagle.common.util.KConstants;

public final class signin_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent,
                 org.apache.jasper.runtime.JspSourceImports {

  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;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(4);
    _jspx_dependants.put("jar:file:/D:/Program%20Files/apache-tomcat-8.5.32/webapps/ke/WEB-INF/lib/jstl-1.2.jar!/META-INF/c.tld", Long.valueOf(1153356282000L));
    _jspx_dependants.put("jar:file:/D:/Program%20Files/apache-tomcat-8.5.32/webapps/ke/WEB-INF/lib/spring-webmvc-4.1.6.RELEASE.jar!/META-INF/spring.tld", Long.valueOf(1427245024000L));
    _jspx_dependants.put("/WEB-INF/lib/spring-webmvc-4.1.6.RELEASE.jar", Long.valueOf(1488165878000L));
    _jspx_dependants.put("/WEB-INF/lib/jstl-1.2.jar", Long.valueOf(1488165920000L));
  }

  private static final java.util.Set<java.lang.String> _jspx_imports_packages;

  private static final java.util.Set<java.lang.String> _jspx_imports_classes;

  static {
    _jspx_imports_packages = new java.util.HashSet<>();
    _jspx_imports_packages.add("javax.servlet");
    _jspx_imports_packages.add("javax.servlet.http");
    _jspx_imports_packages.add("javax.servlet.jsp");
    _jspx_imports_classes = new java.util.HashSet<>();
    _jspx_imports_classes.add("org.smartloli.kafka.eagle.common.util.KConstants");
  }

  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 java.util.Set<java.lang.String> getPackageImports() {
    return _jspx_imports_packages;
  }

  public java.util.Set<java.lang.String> getClassImports() {
    return _jspx_imports_classes;
  }

  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 java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    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("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE html>\n");
      out.write("<html lang=\"zh\">\n");
      out.write("<head>\n");
      out.write("<meta charset=\"utf-8\">\n");
      out.write("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n");
      out.write("<title>Login - KafkaEagle</title>\n");
      out.write("<meta name=\"description\" content=\"\">\n");
      out.write("<link rel=\"shortcut icon\" href=\"/ke/media/img/favicon.ico\" />\n");
      out.write("<link rel=\"stylesheet\" href=\"/ke/media/css/public/account/main.css\">\n");
      out.write("</head>\n");
      out.write("\n");
      out.write("<body>\n");
      out.write("\t<div class=\"login-page\">\n");
      out.write("\t\t<div class=\"row\">\n");
      out.write("\t\t\t<div class=\"col-lg-4 col-lg-offset-4\">\n");
      out.write("\t\t\t\t<img class=\"user-avatar\" src=\"/ke/media/img/ke_login.png\"\n");
      out.write("\t\t\t\t\twidth=\"150px\">\n");
      out.write("\n");
      out.write("\t\t\t\t<h1>Kafka Eagle</h1>\n");
      out.write("\n");
      out.write("\t\t\t\t<form role=\"form\" action=\"/ke/account/signin/action/\" method=\"post\"\n");
      out.write("\t\t\t\t\tonsubmit=\"return contextFormValid();return false;\">\n");
      out.write("\t\t\t\t\t<div class=\"form-content\">\n");
      out.write("\t\t\t\t\t\t<div class=\"form-group\">\n");
      out.write("\t\t\t\t\t\t\t<input class=\"form-control input-underline input-lg\" id=\"usr\"\n");
      out.write("\t\t\t\t\t\t\t\tng-model=\"name\" name=\"username\" placeholder=\"Account\"\n");
      out.write("\t\t\t\t\t\t\t\tautocomplete=\"off\" type=\"text\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class=\"form-group\">\n");
      out.write("\t\t\t\t\t\t\t<input class=\"form-control input-underline input-lg\" id=\"pwd\"\n");
      out.write("\t\t\t\t\t\t\t\tname=\"password\" placeholder=\"Password\" name=\"pwd\" type=\"text\">\n");
      out.write("\t\t\t\t\t\t\t<input type=\"hidden\" id=\"ref_url\" name=\"ref_url\" type=\"text\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class=\"form-group\">\n");
      out.write("\t\t\t\t\t\t\t<div id=\"alert_mssage\" style=\"display: none\"\n");
      out.write("\t\t\t\t\t\t\t\tclass=\"alert alert-danger\"></div>\n");
      out.write("\t\t\t\t\t\t\t");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${error_msg}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null));
      out.write("\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<button id=\"submit\" class=\"btn rounded-btn\" routerlink=\"\">\n");
      out.write("\t\t\t\t\t\tSignin</button>\n");
      out.write("\t\t\t\t</form>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t</div>\n");
      out.write("\t</div>\n");
      out.write("</body>\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../public/script.jsp" + "?" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("loader", request.getCharacterEncoding())+ "=" + org.apache.jasper.runtime.JspRuntimeLibrary.URLEncode("main/account/signin.js", request.getCharacterEncoding()), out, false);
      out.write("\n");
      out.write("<script type=\"text/javascript\">\n");
      out.write("\tfunction contextFormValid() {\n");
      out.write("\t\tvar url = window.location.href;\n");
      out.write("\t\tvar ref_url = \"\";\n");
      out.write("\t\tvar username = $(\"#usr\").val();\n");
      out.write("\t\tvar password = $(\"#pwd\").val();\n");
      out.write("\t\tif (url.indexOf(\"?\") > -1) {\n");
      out.write("\t\t\tref_url = url.split(\"?\")[1];\n");
      out.write("\t\t}\n");
      out.write("\t\tif (ref_url.length == 0) {\n");
      out.write("\t\t\tref_url = \"/\";\n");
      out.write("\t\t}\n");
      out.write("\t\t$(\"#ref_url\").val(ref_url);\n");
      out.write("\t\tif (username.length == 0 || password.length == 0) {\n");
      out.write("\t\t\t$(\"#alert_mssage\").text(\"Account or password is not null.\").show();\n");
      out.write("\t\t\tsetTimeout(function() {\n");
      out.write("\t\t\t\t$(\"#alert_mssage\").hide()\n");
      out.write("\t\t\t}, 3000);\n");
      out.write("\t\t\treturn false;\n");
      out.write("\t\t}\n");
      out.write("\n");
      out.write("\t\treturn true;\n");
      out.write("\t}\n");
      out.write("</script>\n");
      out.write("</html>");
    } 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);
    }
  }
}
