/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-08-04 06:03: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 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 h5_005fuserhelp_005fdetail1_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 volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

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

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

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

  public void _jspInit() {
  }

  public void _jspDestroy() {
  }

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

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


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

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\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");
 
    request.setCharacterEncoding("UTF-8");
    FF.setResponseContentType(response);
  
    UserHelpByKey dth=new UserHelpByKey(request );
  
     

      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>\r\n");
      out.write(" \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("     \r\n");
      out.write("     \r\n");
      out.write("    <LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write("     <SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\t \r\n");
      out.write("\r\n");
      out.write("  </HEAD>\r\n");
      out.write("  \r\n");
      out.write("  <BODY>\r\n");
      out.write("   ");
      out.print(dth.HTML);
      out.write("  \r\n");
      out.write("  \r\n");
      out.write("  <form id=\"searchform\" method=\"post\"  style=\"display:none\" action=\"userhelp_detail1.jsp\">\r\n");
      out.write("  <input type=\"hidden\"  id=\"key\"  name=\"key\"  >\r\n");
      out.write("  </form>\r\n");
      out.write("  \r\n");
      out.write("  <script language='javascript'>\r\n");
      out.write("\t\r\n");
      out.write("//仅供userhelp_detail12.jsp使用，在本jsp中无用，\t\t\r\n");
      out.write(" function selectOrUnSelectUser(checked , id, name , showname)\r\n");
      out.write("  {\r\n");
      out.write("    \r\n");
      out.write("  }\r\n");
      out.write("  \r\n");
      out.write(" function search(key)\r\n");
      out.write(" {\r\n");
      out.write(" \tdocument.getElementById('key').value=key;\r\n");
      out.write(" \tdocument.getElementById('searchform').submit();\r\n");
      out.write(" }\r\n");
      out.write(" \r\n");
      out.write("  \r\n");
      out.write("  function  Select( value )\r\n");
      out.write("  {\r\n");
      out.write("  \t  \r\n");
      out.write("  \t  var userid = extractValue( value, \"id\"); \r\n");
      out.write("  \t  var username=extractValue( value,  \"name\");\r\n");
      out.write("  \t  var showname=extractValue( value,  \"showname\");  \t  \r\n");
      out.write("  \t \r\n");
      out.write("   \t  parent.SelectTemplate( userid, username , showname);\r\n");
      out.write("  }\r\n");
      out.write("    \r\n");
      out.write("  function  getAllSelectedUser()\r\n");
      out.write("  {\r\n");
      out.write(" \r\n");
      out.write(" \ttry\r\n");
      out.write(" \t{\r\n");
      out.write("        \tvar objs= document.getElementsByName(\"userid\");\r\n");
      out.write("        \tif ( objs==null) return;\r\n");
      out.write("         \r\n");
      out.write("        \tvar ids=\"\";\r\n");
      out.write("        \tvar names=\"\";\r\n");
      out.write("\t\t\tvar shownames=\"\";\r\n");
      out.write("\t\t\t\r\n");
      out.write("        \tfor ( i=0;i<objs.length;i++)\r\n");
      out.write("        \t{\r\n");
      out.write("        \t\tif (! objs[i].checked) continue;\r\n");
      out.write("        \t    var value= objs[i].value; \r\n");
      out.write("        \t     \r\n");
      out.write("        \t    var userid = extractValue( value, \"id\"); \r\n");
      out.write("  \t  \t\t\tvar username=extractValue( value,  \"name\");\r\n");
      out.write("  \t  \t\t\tvar showname=extractValue( value,  \"showname\");\r\n");
      out.write("  \t  \t\t\t ids= append( ids, userid);\r\n");
      out.write("  \t  \t\t\t names=append(names, username);\r\n");
      out.write("  \t  \t\t\t shownames=append(shownames , showname);\r\n");
      out.write("  \t  \t\t}\r\n");
      out.write("  \t  \t\t\t\r\n");
      out.write("       \r\n");
      out.write("   \t    \tparent.SelectMoreUser( ids,  names ,shownames);\r\n");
      out.write("   \t    \t \r\n");
      out.write("      }\r\n");
      out.write("      catch(err)\r\n");
      out.write("      { \r\n");
      out.write("       \r\n");
      out.write("         //如果没有定义 SelectMoreUser  那么就循环直接用　SelectUser\r\n");
      out.write("           var objs= document.getElementsByName(\"userid\");\r\n");
      out.write("        \tif ( objs==null) return;\r\n");
      out.write("         \r\n");
      out.write("        \tvar ids=\"\";\r\n");
      out.write("        \tvar names=\"\";\r\n");
      out.write("\t\t\tvar shownames=\"\";\r\n");
      out.write("\t\t\t\r\n");
      out.write("        \tfor ( i=0;i<objs.length;i++)\r\n");
      out.write("        \t{\r\n");
      out.write("        \t\tif (! objs[i].checked) continue;\r\n");
      out.write("        \t    var value= objs[i].value; \r\n");
      out.write("        \t     \r\n");
      out.write("        \t    var userid = extractValue( value, \"id\"); \r\n");
      out.write("  \t  \t\t\tvar username=extractValue( value,  \"name\");\r\n");
      out.write("  \t  \t\t\tvar showname=extractValue( value,  \"showname\");\r\n");
      out.write("  \t  \t\t     parent.SelecUserWithoutClose( userid, username , showname);\r\n");
      out.write("  \t  \t\t}\r\n");
      out.write("  \t  \t     \r\n");
      out.write("       \t\tparent.Exit();\r\n");
      out.write("       }\r\n");
      out.write("       \r\n");
      out.write("  }\r\n");
      out.write("  \r\n");
      out.write("  function append(   s,   t)\r\n");
      out.write("  {\r\n");
      out.write("  \t\tif ( s==\"\")  return t;\r\n");
      out.write("  \t\treturn s+\",\"+t;\r\n");
      out.write(" \t}\r\n");
      out.write("  \t\r\n");
      out.write("   \r\n");
      out.write("  </script>\r\n");
      out.write(" \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);
    }
  }
}
