/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2021-02-02 05:15:10 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.code.jstl.*;
import wiseoa.util.*;
import java.util.*;
import java.net.*;
import wiseoa.*;
import jun.db.util.*;
import wiseoa.mail.jstl.*;

public final class treecode_005findex_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_loginneedtest.jsp", Long.valueOf(1476341414363L));
  }

  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("  ");
      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");
  
 
   //æ£æµæ¯å¦å¯¹æªç»å½ç¨æ·å¼æ¾
   User user_1211temp=User.getUserFromRequest( request);
   if (  user_1211temp.getId()<0 )
	 {
	   
	    System_BaseInfo gInfo= System_BaseInfo.getInstance(request);
	    if ( gInfo.GlobalConfig.get("openforlogineduser").toString().equals("1"))
		{
	    	
		    
		    String subpath=(String)session.getAttribute("wiseoaappsubpath" );
		    if ( subpath==null) subpath="";
		    String url=request.getRequestURI();
		    String qs= request.getQueryString();
		    if ( qs==null) qs="";
		    if ( !qs.equals("") ) qs="?"+qs;
		    url=jun.db.util.Escape.escape(url+qs); 
		    
		 	response.sendRedirect(  subpath+"/login.jsp?url="+url );
		 	return;
		}
	 }
 

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

 
    TreeCodeClassTree   mdir= new TreeCodeClassTree(request);
 
    String s=request.getQueryString();
    if ( s==null) s="";
 
     if ( !s.equals("") ) s="?"+s;
    FF.pageContextSetAttribute(pageContext,"querystring", s);
    
    
 
      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(" \r\n");
      out.write("    <META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("    \r\n");
      out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write("\t<LINK rel=\"StyleSheet\" href=\"tree/dtree.css\" type=\"text/css\" />\r\n");
      out.write("    <SCRIPT  type=\"text/javascript\" src=\"tree/dtree.js\"></SCRIPT>\r\n");
      out.write("  \r\n");
      out.write("\t\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("\tbody {\r\n");
      out.write("\tmargin-left: 0px;\r\n");
      out.write("\tmargin-top: 0px;\r\n");
      out.write("\tmargin-right: 0px;\r\n");
      out.write("\tmargin-bottom: 0px;\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("</style>\r\n");
      out.write(" <SCRIPT type=\"text/javascript\" src=\"js/domutil.js\"></SCRIPT>\t \r\n");
      out.write("<script type=\"text/javascript\" src=\"menu/milonic_src.js\"></script>\t\r\n");
      out.write("<script  type=text/javascript src=menu/mmenudom.js></script> \r\n");
      out.write("\r\n");
      out.write("<script type=\"text/javascript\" src=\"js/treeCodeClass.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"menu/contextmenu.js\"></script>\t\r\n");
      out.write("\r\n");
      out.write("   <SCRIPT type=\"text/javascript\" src=\"js/jsrsClient_rev.js\"></SCRIPT>\t \r\n");
      out.write("  \r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("\t \r\n");
      out.write("<SCRIPT type=\"text/javascript\">\r\n");
      out.write("    var tableName='");
      out.print(mdir.tableName);
      out.write("';\r\n");
      out.write("    var tableid= '");
      out.print(mdir.tableID);
      out.write("'; \r\n");
      out.write("      \r\n");
      out.write("\t");
      out.print(mdir.TreeHTML);
      out.write("  \r\n");
      out.write("\t// 亮显path\r\n");
      out.write("\t\r\n");
      out.write("\t\r\n");
      out.write("</SCRIPT>\r\n");
      out.write("\r\n");
      out.write("<script language='javascript'>\r\n");
      out.write("\r\n");
      out.write("   function getCurrentNode()\r\n");
      out.write("   {\r\n");
      out.write("   \t    try\r\n");
      out.write("   \t    { \r\n");
      out.write("   \t    return d.getSelectedNode();\r\n");
      out.write("   \t    }catch(err)\r\n");
      out.write("   \t    {\r\n");
      out.write("   \t    \talert(\"请确保您已经创建了该代码表。\");\r\n");
      out.write("   \t    }\r\n");
      out.write("   }\r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("\t  \r\n");
      out.write("\t// 列表窗口打开后会让本页面定位到合适的目录，但可能可页面后Load完成，所以\r\n");
      out.write("\t//　需要再调用一次强制定位\r\n");
      out.write("\ttry\r\n");
      out.write("\t{\r\n");
      out.write("\t\r\n");
      out.write("\t  // 如果没有节点，那么选中根节点 \r\n");
      out.write("\t  if ( d.getSelectedNode() ==null)  d.SelectNode('root');\r\n");
      out.write(" \r\n");
      out.write("\t  parent.parent.frames('listFrame').frames(1).location.href=('treecode_list.jsp?tableid='+tableid+'&pid='+ d.getSelectedNode().id);\r\n");
      out.write("\t  \r\n");
      out.write("      \r\n");
      out.write("\t }catch(err)\r\n");
      out.write("\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 function setStatusbar()\r\n");
      out.write("\t {\r\n");
      out.write("\t           var s=d.getSelectedNode().tag;\r\n");
      out.write("\t           var t= \"<font color=blue>[ \"+ unescape(extractValue( s , \"classcode\"))+\"] \"+unescape(extractValue( s , \"classname\"))+\"</font>\";\r\n");
      out.write("\t           \r\n");
      out.write("\t           var a= unescape(extractValue(s, \"parentpath\"));\r\n");
      out.write("\t           if ( a!=\"\") a=\"\\\\\"+a;\r\n");
      out.write("\t           a=a+\"\\\\\"+unescape(extractValue(s, \"classname\"));\r\n");
      out.write("\t           \r\n");
      out.write("\t         setStatusbarInfo( \"当前分级节点：<font color=blue>\"+t+\"</font>\");\r\n");
      out.write("\t\t\t setAddressInfo( a );\r\n");
      out.write("\t\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 function setStatusbarInfo( info)\r\n");
      out.write("\t {  \r\n");
      out.write("\t     \t  parent.parent.frames('bottomFrame').document.getElementById('statebar').innerHTML=info;\r\n");
      out.write("\t }\r\n");
      out.write("\t \r\n");
      out.write("\t function setAddressInfo( info)\r\n");
      out.write("\t {    \r\n");
      out.write("\t     \t  parent.parent.frames('topFrame').document.getElementById('address').innerText=info;\r\n");
      out.write("\t }\r\n");
      out.write("\t \r\n");
      out.write("\t \r\n");
      out.write("\t function showMenu()\r\n");
      out.write("\t {\r\n");
      out.write(" \r\n");
      out.write("        alert('单击鼠标右键显示操作菜单');\r\n");
      out.write("  \t}\r\n");
      out.write("  \t\r\n");
      out.write("</script>\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);
    }
  }
}
