⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu_jsp.java

📁 国外的一套开源CRM
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      out.write("<DIV id='+this.name+'_panel'+i);\r\n      document.write(' Style=\"position:absolute; left:0; top:'+t);\r\n      document.write('; width:'+this.width+'; height:'+h+'; clip:rect(0px, ');\r\n      document.write(this.width+'px, '+h+'px, 0px); background-color:');\r\n      document.write(this.bgcolor+';\">')\r\n      t=t+28;\r\n\r\n       //one layer to host the panel buttons\r\n      document.write('");
      out.write("<div id='+this.name+'_panel'+i);\r\n      document.write('_f Style=\"position:absolute; left:0; top:38; width:');\r\n      document.write(this.width+'; height:');\r\n      document.write((this.panels[i].img.length*this.buttonspace));\r\n      document.write('; background-color:'+this.bgcolor+';\">')\r\n      mtop=0\r\n\r\n      //one (ie4, ie5, ns5) or three layers (op5) for every button\r\n      for (j=0;j");
      out.write("<this.panels[i].img.length;j++) {\r\n        if (bt.op5) {\r\n          document.write('");
      out.write("<DIV id='+this.name+'_panel'+i+'_b'+j);\r\n          document.write('0 class=imgB Style=\"position:absolute; ');\r\n          document.write('visibility:hidden; left:0; width:'+this.width);\r\n          document.write('; top:'+mtop+'; text-align:center;\">');\r\n          document.write('");
      out.write("<img  src='+this.panels[i].img[j]);\r\n          document.write(' class=imgbin onmouseUp=\\''+this.panels[i].v);\r\n          document.write('.mOver('+j+');'+this.panels[i].act[j]);\r\n          document.write(';\\' onmouseOut=\"'+this.panels[i].v+'.mOut('+j);\r\n          document.write(');\">");
      out.write("<BR>'+this.panels[i].lbl[j]+'");
      out.write("</DIV>');\r\n\r\n          document.write('");
      out.write("<DIV id='+this.name+'_panel'+i+'_b'+j+'1 class=imgB');\r\n          document.write(' Style=\"position:absolute; visibility:hidden; ');\r\n          document.write('left:0; width:'+this.width+'; top:'+mtop);\r\n          document.write('; text-align:center;\">');\r\n          document.write('");
      out.write("<img  src='+this.panels[i].img[j]);\r\n          document.write(' class=imgbout onmouseDown=\"'+this.panels[i].v);\r\n          document.write('.mDown('+j+');\" onmouseUp=\\''+this.panels[i].v);\r\n          document.write('.mOver('+j+');'+this.panels[i].act[j]);\r\n          document.write(';\\' onmouseOut=\"'+this.panels[i].v+'.mOut('+j);\r\n          document.write(');\">");
      out.write("<BR>'+this.panels[i].lbl[j]+'");
      out.write("</DIV>');\r\n\r\n          document.write('");
      out.write("<DIV id='+this.name+'_panel'+i+'_b'+j);\r\n          document.write('2 class=imgB Style=\"position:absolute; ');\r\n          document.write('visibility:visible; left:0; width:'+this.width);\r\n          document.write('; top:'+mtop+'; text-align:center;\">');\r\n          document.write('");
      out.write("<img  src='+this.panels[i].img[j]+' class=imgnob ');\r\n          document.write('onmouseOver=\"'+this.panels[i].v+'.mOver('+j);\r\n          document.write(');\">");
      out.write("<BR>'+this.panels[i].lbl[j]+'");
      out.write("</DIV>');\r\n        }\r\n        else {\r\n          document.write('");
      out.write("<DIV id='+this.name+'_panel'+i+'_b'+j+' class=imgB ');\r\n          document.write('Style=\"position:absolute; left:0; width:'+this.width);\r\n          document.write('; top:'+mtop+'; text-align:center;\">');\r\n          document.write('");
      out.write("<img  src='+this.panels[i].img[j]+' class=imgnob ');\r\n          document.write('onmouseOver=\"this.className=\\'imgbout\\';\" ');\r\n          document.write('onmouseDown=\"this.className=\\'imgbin\\';\" ');\r\n          document.write('onmouseUp=\\'this.className=\"imgbout\";');\r\n          document.write(this.panels[i].act[j]+';\\' ');\r\n          document.write('onmouseOut=\"this.className=\\'imgnob\\';\">");
      out.write("<BR>');\r\n          document.write(this.panels[i].lbl[j]+'");
      out.write("</DIV>');\r\n        }\r\n        mtop=mtop+this.buttonspace;\r\n      }\r\n\r\n      document.write('");
      out.write("</DIV>');\r\n\r\n      //one layer for the panels caption if not op5!\r\n      if (!bt.op5) {\r\n        document.write('");
      out.write("<DIV id='+this.name+'_panel'+i+'_c class=button ');\r\n        document.write('onClick=\"javascript:'+this.v+'.showPanel('+i);\r\n        document.write(');\" style=\"position:absolute; left:0; top:0; width:');\r\n        document.write((this.width-c)+'; height:'+(28-c)+';\">");
      out.write("<A href=\"#\" ');\r\n        document.write('onClick=\"'+this.v+'.showPanel('+i+');this.blur();');\r\n        document.write('return false;\" class=noLine>");
      out.write("<FONT weight=bold color=black ');\r\n        document.write('class=noLine\">'+this.panels[i].caption);\r\n        document.write('");
      out.write("</FONT>");
      out.write("</A>");
      out.write("</DIV>')\r\n      }\r\n      //two layers for scroll-up -down buttons\r\n      document.write('");
      out.write("<DIV id='+this.name+'_panel'+i);\r\n      document.write('_m1 style=\"position:absolute; top:40; left:');\r\n      document.write((this.width-20)+';\">");
      out.write("<A href=\"#\" onClick=\"');\r\n      document.write(this.panels[i].v+'.down(16);this.blur();return false;\" ');\r\n      document.write('onmouseOver=\"'+this.panels[i].v+'.clear();\">');\r\n      document.write('");
      out.write("<img width=16 height=16 src=/sfaimages/arrowup.gif border=0>');\r\n      document.write('");
      out.write("</A>");
      out.write("</DIV>');\r\n      document.write('");
      out.write("<DIV id='+this.name+'_panel'+i);\r\n      document.write('_m2 style=\"position:absolute;  top:');\r\n      document.write((this.height-(this.panels.length)*28)+'; left:');\r\n      document.write((this.width-20)+';\">");
      out.write("<A href=\"#\" onClick=\"');\r\n      document.write(this.panels[i].v+'.up(16);this.blur();return false\" ');\r\n      document.write('onmouseOver=\"'+this.panels[i].v+'.clear();\">');\r\n      document.write('");
      out.write("<img width=16 height=16 src=/sfaimages/arrowdown.gif border=0>');\r\n      document.write('");
      out.write("</A>");
      out.write("</DIV>');\r\n\r\n\r\n      document.write('");
      out.write("</DIV>')\r\n\r\n    }\r\n    //Opera bug (Clip!)\r\n    //op5 doesn't support layer clipping! so use top layers for panel caption\r\n    //and two top layers with background-color like page color to hide\r\n    //panel content outside of the outlookbar.\r\n    //op5 unterstützt kein Clip bei Layers! darum erzeugen wir drei top level\r\n    //layers für die Panel Überschrift und zwei top Layers mit der gleichen\r\n    //Hintergrundfarbe wie die HTML Seite um den Panel Inhalt außerhalb des\r\n    //Outlook Bars zu verdecken!\r\n    if (bt.op5) {\r\n      //one layers for panel captions if op5\r\n      for (i=0;i");
      out.write("<this.panels.length;i++) {\r\n        document.write('");
      out.write("<DIV id='+this.name+'_panel'+i);\r\n        document.write('_c class=button onmouseOver=\"'+this.panels[i].v);\r\n        document.write('.clear();\" onClick=\"'+this.v+'.showPanel('+i);\r\n        document.write(');\" style=\"position:absolute; left:0; top:0; width:');\r\n        document.write((this.width-c)+'; height:'+(28-c)+';\">');\r\n        document.write('");
      out.write("<A href=\"#\" ');\r\n        document.write('onClick=\"'+this.v+'.showPanel('+i+');this.blur();');\r\n        document.write('return false;\" class=noLine>");
      out.write("<FONT weight=bold color=black ');\r\n        document.write('class=noLine\">'+this.panels[i].caption);\r\n        document.write('");
      out.write("</FONT>");
      out.write("</A>");
      out.write("</DIV>')\r\n      }\r\n      //two layers to hide 'nonvisible' part of panel\r\n      //(op5 doesn't support clipping!)\r\n      //document.write('");
      out.write("<DIV style=\"position:absolute; left:0; top:');\r\n      //document.write(this.height+'; height:300; width:'+this.width);\r\n      //document.write('; background-color:'+this.pagecolor+';\">");
      out.write("</DIV>');\r\n      //document.write('");
      out.write("<DIV style=\"position:absolute; left:0; top:-300; ');\r\n      //document.write('height:300; width:'+this.width+'; background-color:');\r\n      //document.write(this.pagecolor+';\">");
      out.write("</DIV>');\r\n    }\r\n    document.write('");
      out.write("</DIV>');\r\n\r\n  }\r\n  for (i=0;i");
      out.write("<this.panels.length;i++) {\r\n    this.panels[i].obj=getObj(this.name+'_panel'+i);\r\n    if (!bt.ns4) {\r\n      this.panels[i].objc=getObj(this.name+'_panel'+i+'_c');\r\n      this.panels[i].objf=getObj(this.name+'_panel'+i+'_f');\r\n      this.panels[i].objm1=getObj(this.name+'_panel'+i+'_m1');\r\n      this.panels[i].objm2=getObj(this.name+'_panel'+i+'_m2');\r\n    }\r\n    this.panels[i].testScroll();\r\n  }\r\n\r\n// SFOWLER - 03/04/02 this causes the session id to be corrupted after it times out.\r\n//  //activate last panel\r\n//  //op5 dosen't support cookies!\r\n//  //so get actual panel from url paramter\r\n//  if (bt.op5) {\r\n//    if (document.location.search=='')  {\r\n//      this.showPanel(0);\r\n//    }\r\n//    else\r\n//      this.showPanel(document.location.search.substr(1,1));\r\n//  }\r\n//  else {\r\n//    //actual panel is saved in a cookie\r\n//    if (document.cookie)\r\n//      this.showPanel(document.cookie);\r\n//    else\r\n//      this.showPanel(0);\r\n//  }\r\n//\r\n}\r\n\r\n\r\n// ---------------------------------------------------------------------------\r\n");
      out.write("// outlookbar function for ns4\r\n// ---------------------------------------------------------------------------\r\n\r\nfunction b_showPanel_ns4(nr) {\r\nvar i\r\nvar l\r\n//  document.cookie=nr;\r\n  l = this.panels.length;\r\n  for (i=0;i");
      out.write("<l;i++) {\r\n    if (i>nr) {\r\n      this.panels[i].obj.top=this.height-((l-i)*28)-1;\r\n    }\r\n    else {\r\n      this.panels[i].obj.top=i*28;\r\n    }\r\n  }\r\n}\r\n\r\n// ---------------------------------------------------------------------------\r\n// outlookbar function for ie4, ie5, ns5, op5\r\n// ---------------------------------------------------------------------------\r\n\r\nfunction b_showPanel(nr) {\r\nvar i\r\nvar l\r\nvar o\r\n  //document.cookie=nr;\r\n  this.aktPanel=nr;\r\n  l = this.panels.length;\r\n  for (i=0;i");
      out.write("<l;i++) {\r\n    if (i>nr) {\r\n      this.panels[i].obj.style.top=this.height-((l-i)*28);\r\n      //Opera doesn't support clip:rect()!\r\n      //so hide non visible panels\r\n      //and move panel caption\r\n      if (bt.op5) {\r\n        this.panels[i].objf.style.visibility='hidden';\r\n        this.panels[i].objc.style.top=this.height-((l-i)*28);\r\n      }\r\n    }\r\n    else {\r\n      this.panels[i].obj.style.top=i*28;\r\n      //Opera doesn't support clip:rect()!\r\n      //so show visible panel\r\n      //and move panel caption\r\n      if (bt.op5) {\r\n        this.panels[i].objf.style.visibility='visible';\r\n        this.panels[i].objc.style.top=i*28;\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\n//resize the Outlook Like Bar\r\n//IE4/5 & NS6 -> resize all layers (width & height)\r\n//op5         -> resize only height - reload on width change\r\n//ns4         -> reload on any change!\r\n//\r\n//if you change the width of a layer (style=\"text-align:center;\") then\r\n//the content will not be moved!\r\nfunction b_resize(x,y,width,height) {\r\nvar o\r\nvar i\r\nvar j\r\nvar h\r\n");
      out.write("var c=(bt.ns5)?6:0;\r\n\r\n   if (bt.ns4)\r\n     location.reload();\r\n   else {\r\n     if (bt.op5 && (width!=this.width))\r\n       if (location.href.indexOf('?')!=-1)\r\n         location.href=location.href.replace(/\\?./,\"?\"+this.aktPanel)\r\n       else\r\n         location.href= location.href+'?'+this.aktPanel;\r\n     else {\r\n       this.xpos=x;\r\n       this.yPos=y;\r\n       this.width=width\r\n       this.height=height\r\n\r\n       o=getObj(this.name);\r\n       o.style.left=x;\r\n       o.style.top=y;\r\n       o.style.width=width;\r\n       o.style.height=height;\r\n       o.style.clip='rect(0px '+this.width+'px '+this.height+'px 0px)';\r\n\r\n       h=this.height-((this.panels.length-1)*28)\r\n\r\n       for (i=0; i");
      out.write("<this.panels.length; i++) {\r\n\r\n         o=getObj(this.name+'_panel'+i+'_c');\r\n         o.style.width=(this.width-c);\r\n\r\n         if (!bt.op5)\r\n           for (j=0;j");
      out.write("<this.panels[i].img.length;j++) {\r\n             o=getObj(this.name+'_panel'+i+'_b'+j);\r\n             o.style.width=this.width;\r\n           }\r\n\r\n         this.panels[i].objm1.style.left=(this.width-20);\r\n         this.panels[i].objm2.style.top=(this.height-(this.panels.length)*28);\r\n         this.panels[i].objm2.style.left=(this.width-20);\r\n         this.panels[i].objf.style.width=this.width;\r\n         this.panels[i].obj.style.width=this.width\r\n         this.panels[i].obj.style.height=h\r\n         this.panels[i].obj.style.pixelHeight=h\r\n         this.panels[i].obj.style.clip='rect(0px '+this.width+'px '+h+'px 0px)';\r\n\r\n         this.panels[i].testScroll();\r\n       }\r\n     }\r\n     this.showPanel(this.aktPanel);\r\n   }\r\n}\r\n\r\n\r\n\r\n// ---------------------------------------------------------------------------\r\n// OutlookBar object for ie4, ie5, ns5, op5\r\n// ---------------------------------------------------------------------------\r\n\r\nfunction createOutlookBar(name,x,y,width,height,bgcolor,pagecolor) {\r\n  this.aktPanel=0;                        // last open panel\r\n");
      out.write("  this.name=name                          // OutlookBar name\r\n  this.xpos=x;                            // bar x-pos\r\n  this.ypos=y;                            // bar y-pos\r\n  this.width=width;                       // bar width\r\n  this.height=height;                     // bar height\r\n  this.bgcolor=bgcolor;                   // bar background color\r\n  this.pagecolor=pagecolor;               // page bgcolor (op5!)\r\n  this.buttonspace=74;                     // distance of panel buttons\r\n  this.panels=new Array()                 // OutlookBar panels\r\n  this.addPanel=b_addPanel;               // add new panel to bar\r\n  this.writeStyle=b_writeStyle;\r\n  this.draw=b_draw;                       // write HTML code of bar\r\n  if (bt.ns4)\r\n    this.showPanel=b_showPanel_ns4;       // make a panel visible (ns4)\r\n  else\r\n    this.showPanel=b_showPanel;           // make a panel visible (!=ns4)\r\n\r\n  this.resize=b_resize;                   // resize Outlook Like Bar\r\n\r\n  this.v = name + \"var\";                  // global var of 'this'\r\n");
      out.write("  eval(this.v + \"=this\");\r\n\r\n  return this\r\n}\r\n");
      out.write("</SCRIPT>\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\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\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\r\n");
      out.write("\r\n\r\n");
      org.ofbiz.security.Security security = null;
      synchronized (application) {
        security = (org.ofbiz.security.Security) pageContext.getAttribute("security", PageContext.APPLICATION_SCOPE);
        if (security == null){
          throw new java.lang.InstantiationException("bean security not found within scope");
        }
      }
      out.write("\r\n");
      org.ofbiz.entity.GenericDelegator delegator = null;
      synchronized (application) {
        delegator = (org.ofbiz.entity.GenericDelegator) pageContext.getAttribute("delegator", PageContext.APPLICATION_SCOPE);
        if (delegator == null){
          throw new java.lang.InstantiationException("bean delegator not found within scope");
        }
      }
      out.write("\r\n");
      com.sourcetap.sfa.event.GenericWebEventProcessor webEventProcessor = null;
      synchronized (application) {
        webEventProcessor = (com.sourcetap.sfa.event.GenericWebEventProcessor) pageContext.getAttribute("webEventProcessor", PageContext.APPLICATION_SCOPE);
        if (webEventProcessor == null){
          try {
            webEventProcessor = (com.sourcetap.sfa.event.GenericWebEventProcessor) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.sourcetap.sfa.event.GenericWebEventProcessor");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "com.sourcetap.sfa.event.GenericWebEventProcessor", exc);
          }
          pageContext.setAttribute("webEventProcessor", webEventProcessor, PageContext.APPLICATION_SCOPE);
        }
      }
      out.write("\r\n");
      com.sourcetap.sfa.event.GenericEventProcessor eventProcessor = null;
      synchronized (application) {
        eventProcessor = (com.sourcetap.sfa.event.GenericEventProcessor) pageContext.getAttribute("eventProcessor", PageContext.APPLICATION_SCOPE);
        if (eventProcessor == null){
          try {
            eventProcessor = (com.sourcetap.sfa.event.GenericEventProcessor) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.sourcetap.sfa.event.GenericEventProcessor");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "com.sourcetap.sfa.event.GenericEventProcessor", exc);
          }
          pageContext.setAttribute("eventProcessor", eventProcessor, PageContext.APPLICATION_SCOPE);
        }
      }
      out.write("\r\n");
      com.sourcetap.sfa.ui.UICache uiCache = null;
      synchronized (application) {
        uiCache = (com.sourcetap.sfa.ui.UICache) pageContext.getAttribute("uiCache", PageContext.APPLICATION_SCOPE);
        if (uiCache == null){
          try {
            uiCache = (com.sourcetap.sfa.ui.UICache) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "com.sourcetap.sfa.ui.UICache");
          } catch (ClassNo

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -