/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-07-14 02:40:18 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.*;
import wiseoa.*;
import wiseoa.mail.jstl.*;
import wiseoa.news.jstl.*;
import wiseoa.util.*;
import jun.db.util.*;
import IM.server.*;
import wiseoa.home.*;

public final class m_002dlogin_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 org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fescapeXml_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fif_0026_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody;

  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() {
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fescapeXml_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fescapeXml_005fnobody.release();
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.release();
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.release();
  }

  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("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	//2007.03.14 这个HomeURL是有用的，它用在任务调度时DataStore 对象需要用到它
	Server.rebuildHomeURL(request);

String errorText=new String(Base32Coder.decode(  FF.GetStringFromRequest(request,"errortext","" ) ));
FF.log(errorText);
FF.pageContextSetAttribute(pageContext,"errortext",  errorText);


	System_BaseInfo gInfo = System_BaseInfo.getInstance(request);
	FF.pageContextSetAttribute(pageContext, "globalconfig",
			gInfo.GlobalConfig);

 
	FF.pageContextSetAttribute(pageContext, "logohtml",
			gInfo.getLogoHTML(0, true));

	String t = gInfo.NewsHandleTitle;
	if (t.equals(""))
		t = "登录";
	FF.pageContextSetAttribute(pageContext, "hometitle", t);

	Cookie ck[] = request.getCookies();
	String username_ = "";
	String password_ = "";
	String remembername = "";
	String rememberpwd = "";
	String rememberpwdhowlong = "30";

	if (ck != null) {
		for (int i = 0; i < ck.length; i++) {
			//out.write( ck[i].getName()+"<br>" );
			if (ck[i].getName().equalsIgnoreCase("username"))
				username_ = wiseoa.util.Escape.unescape(ck[i]
						.getValue());
			if (ck[i].getName().equalsIgnoreCase("password"))
				password_ = FF.DecryptString (ck[i]
						.getValue());
			if (ck[i].getName().equalsIgnoreCase("rememberpassword"))
				rememberpwd = ck[i].getValue();
			if (ck[i].getName().equalsIgnoreCase("rememberusername"))
				remembername = ck[i].getValue();
			if (ck[i].getName().equalsIgnoreCase("rememberpwdhowlong"))
				rememberpwdhowlong = ck[i].getValue();

		}
	}

	String u = FF.GetStringFromRequest(request, "username", "");
	String p = FF.GetStringFromRequest(request, "password", "");
	String passwordstyle = FF.GetStringFromRequest(request,
			"passwordstyle", "");
	String moreParam = FF
			.GetStringFromRequest(request, "moreparam", "");

	if (u.length() > 0)
		username_ = u;
	if (p.length() > 0)
		password_ = p;
	boolean autoCommit = false;
	if (u.length() > 0 && p.length() > 0)
		autoCommit = true;
	FF.pageContextSetAttribute(pageContext, "autocommit", new Boolean(
			autoCommit));

	FF.log(" username  =" + username_);
	FF.log(" password  =" + password_);
	
	//是否需要短信校验码，在这里可以控制 ========================
	FF.pageContextSetAttribute(pageContext, "needsmscode",   FF.GetIntFromRequest(request,"needsmscode",1)==1) ;

      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("\r\n");
      out.write("<META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<TITLE>");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("</TITLE>\r\n");
      out.write("\r\n");
      out.write("<META http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("<META http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("<META http-equiv=\"expires\" content=\"0\">\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("<script type=\"text/javascript\" src=\"js/domutil.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\"\r\n");
      out.write("\tsrc=\"js/jquery-1.12.4.min.js?ver=-11796177858\"></script>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<SCRIPT type=\"text/javascript\" src=\"js/ChangeFocus.js\"></SCRIPT>\r\n");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("<style>\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write(".login{width:100%;height:100%;background:url(image/login-bg.png) no-repeat;background-size:cover;position:fixed;z-index:-10;}\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("* {\r\n");
      out.write("\tbox-sizing: border-box;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".mainContainer {\r\n");
      out.write("\twidth: 100%;\r\n");
      out.write("\tborder: 0px solid white;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".divrow {\r\n");
      out.write("\twidth: 100%;\r\n");
      out.write("\tpadding-left: 40px;\r\n");
      out.write("\tpadding-right: 40px;\r\n");
      out.write("\tborder: 0px solid red;\r\n");
      out.write("\tposition: relative;\r\n");
      out.write("\theight: 40px;\r\n");
      out.write("\tline-height: 40px;\r\n");
      out.write("\tcolor: white;\r\n");
      out.write("\tfont-size: 18px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(".divrow input {\r\n");
      out.write("\tborder: 0;\r\n");
      out.write("\tborder-radus: 0;\r\n");
      out.write("\tpadding: 3px;\r\n");
      out.write("\tpadding-left:15px;\r\n");
      out.write("\tbackground: rgba(255, 255, 255, 0.1);\r\n");
      out.write("\tcolor: white;\r\n");
      out.write("\toutline: none;\r\n");
      out.write("\tborder: 1px solid rgba(255, 255, 255, 0.5);\r\n");
      out.write("\twidth: 100%;\r\n");
      out.write("\theight: 32px;\r\n");
      out.write("\tfont-size: 16px;\r\n");
      out.write("\tborder-radius:16px;\r\n");
      out.write("}\r\n");
      out.write("</style>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<SCRIPT language=\"javascript\">\r\n");
      out.write("\tfunction $E(id)\r\n");
      out.write("\t{\r\n");
      out.write("\t\treturn document.getElementById(id);\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction checkInput()\r\n");
      out.write("\t{\r\n");
      out.write("\t\tvar input_username = $E('username');\r\n");
      out.write("\t\tif (input_username.value == \"\")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t$.toast(\"请输入用户名\");\r\n");
      out.write("\t\t\tinput_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 input_password = $E('password');\r\n");
      out.write("\t\tif (input_password.value == \"\")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t$.toast (\"请输入密码\");\r\n");
      out.write("\t\t\tinput_password.focus();\r\n");
      out.write("\t\t\treturn false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t\t");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\r\n");
      out.write("\t\treturn true;\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tfunction login()\r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t \r\n");
      out.write("\r\n");
      out.write("\t\tif (checkInput())\r\n");
      out.write("\t\t\t$E('loginform').submit();\r\n");
      out.write("\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\tapiready = function()\r\n");
      out.write("\t{\r\n");
      out.write("\r\n");
      out.write("\t \r\n");
      out.write("\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tapi.addEventListener({\r\n");
      out.write("\t\t　　　　name: 'keyback'\r\n");
      out.write("\t\t　　}, function(ret, err) \r\n");
      out.write("\t\t  {\r\n");
      out.write("\t\t\t \r\n");
      out.write("\t\t\t    exitApp();\r\n");
      out.write("\t \t\t\t     \r\n");
      out.write(" \t});\r\n");
      out.write("\t\t\t     \r\n");
      out.write("\t\t\t      \r\n");
      out.write("\t\r\n");
      out.write("api.addEventListener({\r\n");
      out.write("    name:'offline'\r\n");
      out.write("}, function(ret, err){        \r\n");
      out.write("    alert('请检查网络是否已经连接');\r\n");
      out.write("      api.closeWidget({\r\n");
      out.write("\t\t\t    \t\tid: api.appId,\r\n");
      out.write("\t\t\t    \t\tretData: {name:'closeWidget'},\r\n");
      out.write("\t\t\t    \t\tsilent:true\r\n");
      out.write("\t\t\t    \t\t});\r\n");
      out.write("});\r\n");
      out.write("\r\n");
      out.write("\t\t \r\n");
      out.write("\r\n");
      out.write("\t};\r\n");
      out.write("\t\r\n");
      out.write("    \r\n");
      out.write("\tfunction exitApp()\r\n");
      out.write("\t{\r\n");
      out.write("\t   if(! confirm(\"确信要退出系统吗?\")) return ;  \t\t\r\n");
      out.write("\t\t\t    \tapi.closeWidget({\r\n");
      out.write("\t\t\t    \t\tid: api.appId,\r\n");
      out.write("\t\t\t    \t\tretData: {name:'closeWidget'},\r\n");
      out.write("\t\t\t    \t\tsilent:true\r\n");
      out.write("\t\t\t    \t\t});\r\n");
      out.write("\t\t\t\t\t \r\n");
      out.write("\t\t\t    \t\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "global2.jsp", out, true);
      out.write(" \r\n");
      out.write("\t\r\n");
      out.write("</HEAD>\r\n");
      out.write("\r\n");
      out.write("<BODY \tstyle=\"overflow: hidden; margin:0;\">\r\n");
      out.write("<div class=\"page  \">\r\n");
      out.write("<div class=\"content login \">\r\n");
      out.write("<img src=\"upload/wiseoa_mobile_login_head.png\" style=\"width:100%;border:0px solid red;\"><div  style=\"  background-color:rgba(255,255,255,0.2);  width:100%;   text-align:center;\r\n");
      out.write(" padding:10px;font-size:26px;  color:white;\"  >");
      if (_jspx_meth_c_005fout_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write(" </div>\r\n");
      out.write(" <div id=mainbody style=\"margin:40px;margin-top:20px; text-align:left;\" >\r\n");
      out.write(" \r\n");
      out.write("\t\t<FORM name=\"loginform\" id=\"loginform\" method=\"post\"\r\n");
      out.write("\t\t\taction=\"servlet/wiseoa.Login\"\r\n");
      out.write("\t\t\tstyle=\"width: 100%; padding: 0; margin: 0;\">\r\n");
      out.write("            <input type=\"hidden\" id=\"needsms\" value=\"1\">\r\n");
      out.write("\t\t\t<div class=mainContainer>\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<div class=divrow>用户名</div>\r\n");
      out.write("\t\t\t\t<div class=divrow>\r\n");
      out.write("\t\t\t\t\t<INPUT type=\"text\" name=\"username\" id=username class='textbox1'\r\n");
      out.write("\t\t\t\t\t\ttabIndex='10' value='");
      out.print(username_);
      out.write("'\r\n");
      out.write("\t\t\t\t\t\tonkeyup=\"  if(window.event.keyCode==13)  document.all('loginform').all('password').focus() ;\">\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<div class=divrow>密&nbsp;&nbsp;&nbsp;&nbsp;码</div>\r\n");
      out.write("\t\t\t\t<div class=divrow>\r\n");
      out.write("\t\t\t\t\t<INPUT type=\"password\" name=\"password\" id=password class='textbox1'\r\n");
      out.write("\t\t\t\t\t\ttabIndex='20' value='");
      out.print(password_);
      out.write("'\r\n");
      out.write("\t\t\t\t\t\tonkeyup=\" if( window.event.keyCode==13) document.all('loginform').all('code').focus() ; ;\">\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t\t");
      if (_jspx_meth_c_005fif_005f2(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\r\n");
      out.write("\t\t\t    <div style=\"height:50px;\"></div>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t<div   style=\"text-align:center;padding-left:130px; padding-right:130px;\" >\r\n");
      out.write("\t\t\t\t\t<div onclick=\"login();\" \r\n");
      out.write("\t\t\t\t\t\tstyle=\"border-radius: 20px;   height: 40px; line-height: 40px; text-align: center; border: 1px solid   rgba(255, 255, 255, 0.15);  background: rgba(0, 255, 255, 0.5)\">登录\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t \r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t <div style=\"height:50px;\"></div>\r\n");
      out.write("\t\t\t\t  <div style=\"text-align:center; \">\r\n");
      out.write("\t\t\t\t\t  <a href=\"lostpwd2.jsp\" style=\"color:white;\">忘记密码</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("\t\t\t\t\t\t<a href=\"javascript:exitApp();\" style=\"color:white;\">退出</a>\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t \r\n");
      out.write("\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\r\n");
      out.write("  \t\t\t<input type='hidden' name='device' id='device'  ");
      if (_jspx_meth_c_005fif_005f3(_jspx_page_context))
        return;
      out.write("  >   \r\n");
      out.write("\t\t\t<input type='hidden' name='topage' id='topage' value='m-home.jsp'>\r\n");
      out.write("\t\t\t<input type='hidden' id=\"rememberusername\" name=\"rememberusername\"\r\n");
      out.write("\t\t\t\tvalue=\"1\"> <input type='hidden' id=\"rememberpassword\"\r\n");
      out.write("\t\t\t\tname=\"rememberpassword\" value=\"43200\">\r\n");
      out.write("\r\n");
      out.write("\t\t\t");
      if (_jspx_meth_c_005fif_005f4(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t</FORM>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t</div>\r\n");
      out.write(" \r\n");
      out.write("</div>\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</BODY>\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);
    }
  }

  private boolean _jspx_meth_c_005fout_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fescapeXml_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f0.setParent(null);
    // /m-login.jsp(93,7) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${hometitle}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    // /m-login.jsp(93,7) name = escapeXml type = null reqTime = true required = false fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f0.setEscapeXml(false);
    int _jspx_eval_c_005fout_005f0 = _jspx_th_c_005fout_005f0.doStartTag();
    if (_jspx_th_c_005fout_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fescapeXml_005fnobody.reuse(_jspx_th_c_005fout_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fescapeXml_005fnobody.reuse(_jspx_th_c_005fout_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f0(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f0.setParent(null);
    // /m-login.jsp(107,0) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${globalconfig.usernameautocomplete==1}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f0 = _jspx_th_c_005fif_005f0.doStartTag();
    if (_jspx_eval_c_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t<script type=\"text/javascript\" src=\"js/yahoo-dom-event.js\"></script>\r\n");
        out.write("\t<script type=\"text/javascript\" src=\"js/suggest-yui2.js\"></script>\r\n");
        int evalDoAfterBody = _jspx_th_c_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f1 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f1.setParent(null);
    // /m-login.jsp(184,2) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${needsmscode}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f1 = _jspx_th_c_005fif_005f1.doStartTag();
    if (_jspx_eval_c_005fif_005f1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t \tvar smscode = $E('smscode');\r\n");
        out.write("\t\tif (smscode.value == \"\")\r\n");
        out.write("\t\t{\r\n");
        out.write("\t\t\t$.toast (\"请输入验证码\");\r\n");
        out.write("\t\t\tsmscode.focus();\r\n");
        out.write("\t\t\treturn false;\r\n");
        out.write("\t\t}\r\n");
        out.write("\t\t");
        int evalDoAfterBody = _jspx_th_c_005fif_005f1.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f1(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f1 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f1.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f1.setParent(null);
    // /m-login.jsp(266,47) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f1.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${hometitle}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f1 = _jspx_th_c_005fout_005f1.doStartTag();
    if (_jspx_th_c_005fout_005f1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f1);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f2(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f2 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f2.setParent(null);
    // /m-login.jsp(293,4) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f2.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${needsmscode}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f2 = _jspx_th_c_005fif_005f2.doStartTag();
    if (_jspx_eval_c_005fif_005f2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t\t\t\t<div class=divrow>验&nbsp;&nbsp;证&nbsp;&nbsp;码</div>\r\n");
        out.write("\t\t\t\t<div class=divrow>\r\n");
        out.write("\t\t\t\t\t<INPUT type=\"tel\" name=\"smscode\" id=smscode class='textbox1' style=\"width:50%;float:left; border-top-right-radius:0; border-bottom-right-radius:0px;\"\r\n");
        out.write("\t\t\t\t\t\ttabIndex='30'  \r\n");
        out.write("\t\t\t\t\t\tonfocus=\" this.scrollIntoView(false); \" \r\n");
        out.write("\t\t\t\t\t\tonkeyup=\" if( window.event.keyCode==13) login() ;\">\r\n");
        out.write("                     <div   id=getcode   onclick=\"getSMSCode();\"  class='textbox1'  \r\n");
        out.write("                            style=\" float:right;color:white; width:50%; height:32px;text-align:center; line-height:32px; border: 1px solid rgba(255, 255, 255, 0.5); border-left:0;  background: rgba(0, 255, 255, 0.5);border-top-right-radius:16px; border-bottom-right-radius:16px; \"  >获取验证码</div>\r\n");
        out.write("\t\t\t\t</div>\r\n");
        out.write("\t\t\t\t");
        int evalDoAfterBody = _jspx_th_c_005fif_005f2.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f2);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f3(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f3 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f3.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f3.setParent(null);
    // /m-login.jsp(326,53) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f3.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${needsmscode}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f3 = _jspx_th_c_005fif_005f3.doStartTag();
    if (_jspx_eval_c_005fif_005f3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write(" value='mobile'  ");
        int evalDoAfterBody = _jspx_th_c_005fif_005f3.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f3);
    return false;
  }

  private boolean _jspx_meth_c_005fif_005f4(javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_005fif_005f4 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_005fif_005f4.setPageContext(_jspx_page_context);
    _jspx_th_c_005fif_005f4.setParent(null);
    // /m-login.jsp(332,3) name = test type = boolean reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fif_005f4.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${globalconfig.usernameautocomplete==1}", java.lang.Boolean.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false)).booleanValue());
    int _jspx_eval_c_005fif_005f4 = _jspx_th_c_005fif_005f4.doStartTag();
    if (_jspx_eval_c_005fif_005f4 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n");
        out.write("\t\t\t\t<script>\r\n");
        out.write("\t\t\t\t\t//需要登录时，提供登录名自动完成功能\r\n");
        out.write("\t\t\t\t\twindow.onload = function()\r\n");
        out.write("\t\t\t\t\t{\r\n");
        out.write("\r\n");
        out.write("\t\t\t\t\t\tvar dataUrl = 'autoComplete_query_username.jsp';\r\n");
        out.write("\r\n");
        out.write("\t\t\t\t\t\tvar sug = new KISSY.Suggest('username', dataUrl, {\r\n");
        out.write("\t\t\t\t\t\t\tautoFocus : false,\r\n");
        out.write("\t\t\t\t\t\t\tforMobile : true,\r\n");
        out.write("\t\t\t\t\t\t\tresultFormat : '%result%'\r\n");
        out.write("\t\t\t\t\t\t});\r\n");
        out.write("\t\t\t\t\t\r\n");
        out.write("\t\t\t\t\t\r\n");
        out.write("\t\t\t\t\t\tvar errorText=\"");
        if (_jspx_meth_c_005fout_005f2(_jspx_th_c_005fif_005f4, _jspx_page_context))
          return true;
        out.write("\" ;\r\n");
        out.write("\t\t\t\t\t\tif( errorText!='')  $.alert ( errorText);\r\n");
        out.write("\t\t\t\t\t\t\r\n");
        out.write("\t\t\t\t\t\t\r\n");
        out.write("\t\t\t\t\t}\r\n");
        out.write("\t\t\t\t\t\r\n");
        out.write("\t\t\t\t\t\r\n");
        out.write("\t\t\t\t\tvar focusElem;\r\n");
        out.write("\t\t\t\t        //获取页面高度\r\n");
        out.write("\t\t\t\t        var clientHeight = document.body.clientHeight;\r\n");
        out.write("\t\t\t\t        //设置监听聚焦事件\r\n");
        out.write("\t\t\t\t        document.body.addEventListener(\"focus\", function(e) {\r\n");
        out.write("\t\t\t\t              focusElem = document.getElementById('input')\r\n");
        out.write("\t\t\t\t        }, true);\r\n");
        out.write("\t\t\t\t        //设置监听窗口变化时间\r\n");
        out.write("\t\t\t\t        window.addEventListener(\"resize\", function() {\r\n");
        out.write("\t\t\t\t            if(focusElem && document.body.clientHeight < clientHeight) {\r\n");
        out.write("\t\t\t\t                //使用scrollIntoView方法来控制输入框\r\n");
        out.write("\t\t\t\t                focusElem.scrollIntoView(false);\r\n");
        out.write("\t\t\t\t            }\r\n");
        out.write("\t\t\t\t        });\r\n");
        out.write("\t\t\t\t   \r\n");
        out.write("\t\t\t\t      \r\n");
        out.write("\t\t\t\t\t\r\n");
        out.write("\t\t\t\t</SCRIPT>\r\n");
        out.write("\t\t\t");
        int evalDoAfterBody = _jspx_th_c_005fif_005f4.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_005fif_005f4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.reuse(_jspx_th_c_005fif_005f4);
    return false;
  }

  private boolean _jspx_meth_c_005fout_005f2(javax.servlet.jsp.tagext.JspTag _jspx_th_c_005fif_005f4, javax.servlet.jsp.PageContext _jspx_page_context)
          throws java.lang.Throwable {
    javax.servlet.jsp.PageContext pageContext = _jspx_page_context;
    javax.servlet.jsp.JspWriter out = _jspx_page_context.getOut();
    //  c:out
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_005fout_005f2 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
    _jspx_th_c_005fout_005f2.setPageContext(_jspx_page_context);
    _jspx_th_c_005fout_005f2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f4);
    // /m-login.jsp(347,21) name = value type = null reqTime = true required = true fragment = false deferredValue = false expectedTypeName = null deferredMethod = false methodSignature = null
    _jspx_th_c_005fout_005f2.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${errortext}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
    int _jspx_eval_c_005fout_005f2 = _jspx_th_c_005fout_005f2.doStartTag();
    if (_jspx_th_c_005fout_005f2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f2);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.reuse(_jspx_th_c_005fout_005f2);
    return false;
  }
}
