/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-11-18 09:58:47 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.mail.jstl.*;
import wiseoa.util.*;
import java.util.*;
import java.net.*;
import java.sql.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.mail.jstl.*;

public final class desktopIcon_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_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_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _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");
      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("\r\n");
      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("<title>导航</title>\r\n");
      out.write(" \r\n");
      out.write("\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\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("    <LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write(" \r\n");
      out.write("<style>\r\n");
      out.write("\r\n");
      out.write("body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, img, form, fieldset, input, textarea, blockquote {\r\n");
      out.write("\tmargin: 0; padding: 0; border: 0;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("body {\r\n");
      out.write(" \r\n");
      out.write("\tbackground: white;\r\n");
      out.write("\tbackground-image:url(upload/desktopiconbk.jpg) ;\r\n");
      out.write("\tbackground-size:100% 100%;\r\n");
      out.write("\tbackground-repeat:no-repeat no-repeat ;\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("#crumbs {\r\n");
      out.write("font-family:宋体;\r\n");
      out.write("\ttext-align: left; padding-left:10px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\t#crumbs ul {\r\n");
      out.write("\t\tlist-style: none;\r\n");
      out.write("\t\tdisplay: inline-table;\r\n");
      out.write("\t\tmargin:5px;\r\n");
      out.write("\t}\r\n");
      out.write("\t\t#crumbs ul li {\r\n");
      out.write("\t\t\tdisplay: inline;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\r\n");
      out.write("\t\t#crumbs ul li a {\r\n");
      out.write("\t\t\tdisplay: block;\r\n");
      out.write("\t\t\tfloat: left;\r\n");
      out.write("\t\t\theight: 30px;\r\n");
      out.write("\t\t\tline-height:22px;\r\n");
      out.write("\t\t\tbackground: #3498db;\r\n");
      out.write("\t\t\ttext-align: center;\r\n");
      out.write("\t\t\tpadding: 10px 5px 0 25px;\r\n");
      out.write("\t\t\tposition: relative;\r\n");
      out.write("\t\t\tmargin: 0 10px 0 0; \r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\tfont-size: 14px;\r\n");
      out.write("\t\t\ttext-decoration: none;\r\n");
      out.write("\t\t\tcolor: #fff;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\t#crumbs ul li a:after {\r\n");
      out.write("\t\t\t\tcontent: \"\";  \r\n");
      out.write("\t\t\t\tborder-top: 20px solid transparent;\r\n");
      out.write("\t \t\t\tborder-bottom: 20px solid transparent;\r\n");
      out.write("\t  \t\t\tborder-left: 20px solid #3498db;\r\n");
      out.write("\t\t\t\tposition: absolute; right: -20px; top: 0;\r\n");
      out.write("\t\t\t\tz-index: 1;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t#crumbs ul li a:before {\r\n");
      out.write("\t\t\t\tcontent: \"\";  \r\n");
      out.write("\t\t\t\tborder-top: 20px solid transparent;\r\n");
      out.write("\t  \t\t\tborder-bottom: 20px solid transparent;\r\n");
      out.write("\t  \t\t\tborder-left: 20px solid white;\r\n");
      out.write("\t\t\t\tposition: absolute; left: 0; top: 0;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\r\n");
      out.write("\t\t\t\t#crumbs ul li:first-child a {\r\n");
      out.write("\t\t\t\t\tborder-top-left-radius: 10px; border-bottom-left-radius: 10px;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\t#crumbs ul li:first-child a:before {\r\n");
      out.write("\t\t\t\t\tdisplay: none; \r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t\t#crumbs ul li:last-child a {\r\n");
      out.write("\t\t\t\t\tpadding-right: 10px;\r\n");
      out.write("\t\t\t\t\tborder-top-right-radius: 10px; border-bottom-right-radius: 10px;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\t#crumbs ul li:last-child a:after {\r\n");
      out.write("\t\t\t\t\tdisplay: none; \r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t\t#crumbs ul li a:hover {\r\n");
      out.write("\t\t\t\tbackground: #54b8fb;\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t\t#crumbs ul li a:hover:after {\r\n");
      out.write("\t\t\t\t\tborder-left-color: #54b8fb;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\r\n");
      out.write("</style>\r\n");
      out.write(" \r\n");
      out.write("  <script type=\"text/javascript\" src=\"js/json.js\"></script>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/jst.js\"></script>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/jquery.js\"></script>\r\n");
      out.write(" <script type=\"text/javascript\" src=\"js/zrpc.js.jsp\"></script>\r\n");
      out.write("  \r\n");
      out.write("<script type=\"text/javascript\" src=\"js/domutil.js\"></script>\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("<script>\r\n");
      out.write("   \r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function isMobile() {\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t    if (navigator.userAgent.indexOf('Android') > 0\r\n");
      out.write("\t        || navigator.userAgent.indexOf('webOS') > 0\r\n");
      out.write("\t        || navigator.userAgent.indexOf('iPhone') > 0\r\n");
      out.write("\t        || navigator.userAgent.indexOf('iPad').index > 0\r\n");
      out.write("\t        || navigator.userAgent.indexOf('iPod') > 0\r\n");
      out.write("\t        || navigator.userAgent.indexOf('BlackBerry') > 0\r\n");
      out.write("\t        || navigator.userAgent.indexOf('Windows Phone') > 0\r\n");
      out.write("\t    ) return true;\r\n");
      out.write("\t    return false;\r\n");
      out.write("\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("   window.onload=function()\r\n");
      out.write("   {\r\n");
      out.write("\t   \r\n");
      out.write("       var pid= urlArgs.pid;\r\n");
      out.write("       if( !pid) pid=\"node_0\";\r\n");
      out.write("       \r\n");
      out.write("       loadIcons(pid);\r\n");
      out.write("   }\r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("   function loadIcons( pid )\r\n");
      out.write("   { \r\n");
      out.write("\t   //alert (pid);\r\n");
      out.write("\t   pid= pid.substring( pid.lastIndexOf('_')+1);\r\n");
      out.write("\t //  alert( pid);\r\n");
      out.write("\t  \r\n");
      out.write("\t   $rpc('wiseoa.mail.rpc.WorkSpaceZRPC', 'getIcons', {\r\n");
      out.write("\t\t  pid:pid \r\n");
      out.write("\t\t}, function(ret) {\r\n");
      out.write("\r\n");
      out.write("\t\t\t \r\n");
      out.write("\t\t\tvar data = JSON.parse(ret);\r\n");
      out.write("\t\t     var path=  data.path;\r\n");
      out.write("\t\t     var pathHTML=[];\r\n");
      out.write("\t\t     for( var i=0;i<path.length;i++)\r\n");
      out.write("\t\t    {\r\n");
      out.write("\t\t        \t pathHTML.push('<li ><a href=\"javascript:loadIcons(\\'node_'+path[i].id+'\\' )\">'+path[i].name +'</a></li>');\r\n");
      out.write("\t\t        \t \r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t     $('#path').html( pathHTML.join(''));\r\n");
      out.write("\t\t     \r\n");
      out.write("\t        \t\r\n");
      out.write("\t\t\tvar html = TrimPath.processDOMTemplate(\"template_workspace_icon\"+ ( isMobile()?\"_mobile\":\"\") , data);\r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t\t$('#icon-list').html(html);\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("   }\r\n");
      out.write("   \r\n");
      out.write("   \r\n");
      out.write("   function openURL(img, name, url  )\r\n");
      out.write("\t{\r\n");
      out.write("\t \r\n");
      out.write("\t\tif( window.event.ctrlKey ) \r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\topen(url);\r\n");
      out.write("\t\t\treturn;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tvar iframe=parent.parent.$E('mainFrame');\r\n");
      out.write("\t\t\r\n");
      out.write("\t\r\n");
      out.write("\t\t//alert( iframe.src);\r\n");
      out.write("\t\tif(   iframe.src.indexOf('tabmain.jsp')>0 && iframe.contentWindow.location.href.indexOf('tabmain.jsp')>0 )\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\t \r\n");
      out.write("\t\t\t iframe.contentWindow.addTab( img,name , url);\r\n");
      out.write("\t\t}else\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t \r\n");
      out.write("\t\t\t  ");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t  \r\n");
      out.write("\t\t\t  ");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t\t\r\n");
      out.write("\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("<body style=\"margin:2px; overflow-y:auto;overflow-x:hidden;  \">\r\n");
      out.write(" \r\n");
      out.write("<div id=\"crumbs\">\r\n");
      out.write("\t<ul  id=path>\r\n");
      out.write("\t \r\n");
      out.write("\t</ul>\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write(" <div id=\"icon-list\"  style=\"padding:20px; padding-top:30px;\">\r\n");
      out.write(" \r\n");
      out.write(" </div>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
      out.write("\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_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);
    // /desktopIcon.jsp(206,5) 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.tabmain=='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\t\t  \r\n");
        out.write("\t\t\t      iframe.src=\"tabmain.jsp\" ;\r\n");
        out.write("\t\t\t      setTimeout(  function(){   iframe.contentWindow.addTab( img,name , url); } ,300 );\r\n");
        out.write("\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_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);
    // /desktopIcon.jsp(212,5) 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("${globalconfig.tabmain==0 }", 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\t\tiframe.src=url;\t\r\n");
        out.write("\t\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;
  }
}
