/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2021-03-18 02:04:28 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 java.net.*;
import wiseoa.mail.jstl.*;
import wiseoa.util.*;
import wiseoa.*;
import wiseoa.home.*;

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

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

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_005fnobody.release();
    _005fjspx_005ftagPool_005fc_005fif_0026_005ftest.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");


  
	wiseoa.mail.jstl.System_GroupInfo  sgi=new wiseoa.mail.jstl.System_GroupInfo(request);
	  
	System_BaseInfo gInfo= System_BaseInfo.getInstance(request);  

	FF.pageContextSetAttribute(pageContext,"globalconfig", gInfo.GlobalConfig);
	
	FF.pageContextSetAttribute(pageContext,"logo",gInfo.getLogoHTML(0));
	
	UserPolicy.init();
	
  	User curuser = User.getUserFromRequest(request);
  	
  	boolean error=false;
  	
   			
  	if ( !curuser.canManageUnit()) //如果不是超级管理员
  	{
	  	 if (  UserPolicy.canRegisterUser.booleanValue() ) // 如果系统允许注册新用户
	  	 {//如果不是系统管理员，且核算单位自己设置不允许注册
	  		 if ( curuser.getRole()!=1 &&  !System_BaseInfo.getInstance(request).GlobalConfig.get("registnewuser").equals("1" )  )
	  		 {
	  		 	error=true;
	  		 } 
	  	}else //系统级设置不允许注册，那么肯定是不能注册，除非是超级管理员
	  	{
	  		error=true;
	  	
	  	}
  	}
  	
   
  	
    if(  FF.fileExists(   System_BaseInfo.AppRoot+"/regist_custom.jsp" ) && FF.GetStringFromRequest(request, "noredirect","").equals(""))
    {
    	request.getRequestDispatcher( "regist_custom.jsp").forward(request, response);
		return;	
    }
  	
	System.out.println( FF.String2Int(  User.getUserInfo( curuser.getId(), "grouproot")) );  
  	
	
  	////2008.09.05 增加：已经登录的用户如果被分配了群组，那么他是允许注册新用户的
  	if ( error)
  	{
  		if ( FF.String2Int(  User.getUserInfo( curuser.getId(), "grouproot"))>0 )  error=false;
  		
 		FF.log("=========="); 
  		
  	}
  	
  	FF.log(" =-============== "+ error); 
  	if ( error   )
  	{	
  		String s="抱歉，系统不允许自行注册。";
		response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
   	}
	  

	String  unitHTML=System_BaseInfo.BuildUnitHTML();

	wiseoa.mail.jstl.System_user_someone  sus=new wiseoa.mail.jstl.System_user_someone(request,false);
    FF.pageContextSetAttribute(pageContext,"grouprootpath", sus.Info.get("grouprootpath") );
    

      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
      out.write("<HTML>\r\n");
      out.write("  <head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\r\n");
      out.write("    <META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("    <TITLE>注册</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("    <META http-equiv=\"keywords\" content=\"注册\">\r\n");
      out.write("    <META http-equiv=\"description\" content=\"注册\">\r\n");
      out.write("    <LINK rel=\"StyleSheet\" href=\"css/normal.css\" type=\"text/css\" />\r\n");
      out.write("    \r\n");
      out.write("    <LINK rel=\"stylesheet\" type=\"text/css\" href=\"zbutton/zbutton.css\">\r\n");
      out.write("    <SCRIPT type=\"text/javascript\" src=\"zbutton/zbutton.js\"></SCRIPT>\r\n");
      out.write("    <SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\t \r\n");
      out.write("\t<SCRIPT language=\"javascript\">\r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("\t function regist()\r\n");
      out.write("\t {\r\n");
      out.write(" \r\n");
      out.write("\t   var  username= document.all(\"username\").value;\r\n");
      out.write("\t   var  showname= document.all(\"showname\").value;\r\n");
      out.write("\t   var  password= document.all(\"password\").value;\r\n");
      out.write("\t  \r\n");
      out.write("\t  var  password2= document.all(\"password2\").value;\r\n");
      out.write("\t  var email=document.all(\"email\").value;\r\n");
      out.write("\t  var mobile=document.all(\"mobile\").value;\r\n");
      out.write("\t  var unit=document.all(\"unit\").value;\r\n");
      out.write("\t  \r\n");
      out.write("\t  \r\n");
      out.write("\t   \r\n");
      out.write("\t  if ( username.length<1 || username.length>20) \r\n");
      out.write("\t  { \r\n");
      out.write("\t     alert(\"请输入合法的登录名\");\r\n");
      out.write("\t\t document.all(\"username\").focus();\r\n");
      out.write("\t\t return ;\r\n");
      out.write("\t  }\r\n");
      out.write("\t  \r\n");
      out.write("\t   if ( showname.length<1  ) \r\n");
      out.write("\t  { \r\n");
      out.write("\t     alert(\"请输入用户实名\");\r\n");
      out.write("\t\t document.all(\"username\").focus();\r\n");
      out.write("\t\t return ;\r\n");
      out.write("\t  }\r\n");
      out.write("\t  \r\n");
      out.write("\t  \r\n");
      out.write("\t  \r\n");
      out.write("\t if ( password.length<4) \r\n");
      out.write("\t  {\r\n");
      out.write("\t     alert(\"请输入合法的密码,密码不得少于4位\");\r\n");
      out.write("\t\t document.all(\"password\").focus();\r\n");
      out.write("\t\t return ;\r\n");
      out.write("\t  }\r\n");
      out.write("\t  \r\n");
      out.write("\t   if ( password!=password2) \r\n");
      out.write("\t  {\r\n");
      out.write("\t     alert(\"密码与确认的密码不符,请重新设置密码\");\r\n");
      out.write("\t\t document.all(\"password2\").focus();\r\n");
      out.write("\t\t return ;\r\n");
      out.write("\t  }\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("\t  var parm= new Array(7);\r\n");
      out.write("\t  parm[0]=username;\r\n");
      out.write("\t  parm[1]=password;\r\n");
      out.write("\t  parm[2]=email;\r\n");
      out.write("\t  parm[3]=mobile;\r\n");
      out.write("\t  parm[4]=showname;\r\n");
      out.write("\t  parm[5]=unit;\r\n");
      out.write("\t  parm[6]=0;\r\n");
      out.write("\t  \r\n");
      out.write("\r\n");
      out.write("\t  var autoAddToGroup=   document.getElementById('autoaddtogroup');\r\n");
      out.write("\t  if ( autoAddToGroup)  parm[6] = autoAddToGroup.checked?1:0;\r\n");
      out.write("\t \r\n");
      out.write("\t  if (!  confirm('确信信息填写正确吗?'))  return \r\n");
      out.write("\t   \r\n");
      out.write("\t   \r\n");
      out.write("    \r\n");
      out.write("      jsrsExecute(\"servlet/wiseoa.mail.rpc.Regist\", registok, \"NewUser\", parm , false);\r\n");
      out.write("\t  \r\n");
      out.write("\t }\r\n");
      out.write("\t \r\n");
      out.write("\t function  registok( msg)\r\n");
      out.write("\t {\r\n");
      out.write("\t\tif( msg==\"\") \r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tvar url='../index.jsp'; \r\n");
      out.write("\t\t\t \r\n");
      out.write("\t\t\talert( \"注册成功，您现在就可以登录系统。\") ;\r\n");
      out.write("\t\t\tnavigate(url);\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t}else\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t  alert (msg);\r\n");
      out.write("\t\t  if( msg.indexOf(\"注册成功\")>=0) \r\n");
      out.write("\t\t  {\r\n");
      out.write("\t\t\t  if(confirm(\"继续注册新用户，请点击是，回到首页请点击否\"))\r\n");
      out.write("\t\t\t\t{ \r\n");
      out.write("\t\t\t  window.location.href=\"../regist2.jsp?noredirect=");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("\";\r\n");
      out.write("\t\t\t\t}else\r\n");
      out.write("\t\t\t\t\t{\r\n");
      out.write("\t\t\t\t\t window.location.href=\"../index.jsp\";\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t  }\r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t}\r\n");
      out.write("\t  \r\n");
      out.write("\t }\r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("   </SCRIPT>\r\n");
      out.write("    <style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style1 {color: #D4D0C8}\r\n");
      out.write("-->\r\n");
      out.write("    </style>\r\n");
      out.write("</HEAD>\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("<BODY>\r\n");
      out.write(" <TABLE width=\"502\"  border=\"0\" align=\"center\">\r\n");
      out.write("   <TR>\r\n");
      out.write("     <TD width=\"496\">\r\n");
      out.write("       <P>&nbsp;</P>\r\n");
      out.write("     </TD>\r\n");
      out.write("   </TR>\r\n");
      out.write("   <TR>\r\n");
      out.write("     <TD>\r\n");
      out.write("       <TABLE border=\"1\" width=\"100%\" id=\"table1\" cellspacing=\"0\" cellpadding=\"0\" bordercolorlight=\"#FFFFFF\" bordercolordark=\"#FFFFFF\">\r\n");
      out.write("         <TR>\r\n");
      out.write("           <!--<TD bordercolorlight=\"#C0C0C0\" bordercolordark=\"#C0C0C0\"> -->\r\n");
      out.write("           <TD>\r\n");
      out.write("             <FORM name=\"loginform\" method=\"post\" action=\"servlet/wiseoa.Login\">\r\n");
      out.write("               <TABLE width=\"100%\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                 <TR valign=\"middle\">\r\n");
      out.write("                   <TD colspan=\"4\"><h1> 注册新用户</h1></TD>\r\n");
      out.write("                 </TR>\r\n");
      out.write("                 <TR bgcolor=\"#F2F4F2\">\r\n");
      out.write("                   <TD background=\"image/bk.gif\" height=5 colspan=\"4\"> </TD>\r\n");
      out.write("                 </TR>\r\n");
      out.write("                 <TR valign=\"top\" bgcolor=\"#F2F4F2\">\r\n");
      out.write("                   <TD height=\"292\" colspan=\"4\">\r\n");
      out.write("                     <P class=\"px16\">填写注册信息</P>\r\n");
      out.write("                     <BLOCKQUOTE>\r\n");
      out.write("                 \r\n");
      out.write("                     <TABLE width=\"391\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD valign=\"top\"></TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                      <TD>&nbsp; </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                  ");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD width=\"123\" height=\"17\"><span class=\"color_red\">*</span>登&nbsp;录&nbsp;名：</TD>\r\n");
      out.write("                      <TD>&nbsp;</td>\r\n");
      out.write("                      <TD><INPUT type=\"text\" class=\"textbox\" name=\"username\" onKeyDown=\" if(window.event.keyCode==13) document.all('showname').focus();\"></td>\r\n");
      out.write("                      <TD>&nbsp;</td>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                    <TR valign=\"top\">\r\n");
      out.write("\t\t\t\t\t   <td></td>\r\n");
      out.write("                       <TD >&nbsp;</TD>\r\n");
      out.write("                       <TD height=\"29\" >注册用户名长度限制为1－20个字符(<SPAN class=\"style1\">注册成功后不允许修改</SPAN>)</TD>\r\n");
      out.write("                       <TD >&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD height=\"17\" nowrap><span class=\"color_red\">*</span>实&nbsp;&nbsp;&nbsp;&nbsp;名：</TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                      <TD><input type=\"text\" class=\"textbox\" name=\"showname\" onKeyDown=\" if(window.event.keyCode==13) document.all('password').focus();\" title='用户的真实姓名'></TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                     \r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD height=\"17\" nowrap><span class=\"color_red\">*</span>密&nbsp;&nbsp;&nbsp;&nbsp;码：<BR>                      </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                      <TD> \r\n");
      out.write("                        <INPUT type=\"password\" class=\"textbox\" name=\"password\" onKeyDown=\" if(window.event.keyCode==13) document.all('password2').focus();\" >              </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                    <TR valign=\"top\"><td></td>\r\n");
      out.write("                      <TD  >&nbsp;</TD>\r\n");
      out.write("                      <TD height=\"30\"  >(<span class=\"color_red\">至少4位</span>)，区分大小写。\r\n");
      out.write("              请不要使用任何类似 '*'、' ' 或 HTML 字符</TD>\r\n");
      out.write("                      <TD  >&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD height=\"18\"><span class=\"color_red\">*</span>密码确认：<BR>                      </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                      <TD>\r\n");
      out.write("                        <INPUT type=\"password\" class=\"textbox\" name=\"password2\" onKeyDown=\" if(window.event.keyCode==13) document.all('email').focus();\" title='请再输入一遍确认'>                      </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                     \r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD height=\"17\">&nbsp;Email地址：<BR>                      </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                      <TD>\r\n");
      out.write("                        <INPUT type=\"text\" class=\"textbox\" name=\"email\" onKeyDown=\" if(window.event.keyCode==13) document.all('mobile').focus();\" title='请输入有效的邮件地址，在您丢失密码后我们可以将密码发送给您'>                      </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                  \r\n");
      out.write("                    <TR>\r\n");
      out.write("\t\t\t\t\t <TR>\r\n");
      out.write("                      <TD height=\"17\">&nbsp;移动电话：<BR>                      </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                      <TD>\r\n");
      out.write("                        <INPUT type=\"text\" class=\"textbox\" name=\"mobile\" onKeyDown=\" if(window.event.keyCode==13) document.all('unit').focus();\" title=\"移动电话用于日程提醒和工作流提醒\">                      </TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                   \r\n");
      out.write("                    <TR>\r\n");
      out.write("                      <TD>&nbsp;核算单位：</TD>\r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                      <TD><SELECT  class='textbox'  name=\"unit\" id=\"unit\">\r\n");
      out.write("          ");
      out.print(sgi.UnitHTML);
      out.write("\r\n");
      out.write("          </SELECT></TD>\r\n");
      out.write("          <script>\r\n");
      out.write("             document.getElementById('unit').value=");
      if (_jspx_meth_c_005fout_005f2(_jspx_page_context))
        return;
      out.write(";\r\n");
      out.write("          </script>\r\n");
      out.write("          \r\n");
      out.write("                      <TD>&nbsp;</TD>\r\n");
      out.write("                    </TR>\r\n");
      out.write("                    </TABLE>\r\n");
      out.write("                     <P><BR>\r\n");
      out.write("                     </P>\r\n");
      out.write("                   </BLOCKQUOTE></TD>\r\n");
      out.write("                 </TR>\r\n");
      out.write("                 <TR  >\r\n");
      out.write("                   <TD background=\"image/bk.gif\" height=5 colspan=\"4\"></TD>\r\n");
      out.write("                 </TR>\r\n");
      out.write("                 <TR  >\r\n");
      out.write("                   <TD width=\"28%\" height=\"41\">&nbsp;</TD>\r\n");
      out.write("                   <TD width=\"16%\">&nbsp;</TD>\r\n");
      out.write("                   <TD width=\"29%\" align=\"right\">\r\n");
      out.write("\t\t\t\t   \r\n");
      out.write("\t\t\t\t   <SCRIPT language=\"javascript\">\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\tfunction cb_abort_onclick()\r\n");
      out.write("\t\t\t\t\t\t{\r\n");
      out.write("\t\t\t\t\t\t  regist();\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t   var cb =new zbutton('cb_abort','提交','image/agree.gif');\r\n");
      out.write("\t\t  \r\n");
      out.write("        \t\t\t</SCRIPT>\r\n");
      out.write("\t\t\t\t   </TD>\r\n");
      out.write("                   <TD width=\"27%\" align=\"right\">\r\n");
      out.write("\t\t\t        </TD>\r\n");
      out.write("                 </TR>\r\n");
      out.write("               </TABLE>\r\n");
      out.write("               　\r\n");
      out.write("            </FORM>\r\n");
      out.write("           </TD>\r\n");
      out.write("         </TR>\r\n");
      out.write("       </TABLE>\r\n");
      out.write("     </TD>\r\n");
      out.write("   </TR>\r\n");
      out.write(" </TABLE>\r\n");
      out.write("\r\n");
      out.write("   <SCRIPT language=\"javascript\">\r\n");
      out.write("\t\t\t\t   \r\n");
      out.write("\t \r\n");
      out.write("\r\n");
      out.write("  </script>\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_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);
    // /regist2.jsp(186,53) 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("${param.noredirect}", java.lang.Object.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, 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_005fnobody.reuse(_jspx_th_c_005fout_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fc_005fout_0026_005fvalue_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);
    // /regist2.jsp(241,18) 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("${grouprootpath!=''}", 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("                   <tr>\r\n");
        out.write("\t\t\t <td >用户群组：\r\n");
        out.write("\t\t\t </td>\r\n");
        out.write("\t\t<TD>&nbsp;</td>\r\n");
        out.write("                      <TD>");
        if (_jspx_meth_c_005fout_005f1(_jspx_th_c_005fif_005f0, _jspx_page_context))
          return true;
        out.write("</td>\r\n");
        out.write("                      <TD>&nbsp;</td>\r\n");
        out.write("\t\t\t </tr>\r\n");
        out.write("     <td > \r\n");
        out.write("\t\t\t </td>\r\n");
        out.write("\t\t<TD>&nbsp;</td>\r\n");
        out.write("                      <TD><input type=\"checkbox\"  id=autoaddtogroup checked=true>自动将注册的用户加入到当前群组中</td>\r\n");
        out.write("                      <TD>&nbsp;</td>\r\n");
        out.write("\t\t\t </tr>\r\n");
        out.write("\t\t\t\t");
        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_005fout_005f1(javax.servlet.jsp.tagext.JspTag _jspx_th_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: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((javax.servlet.jsp.tagext.Tag) _jspx_th_c_005fif_005f0);
    // /regist2.jsp(246,26) 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("${grouprootpath}", 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_005fout_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: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(null);
    // /regist2.jsp(320,51) 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("${user.unit}", 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;
  }
}
