/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-07-31 01:31:02 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.util.*;
import wiseoa.mail.jstl.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.mail.jstl.*;

public final class userhelp2_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;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(1);
    _jspx_dependants.put("/rightverify_login.jsp", Long.valueOf(1517794822543L));
  }

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

  public void _jspDestroy() {
    _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");
      out.write("\r\n");

	// æ ¡éªææ OAçæé
	User user_1211 = User.getUserFromRequest(request);

	if (user_1211.getId() < 0) //å¦ææ²¡æç»å½ä¿¡æ¯ï¼é£ä¹çä¸ä¸cookie
	{

		javax.servlet.http.Cookie ck[] = request.getCookies();
		String username_ = "";
		String password_ = "";

		if (ck != null)
		{
			for (int i = 0; i < ck.length; i++)
			{

				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());

			}
		}

		String pass = Login.Validate(username_, password_, "", request, response, getServletContext(), "");
		if (! pass.equals(""))
		{

		 
			String subpath = (String) session.getAttribute("wiseoaappsubpath");
			if (subpath == null) subpath = "";
			response.sendRedirect(subpath + "/SystemTip.jsp?info=" + URLEncoder.encode(pass, "UTF-8"));
			return;
		}
	}

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" ");

 
     String s=request.getQueryString();
    if ( s==null) s="";
 
     if ( !s.equals("") ) s="?"+s;
     
    FF.pageContextSetAttribute(pageContext,"querystring", s);
    
    UserPrivateGroup   upg= new UserPrivateGroup(request);
 
 
      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(" \r\n");
      out.write("    <META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("    <TITLE>人员列表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TITLE>\r\n");
      out.write("    \r\n");
      out.write("\t<META http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("\t<META http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("\t<META http-equiv=\"expires\" content=\"0\">\r\n");
      out.write("\t\r\n");
      out.write("\t  \r\n");
      out.write("\t<LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("\t<SCRIPT src=\"tab3/tab.js\" type=\"text/javascript\"></SCRIPT>\r\n");
      out.write("\t<LINK rel=\"stylesheet\" type=\"text/css\" href=\"zbutton/zbutton.css\">\r\n");
      out.write("\t<SCRIPT type=\"text/javascript\" src=\"zbutton/zbutton.js\"></SCRIPT>\r\n");
      out.write("\t<SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\t \r\n");
      out.write("\t<SCRIPT type=\"text/javascript\" src=\"js/prototype14.js\"></SCRIPT>\t \r\n");
      out.write("\t<SCRIPT type=\"text/javascript\" src=\"js/json.js\"></SCRIPT>\t \r\n");
      out.write("\t\r\n");
      out.write("\t  \r\n");
      out.write("    \t<link rel=\"STYLESHEET\" type=\"text/css\"\thref=\"dhtmlXGrid/css/dhtmlXGrid.css\">\r\n");
      out.write("\t\t<script src=\"dhtmlXGrid/dhtmlXCommon.js\"></script>\r\n");
      out.write("\t\t<script src=\"dhtmlXGrid/dhtmlXGrid.js\"></script>\r\n");
      out.write("\t\t<script src=\"dhtmlXGrid/dhtmlXGridCell.js\"></script>\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("  <STYLE type=\"text/css\">\r\n");
      out.write(" \r\n");
      out.write("body {\r\n");
      out.write("\r\n");
      out.write("\tmargin-left: 5px;\r\n");
      out.write("\tmargin-right: 5px;\r\n");
      out.write("\tmargin-top: 5px;\r\n");
      out.write("\tmargin-bottom: 0px;\r\n");
      out.write("}\r\n");
      out.write(" \r\n");
      out.write(" .aFilter {filter:progid:DXImageTransform.Microsoft.Shadow(Strength=3, color =#d0d0d0 , Direction=135);}\r\n");
      out.write(" \r\n");
      out.write(" \t.selectspan  { border:1px solid #a0a0a0;overflow:hidden;width:198;}\r\n");
      out.write("\t    .flatselect { width:202; margin:-2;}\r\n");
      out.write("\t  \r\n");
      out.write(" \r\n");
      out.write("</STYLE></HEAD>\r\n");
      out.write("  \r\n");
      out.write("  <BODY>\r\n");
      out.write("  \r\n");
      out.write("  <SCRIPT language=\"javascript\">\r\n");
      out.write("     var  pw;\r\n");
      out.write("     pw= dialogArguments.pw;\r\n");
      out.write("\r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("\t function loadInitValue( )\r\n");
      out.write("\t {\r\n");
      out.write("\t\t var  initValue=dialogArguments.initvalue;  //pw.document.getElementById(pw.forWhat).value;\r\n");
      out.write("\t\t \r\n");
      out.write("\t\t jsrsExecute(\"servlet/wiseoa.mail.rpc.Admin_MyUserGroup\", callback_loaduser, \"buildUserList\", initValue ,false);\r\n");
      out.write("\t\t \r\n");
      out.write("\t }\r\n");
      out.write("\t \r\n");
      out.write("\t function SelectTemplate(id,name,showname)\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("\t\r\n");
      out.write("\t\r\n");
      out.write("\t    //当多选时， 被 userhelp_detail.jsp 回调  \r\n");
      out.write("\tfunction SelectMoreUser(ids, names , shownames)\r\n");
      out.write("\t{\r\n");
      out.write("\r\n");
      out.write("    \r\n");
      out.write("\t \tpw.SelectMoreUser(ids,names,shownames );\r\n");
      out.write("\r\n");
      out.write("        window.close();\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction SelecUserWithoutClose(id , name ,showname )\r\n");
      out.write("\t{\r\n");
      out.write("\r\n");
      out.write("\t\t try\r\n");
      out.write("\t\t {\r\n");
      out.write("\t\t\tpw.SelectUser(id,name ,showname );\r\n");
      out.write("\t\t }catch(e)\r\n");
      out.write("\t\t {\r\n");
      out.write("\t\t }\r\n");
      out.write("   \r\n");
      out.write("\t}\t\r\n");
      out.write("\t\r\n");
      out.write("\tfunction Exit(ret)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tvar s= JSON.toString(ret);\r\n");
      out.write("\t\t \r\n");
      out.write("\t\twindow.returnValue=s;\r\n");
      out.write("\t\twindow.close();\r\n");
      out.write("\t}\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write(" function search()\r\n");
      out.write("  {\r\n");
      out.write("  \tvar key= document.getElementById('key').value;\r\n");
      out.write("  \tif ( key=='') \r\n");
      out.write("  \t{\r\n");
      out.write("  \t\talert('必须输入需要匹配的内容');\r\n");
      out.write("  \t\treturn;\r\n");
      out.write("  \t}\r\n");
      out.write("    \r\n");
      out.write("  \tdocument.getElementById('tab1_frame').contentWindow.search(key);\r\n");
      out.write("  \t  \r\n");
      out.write(" }\r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("function  loadGroupUser() \r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\tif ($('groupid').disabled) return;\r\n");
      out.write("\t\r\n");
      out.write("\tvar id=$('groupid').value;\r\n");
      out.write("\tif(id==0) return;\r\n");
      out.write("    jsrsExecute(\"servlet/wiseoa.mail.rpc.Admin_MyUserGroup\", callback_loaduser, \"GetPrivateGroupUserList\", id ,false);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function callback_loaduser( msg )\r\n");
      out.write("{\r\n");
      out.write("\tif(extractValue(msg,\"ok\")==\"true\")\r\n");
      out.write("    {\r\n");
      out.write("  \t\tmygrid.clearAll();\r\n");
      out.write("  \t\tvar data= unescape(extractValue(msg,\"script\"));\r\n");
      out.write("  \t // alert( data);\r\n");
      out.write("  \t\teval ( data );\r\n");
      out.write("  \t\t// 同步把tree中的用户勾选中\r\n");
      out.write("  \t/*\tvar n=mygrid.getRowsNum(); //得到行数\r\n");
      out.write("  \t\tfor( var i=0;i<n;i++)\r\n");
      out.write("  \t\t{\r\n");
      out.write("  \t\t      var id= mygrid.getRowId(i);\r\n");
      out.write("  \t\t      setTreeItemChecked( id, true);\r\n");
      out.write("  \t\t}\r\n");
      out.write("  \t\t*/\r\n");
      out.write("\t}else \r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t\talert(extractValue(msg,\"error\"));\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("// 把用，分隔的字符串拆分到数组里\r\n");
      out.write("function parseIds(ids)\r\n");
      out.write("{\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("\tvar ret=new Array();\t\r\n");
      out.write("\tvar i=0;\t\r\n");
      out.write("\twhile(true)\r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tvar p=ids.indexOf(',');\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif(p>0)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\tvar id=ids.substring(0,p);\t\t\t\r\n");
      out.write("\t\t\t \t\t\r\n");
      out.write("\t\t\tret[i]=id;\t\t\t\r\n");
      out.write("\t\t\ti++;\t\t\t\r\n");
      out.write("\t\t\tids=ids.substring(p+1,ids.length);\t\t\t\r\n");
      out.write("\t\t\t \t\t\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\tbreak;\t\t\t\r\n");
      out.write("\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("\tif(ids!=\"\")ret[i]=ids;\t\r\n");
      out.write("\t \r\n");
      out.write("\treturn ret;\t\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function  setTreeItemChecked( userid ,checked)\r\n");
      out.write("{\r\n");
      out.write("\t\tvar doc= document.getElementById( 'tab1' ).contentWindow.document;\r\n");
      out.write(" \t\tvar objs= doc.getElementsByName('chk_name_'+userid);\r\n");
      out.write(" \t\tfor( var i=0;i<objs.length;i++)\r\n");
      out.write(" \t\t{\r\n");
      out.write(" \t\t\tobjs[i].checked=false;\r\n");
      out.write(" \t\t}\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function removeSelected()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("    \t/*\r\n");
      out.write("    \tvar id=parseIds(  mygrid.getSelectedId());\r\n");
      out.write("      if(id==null)id =\"\"; \r\n");
      out.write("      if(id ===undefined) id =\"\"; \r\n");
      out.write("      if ( id ==\"\") \r\n");
      out.write("      {\r\n");
      out.write("             alert('请先选中需要移除的人员');\r\n");
      out.write("      \t     return ;\r\n");
      out.write("      }\r\n");
      out.write("      \r\n");
      out.write("        var ids=parseIds(id);\r\n");
      out.write("        \r\n");
      out.write("\t\tfor(var i=0;i<ids.length;i++)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t id=ids[i];\t\t\t\r\n");
      out.write("\t\t     setTreeItemChecked( id, false);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t*/\r\n");
      out.write("\t\t\r\n");
      out.write("     \t mygrid.deleteSelectedItem();\r\n");
      out.write("     \t mygrid.clearSelection();\t\r\n");
      out.write("     \t \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//treeitem　中的　checkbox 被click后，调用此函数把用户加到列表中\r\n");
      out.write("function addUser( id, name , showname) \r\n");
      out.write("{ \r\n");
      out.write("\tif ( mygrid.isItemExists(id)) return;\r\n");
      out.write("\tvar rc= mygrid.getRowsNum(); //得到行数\r\n");
      out.write("\tmygrid.addRow(id,  [ showname,name,id], rc);\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//treeitem　中的　checkbox 被click后，调用此函数把用户从列表中删除\r\n");
      out.write("function removeUser( id, name , showname) \r\n");
      out.write("{\r\n");
      out.write("\tif (! mygrid.isItemExists(id)) return;\r\n");
      out.write("\tmygrid.deleteRow(id);\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function deleteList()\r\n");
      out.write("{\r\n");
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\tvar groupid = $('groupid').value;\r\n");
      out.write("\tif ( groupid==\"0\")  return;\r\n");
      out.write("\t  \r\n");
      out.write("\tvar groupname=\"\";\r\n");
      out.write("    var ops= $('groupid').options;\r\n");
      out.write("\tfor( var i=0;i< ops.length;i++)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tif ( ops[i].value==groupid)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   groupname= ops[i].title;\r\n");
      out.write("\t\t   break;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\t if ( ! confirm(\"清除[\"+groupname+\"]组，确信要这么做吗?\")) return;\r\n");
      out.write("\t \r\n");
      out.write("\t  jsrsExecute(\"servlet/wiseoa.mail.rpc.Admin_MyUserGroup\", callback_removelist , \"setPrivateGroupUserList\",[groupid , groupname ,  \"\" ]  ,false);\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function callback_removelist( msg )\r\n");
      out.write("{\r\n");
      out.write("\tif(extractValue(msg,\"ok\")==\"true\")\r\n");
      out.write("    {\r\n");
      out.write("        \r\n");
      out.write("        var id= extractValue(msg,\"id\");\r\n");
      out.write("        \r\n");
      out.write("        \r\n");
      out.write("        var exists=false;\r\n");
      out.write("         var ops= $('groupid').options;\r\n");
      out.write("        for( var i=0;i< ops.length;i++)\r\n");
      out.write("\t   {\r\n");
      out.write("\t\t\tif ( ops[i].value== id)\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t   ops.remove(i);\r\n");
      out.write("\t\t\t   break;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t  \t\t\r\n");
      out.write("\t\talert( '人员列表删除成功。');\r\n");
      out.write("        \r\n");
      out.write("        \r\n");
      out.write("        \r\n");
      out.write("   \t}else \r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t\talert(extractValue(msg,\"error\"));\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" //保存人员列表\r\n");
      out.write(" function saveList()\r\n");
      out.write(" {\r\n");
      out.write(" \r\n");
      out.write("\t\r\n");
      out.write(" \tvar groupid = $('groupid').value;\r\n");
      out.write(" \t\r\n");
      out.write(" \tvar groupname=\"\";\r\n");
      out.write("    var ops= $('groupid').options;\r\n");
      out.write("\tfor( var i=0;i< ops.length;i++)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tif ( ops[i].value==groupid)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t   groupname= ops[i].title;\r\n");
      out.write("\t\t   break;\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(" var rc= mygrid.getRowsNum(); //得到行数       \r\n");
      out.write(" var id=\"\";\r\n");
      out.write("   for(var i=0;i< rc;i++)\r\n");
      out.write(" {\r\n");
      out.write(" \t\t if ( id==\"\")  \r\n");
      out.write(" \t\t  {\r\n");
      out.write(" \t\t    id= mygrid.getRowId(i);\r\n");
      out.write(" \t\t    }else\r\n");
      out.write(" \t\t    {\r\n");
      out.write(" \t\t    \t id=id+\",\"+ mygrid.getRowId(i);\r\n");
      out.write(" \t\t    }\r\n");
      out.write(" }\t\t    \r\n");
      out.write("\t\r\n");
      out.write("\tif(id==\"\")\r\n");
      out.write("\t{\r\n");
      out.write("\t    if ( groupid==\"0\") \r\n");
      out.write("\t    {\r\n");
      out.write("\t\t\talert('人员列表中没有人员');\t\t\r\n");
      out.write("\t\t\treturn ;\t\t\r\n");
      out.write("\t\t}else\r\n");
      out.write("\t\t{ \r\n");
      out.write("\t\t       if ( ! confirm(\"人员列表中没有人员，保存列表意味着清除[\"+groupname+\"]组，确信要这么做吗?\")) return; \r\n");
      out.write("\t\t}\r\n");
      out.write("\t} else\r\n");
      out.write("\t{\r\n");
      out.write(" \t\r\n");
      out.write(" \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 \tif ( parseInt(groupid)!=0)\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\t\r\n");
      out.write("\t\t\t\t \t\tif ( !( confirm (\"确信要把人员列表保存到[\"+groupname+\"]中吗?点击[是] 将把人员列表保存到组中，点击[否]将允许您创建一个新的组，并把人员保存到新的组中，请选择。\"))  ) \r\n");
      out.write("\t\t\t\t \t\t{\r\n");
      out.write("\t\t\t\t \t\t        groupid=0;\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\t\r\n");
      out.write("\t\t\t\t \tif ( parseInt(groupid)==0)\r\n");
      out.write("\t\t\t\t \t{\t        \r\n");
      out.write("\t\t\t\t \t\t      \tvar s=    window.showModalDialog('inputbox.jsp', \"<tip>请输入人员分组名称：</tip><value></value>\" , \"dialogWidth:\" + 250  + \"px;dialogHeight:\" +130+  \"px;help:no;scroll:no;status:no\");\r\n");
      out.write("\t\t\t\t\t\t\t    if ( extractValue(s,\"click\")!='ok') return;\r\n");
      out.write("\t\t\t\t\t\t\t    var subName= extractValue(s,'value');\r\n");
      out.write("\t\t\t\t\t\t\t    if ( subName==null) return;\r\n");
      out.write("\t\t\t\t\t\t\t    if ( subName=='')  return;\r\n");
      out.write("\t\t\t\t\t \t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\tif ( subName.indexOf(\" \")>=0 )\r\n");
      out.write("\t\t\t\t\t\t\t\t{\r\n");
      out.write("\t\t\t\t\t\t\t\t\talert(\"不允许有空格\");\r\n");
      out.write("\t\t\t\t\t\t\t\t\treturn;\r\n");
      out.write("\t\t\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\tif ( subName==\"\" ) return ;\r\n");
      out.write("\t\t\t\t\t\t\t\tgroupname=subName;\r\n");
      out.write("\t\t\t\t  \t}\r\n");
      out.write("\t\t\t\t  \t\r\n");
      out.write("  \t }\r\n");
      out.write("  \r\n");
      out.write("  \t  jsrsExecute(\"servlet/wiseoa.mail.rpc.Admin_MyUserGroup\", callback_saveuser, \"setPrivateGroupUserList\",[groupid , groupname ,  id ]  ,false);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function callback_saveuser( msg )\r\n");
      out.write("{\r\n");
      out.write("\tif(extractValue(msg,\"ok\")==\"true\")\r\n");
      out.write("    {\r\n");
      out.write("        \r\n");
      out.write("        var id= extractValue(msg,\"id\");\r\n");
      out.write("        var name= extractValue(msg,\"name\");\r\n");
      out.write("        \r\n");
      out.write("        var exists=false;\r\n");
      out.write("         var ops= $('groupid').options;\r\n");
      out.write("        for( var i=0;i< ops.length;i++)\r\n");
      out.write("\t   {\r\n");
      out.write("\t\t\tif ( ops[i].value== id)\r\n");
      out.write("\t\t\t{\r\n");
      out.write("\t\t\t   exists=true;\r\n");
      out.write("\t\t\t   break;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif (!exists)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t        var oOption = document.createElement(\"OPTION\");\r\n");
      out.write("\t\t\t\t$('groupid').options.add(oOption);\r\n");
      out.write("\t\t\t\toOption.innerText = name;\r\n");
      out.write("\t\t\t\toOption.title = name;\r\n");
      out.write("\t\t\t\toOption.value = id;\r\n");
      out.write("\t\t\t\t  $('groupid').disabled=true;\r\n");
      out.write("\t\t\t\t  $('groupid').value=id;\r\n");
      out.write("\t\t\t\t  $('groupid').disabled=false;  //防止刷新人员列表\r\n");
      out.write("\t\t}\t\t  \r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\talert( '人员列表保存成功。');\r\n");
      out.write("        \r\n");
      out.write("        \r\n");
      out.write("        \r\n");
      out.write("   \t}else \r\n");
      out.write("\t{\r\n");
      out.write("\t\t\r\n");
      out.write("\t\talert(extractValue(msg,\"error\"));\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("\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(" <table border=0 >\r\n");
      out.write(" <tr><td width=50%>\r\n");
      out.write(" <script>\r\n");
      out.write("  var t=new tab( \"t\");\r\n");
      out.write("\t t.addTab('选择人员','tab1','image/user.gif');\r\n");
      out.write("\t t.addTab('检索人员','tab2','image/search.gif');\r\n");
      out.write("\t \r\n");
      out.write(" \t  \r\n");
      out.write("\t t.create();\r\n");
      out.write("\t </script>\r\n");
      out.write(" <div  class=\"TABCONTAINER \" style=\"height:288px\" >\r\n");
      out.write(" <IFRAME    id='tab1'    width=320  height='295' frameborder=0 src='userhelp_detail2.jsp");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("'></IFRAME>\r\n");
      out.write(" <div id=\"tab2\">\r\n");
      out.write("   <br>&nbsp;输入姓名/登录名(中的部分)或姓氏拼音首字母按回车查询<br>\r\n");
      out.write("   &nbsp;<input  type=\"text\" id='key' size=46 class=\"flatbox\"  onkeydown=\" if ( event.keyCode==13)  search();\">&nbsp;\r\n");
      out.write("   <img src=\"image/SearchResults.gif\" align=\"absmiddle\" class=\"imgbutton\" onclick=\"search();\">\r\n");
      out.write("\t\t<IFRAME    id='tab1_frame'   width=320   height='247' frameborder=0 src='userhelp_detail12.jsp'></IFRAME>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("       \r\n");
      out.write("  </div> \r\n");
      out.write("  </td>\r\n");
      out.write("  <td>\r\n");
      out.write("  <input type=\"button\" style=\"width:20\" value=\"&lt;\"  onclick=\"removeSelected();\" title=\"将选中人员列表中亮选的移除\">\r\n");
      out.write("  <input type=\"button\" style=\"width:20\" value=\"&lt;&lt;\"  onclick=\"if( confirm('确信要清空选中人员列表吗?')) mygrid.clearAll();\"  title=\"清空选中人员列表\">\r\n");
      out.write("  \r\n");
      out.write("  </td>\r\n");
      out.write("  \r\n");
      out.write("  <td width=40%  valign=top>\r\n");
      out.write("  <table border=0 cellspadding=0 cellspace=0>\r\n");
      out.write("  <tr>\r\n");
      out.write("  <td  height=16>\r\n");
      out.write("  <span class=selectspan><select  id=groupid  class=\"px12 flatselect \"  onchange=\"loadGroupUser();\" >\r\n");
      out.write("  ");
      out.print(upg.groupHTML );
      out.write("\r\n");
      out.write("  </select>\r\n");
      out.write("  </span>\r\n");
      out.write("  </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("  <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("[<span class=\"asbutton\"  onclick=\"saveList();\">保存列表</span>][<span class=\"asbutton\"  onclick=\"deleteList();\">删除列表</span>]\r\n");
      out.write("<div>选中的人员列表：<font color=gray>(双击移除)</font></div>\r\n");
      out.write("</td></tr>\r\n");
      out.write("  <td valign=top>\r\n");
      out.write(" \r\n");
      out.write("  <div  style= \"width:100%; height:100% ; display:none \"  id=gridcontainer  >\r\n");
      out.write("  \t  <div id=\"gridbox\"    class=\"TABCONTAINER  \"  \r\n");
      out.write("  \t  style=\"   border:1px #919b9c solid ;  background-color:#ffffff;  \t  z-index:1000 ; width:100%; height:278   \"  >\r\n");
      out.write("\t  </div>\r\n");
      out.write("      <script>\r\n");
      out.write("\t\tvar mygrid = new dhtmlXGridObject('gridbox');\r\n");
      out.write("\t\tmygrid.setImagePath(\"dhtmlXGrid/imgs/\");\r\n");
      out.write("\t\tmygrid.setHeader('姓名,登录名,ID');\r\n");
      out.write("\t\tmygrid.setInitWidths(\"100, 80,0\");\r\n");
      out.write("\t\tmygrid.setColAlign(\"center,left,left\");\r\n");
      out.write("\t  \tmygrid.enableMultiselect(true);\r\n");
      out.write("\t    mygrid.enableEditEvents(false,false,false); //禁止单击，双击，以及按F2进行编辑\r\n");
      out.write("\t\tmygrid.setSkin(\"xp\");\r\n");
      out.write("\t\tmygrid.init();\r\n");
      out.write("\t \r\n");
      out.write("\t   mygrid.onRowDblClicked = function( rowid, cellIndex)\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\tremoveSelected();\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t \t \r\n");
      out.write("\t\t \r\n");
      out.write("\t</script>\r\n");
      out.write("  </div>\t\r\n");
      out.write("  </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  \r\n");
      out.write("  </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("    \r\n");
      out.write("    \r\n");
      out.write("  <SCRIPT language=\"javascript\">\r\n");
      out.write("          t.showTab(\"tab1\"); \r\n");
      out.write("       \r\n");
      out.write("     \r\n");
      out.write("    //setTimeout( \"delayLoad()\", 300);\r\n");
      out.write("      \r\n");
      out.write("      function delayLoad()\r\n");
      out.write("      {\r\n");
      out.write("      \turl=\"userhelp_detail.jsp");
      if (_jspx_meth_c_005fout_005f1(_jspx_page_context))
        return;
      out.write("\";\r\n");
      out.write(" \t  \tvar f= document.getElementById('tab2');\r\n");
      out.write(" \t    if (f.src=='') f.src=url;\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 window.onload=function()\r\n");
      out.write(" \t {\r\n");
      out.write(" \t    $('gridcontainer').style.display=\"\";\r\n");
      out.write(" \t \tmygrid.setSizes();\r\n");
      out.write(" \t \tloadInitValue();\r\n");
      out.write(" \t \t\r\n");
      out.write(" \t }\r\n");
      out.write(" \t \r\n");
      out.write("   </SCRIPT>\r\n");
      out.write("   \r\n");
      out.write("   <TABLE border=0  width=\"100%\">\r\n");
      out.write("     \r\n");
      out.write("    <TR  >\r\n");
      out.write("                   <TD width=\"60%\" height=\"29\">&nbsp;</TD>\r\n");
      out.write("                    \r\n");
      out.write("                   <TD width=\"20%\" 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\t function cb_abort_onclick()\r\n");
      out.write("\t\t\t\t\t{\r\n");
      out.write("\r\n");
      out.write("\t\t \t\t\t\t //先清除原来的\r\n");
      out.write("\t\t \t\t\t\t try\r\n");
      out.write("\t\t \t\t\t\t {\r\n");
      out.write("\t\t \t\t\t\t\tpw.document.getElementById(pw.forWhat).value = \"\" ;\r\n");
      out.write("\t\t \t\t\t\t }catch(e)\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\t\r\n");
      out.write("\t\t\t\t\t\tvar rc= mygrid.getRowsNum(); //得到行数       \r\n");
      out.write("\t\t\t\t\t\tvar retValue=[];\r\n");
      out.write("\t\t\t\t\t    for(var i=0;i< rc;i++)\r\n");
      out.write("\t\t\t\t\t\t{\r\n");
      out.write("\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t var  id= mygrid.getRowId(i);\r\n");
      out.write("\t\t\t\t\t\t\t var  showname= mygrid.cells(id,0).getValue();\r\n");
      out.write("\t\t\t\t\t\t\t var  name= mygrid.cells(id,1).getValue();\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t retValue[retValue.length]={id:id,name:name,showname:showname};\r\n");
      out.write("\t\t\t\t\t\t\t \r\n");
      out.write("\t\t\t\t\t\t\t SelecUserWithoutClose( id , name, showname);\r\n");
      out.write("\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\tExit( retValue);\r\n");
      out.write("\t\t\t\t\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\tvar cb =new zbutton('cb_abort','&nbsp;&nbsp;确&nbsp;&nbsp;定&nbsp;&nbsp;','image/ok.gif');\r\n");
      out.write("\t\t            \r\n");
      out.write("\t\t        \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\t</SCRIPT>\r\n");
      out.write("\t\t\t\t   </TD>\r\n");
      out.write("                   <TD width=\"20%\" align=\"right\">\r\n");
      out.write("\t\t\t       <SCRIPT language=\"javascript\">\r\n");
      out.write("\t\t \t\t\t\tfunction cb_next_onclick()\r\n");
      out.write("\t\t\t\t\t\t{\r\n");
      out.write("\t\t\t\t\t\t   window.close();\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t   var cbnext =new zbutton('cb_next','&nbsp;&nbsp;关&nbsp;&nbsp;闭&nbsp;&nbsp;','image/cancel.gif');\r\n");
      out.write("\t\t  \r\n");
      out.write("        \t\t\t</SCRIPT></TD>\r\n");
      out.write("        \t\t \r\n");
      out.write("                 </TR>\r\n");
      out.write("               </TABLE>\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);
    // /userhelp2.jsp(473,88) 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("${querystring}", 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_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);
    // /userhelp2.jsp(546,31) 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("${querystring}", 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;
  }
}
