/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: ......
 * Generated at: 2020-08-02 14:15:30 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 jun.db.core.*;
import java.net.*;
import wiseoa.mail.jstl.*;
import wiseoa.util.*;
import java.util.*;
import java.net.*;
import wiseoa.*;
import wiseoa.util.*;
import wiseoa.RBAC.*;
import wiseoa.mail.jstl.*;

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

  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");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("\r\n");
      out.write("\r\n");
  
	
	//éå¸¸æ¯å¯¹äºé£æ­¤éè¦æç®¡çåæéçé¡µé¢ç¨åå«æ¬é¡µé¢çæ¹å¼æ¥è¿è¡æéæ§å¶
	// å¦æå½åç¨æ·æç®¡çåæéï¼é£ä¹ç´æ¥è¿å
	// å¦æå½åé¡µé¢æ²¡æå å¥å°å·¥ä½å°ä¸­ï¼è¡¨ç¤ºæ²¡æè¿è¡é¢å¤ææï¼é£ä¹æç¤ºæ æé
	//å¦æå å¥å°äºå·¥ä½å°ï¼å¹¶ä¸åéå½åç¨æ·æ¥ææéï¼é£ä¹ok 
	User user=User.getUserFromRequest( request);
	 
	 if ( user.getRole()!=1) //å¦æä¸æ¯ç³»ç»ç®¡çæéçäººï¼
	 {
		 	String url =WiseFilter.getShortURL( request); 
			int unit = user.getUnit();
		 
			RBAC_cache cache = RBAC_cache.getInstance(null, unit);
 			if (!cache.needVerify(url)) 
 			{
 				String s= User.TIP_NORIGHT;
	 			response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
	 			return;
			} 

            //å¦æä¹æ²¡æè¿è¡å·¥ä½å°ææ
  	 		if ( ! WiseFilter.urlOnCommision( user, url ,0) ) 
			{ 
 	    		String s= User.TIP_NORIGHT;
	 			response.sendRedirect( "SystemTip.jsp?info="+  URLEncoder.encode(s,"UTF-8") );
	 			return;
			}
	 
	 }


      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write('\r');
      out.write('\n');
  
	  
         String t=FF.GetStringFromRequest(request,"name",""); 
	     t= Escape.unescape(t);
	 	 FF.pageContextSetAttribute(pageContext , "flowname",t);    

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<HTML>\r\n");
      out.write("<head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\r\n");
      out.write("<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(" <LINK rel=\"stylesheet\" type=\"text/css\" href=\"css/normal.css\">\r\n");
      out.write("<TITLE></TITLE>\r\n");
      out.write("  <LINK rel=\"stylesheet\" type=\"text/css\" href=\"zbutton/zbutton.css\">\r\n");
      out.write(" <SCRIPT type=\"text/javascript\" src=\"zbutton/zbutton.js\"></SCRIPT>\r\n");
      out.write("<script>\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("window.onload =OnLoad\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function OnLoad()\r\n");
      out.write("{\r\n");
      out.write("           window.document.body.scroll=\"no\";\r\n");
      out.write("        \r\n");
      out.write(" \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("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("body {\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("}\r\n");
      out.write("-->\r\n");
      out.write("</style></HEAD>\r\n");
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("function bs_isGecko() \r\n");
      out.write("{\r\n");
      out.write("  //rather poor implementation.\r\n");
      out.write("\t  if (navigator.appName == \"Microsoft Internet Explorer\") return false;\r\n");
      out.write("\t  return (navigator.userAgent.match(/gecko/i));\r\n");
      out.write("\t}\r\n");
      out.write("\tif (bs_isGecko()) {\r\n");
      out.write("\t  document.writeln(\"<link rel='stylesheet' href='toolbar/win2k_ie.css'>\");\r\n");
      out.write("\t} else {\r\n");
      out.write("\t  document.writeln(\"<link rel='stylesheet' href='toolbar/win2k_ie.css'>\");\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"toolbar/Bs_ButtonBar.class.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"toolbar/Bs_Button.class.js\"></script>\r\n");
      out.write("\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("function btnClicked(btnObj) {\r\n");
      out.write("\talert('Clicked the button: ' + btnObj.title);\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function getApplet()\r\n");
      out.write("{\r\n");
      out.write("\treturn parent.frames('mainFrame').document.getElementById('flow');\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function selectToolClicked(btnObj) \r\n");
      out.write("{\r\n");
      out.write("\t var applet=getApplet();\r\n");
      out.write("\tapplet.setActionSelect();\r\n");
      out.write("\t b1.setStatus(2);\r\n");
      out.write("\t b2.setStatus(1);\r\n");
      out.write("\t b3.setStatus(1);\r\n");
      out.write("\t \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function nodeToolClicked(btnObj) \r\n");
      out.write("{\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tapplet.setActionCreateNode();\r\n");
      out.write("\t\r\n");
      out.write("\t b1.setStatus(1);\r\n");
      out.write("\t b2.setStatus(2);\r\n");
      out.write("\t b3.setStatus(1);\r\n");
      out.write("\t \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function edgeToolClicked(btnObj) \r\n");
      out.write("{\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tapplet.setActionCreateEdge();\r\n");
      out.write("\t\t\r\n");
      out.write("\t b1.setStatus(1);\r\n");
      out.write("\t b2.setStatus(1);\r\n");
      out.write("\t b3.setStatus(2);\r\n");
      out.write("\t \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function deleteSelected()\r\n");
      out.write("{\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tapplet.deleteSelected();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function moveCenter()\r\n");
      out.write("{\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tapplet.moveToCenter();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function layoutCGD()\r\n");
      out.write("{\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tapplet.autoLayoutCGD();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function layoutTD()\r\n");
      out.write("{\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tapplet.autoLayoutTreeDown();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function layoutTR()\r\n");
      out.write("{\r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tapplet.autoLayoutTreeRight();\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function Save()\r\n");
      out.write("{ \r\n");
      out.write("\tvar applet=getApplet();\r\n");
      out.write("\tapplet.Save();\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function Property()\r\n");
      out.write("{\r\n");
      out.write("    var applet=getApplet();\r\n");
      out.write("\tapplet.showProperty();\r\n");
      out.write(" \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("var  bar = new Bs_ButtonBar();\r\n");
      out.write(" var b1,b2,b3,b4,b5,b6,b7,b8 ;\r\n");
      out.write(" \r\n");
      out.write("function go() {\r\n");
      out.write(" \r\n");
      out.write("  bar.useHelpBar = false;\r\n");
      out.write("  \r\n");
      out.write("  b1 = new Bs_Button();\r\n");
      out.write("  b1.title = '切换到选择操作';\r\n");
      out.write("  b1.caption='选择';\r\n");
      out.write("  b1.imgPath = 'image/';\r\n");
      out.write("  b1.imgName = 'select';\r\n");
      out.write("  b1.attachEvent(selectToolClicked);\r\n");
      out.write("  bar.addButton(b1, '');\r\n");
      out.write("  \r\n");
      out.write("  b2 = new Bs_Button();\r\n");
      out.write("  b2.title = '增加一个步骤( Step)';\r\n");
      out.write("  b2.id='addnode';\r\n");
      out.write("  b2.caption='步骤';\r\n");
      out.write("  b2.imgPath = 'image/';\r\n");
      out.write("  b2.imgName = 'addnode';\r\n");
      out.write("  b2.attachEvent(nodeToolClicked);\r\n");
      out.write("  bar.addButton(b2, '');\r\n");
      out.write("  \r\n");
      out.write("  b3 = new Bs_Button();\r\n");
      out.write("  b3.title = '增加一个动作( Action )';\r\n");
      out.write("  b3.caption='动作';\r\n");
      out.write("  b3.imgPath = 'image/';\r\n");
      out.write("  b3.imgName = 'addedge';\r\n");
      out.write("  b3.attachEvent(edgeToolClicked);\r\n");
      out.write("  bar.addButton(b3, '');\r\n");
      out.write("  \r\n");
      out.write("  bar.newGroup();\r\n");
      out.write("   \r\n");
      out.write(" \r\n");
      out.write(" \r\n");
      out.write("  var b41 = new Bs_Button();\r\n");
      out.write("  b41.title = '删除选中的对象';\r\n");
      out.write("  b41.caption='删除';\r\n");
      out.write("  b41.imgPath = 'image/';\r\n");
      out.write("  b41.imgName = 'erase';\r\n");
      out.write("  b41.attachEvent(deleteSelected);\r\n");
      out.write("  bar.addButton(b41, '');\r\n");
      out.write("  \r\n");
      out.write("  \r\n");
      out.write("  bar.newGroup();\r\n");
      out.write("  \r\n");
      out.write("  b4 = new Bs_Button();\r\n");
      out.write("  b4.title = '居中显示';\r\n");
      out.write("  b4.caption='居中';\r\n");
      out.write("  b4.imgPath = 'image/';\r\n");
      out.write("  b4.imgName = 'movecenter';\r\n");
      out.write("  b4.attachEvent(moveCenter);\r\n");
      out.write("  bar.addButton(b4, '');\r\n");
      out.write("  \r\n");
      out.write("  bar.newGroup();\r\n");
      out.write("  \r\n");
      out.write("  b5 = new Bs_Button();\r\n");
      out.write("  b5.title = '无闭环流程自动布局';\r\n");
      out.write("  b5.caption='无闭环布局';\r\n");
      out.write("  b5.imgPath = 'image/';\r\n");
      out.write("  b5.imgName = 'cgd';\r\n");
      out.write("  b5.attachEvent(layoutCGD);\r\n");
      out.write("  bar.addButton(b5, '.');\r\n");
      out.write("  \r\n");
      out.write("  b6 = new Bs_Button();\r\n");
      out.write("  b6.title = '纵向树状自动布局(允许含有闭环).';\r\n");
      out.write("  b6.caption='树状布局'\r\n");
      out.write("  b6.imgPath = 'image/';\r\n");
      out.write("  b6.imgName = 'treedown';\r\n");
      out.write("  b6.attachEvent(layoutTD);\r\n");
      out.write("  bar.addButton(b6, '');\r\n");
      out.write("  \r\n");
      out.write("  \r\n");
      out.write("  \r\n");
      out.write("  b7 = new Bs_Button();\r\n");
      out.write("  b7.caption = '横向树状布局';\r\n");
      out.write("  b7.title='横向树状自动布局(允许含有闭环).';\r\n");
      out.write("  b7.imgPath = 'image/';\r\n");
      out.write("  b7.imgName = 'treeright';\r\n");
      out.write("  b7.attachEvent(layoutTR);\r\n");
      out.write(" // bar.addButton(b7, '');\r\n");
      out.write("  \r\n");
      out.write("  bar.newGroup();\r\n");
      out.write("  \r\n");
      out.write("  b8 = new Bs_Button();\r\n");
      out.write("  b8.title = '属性设置';\r\n");
      out.write("  b8.caption='属性设置';\r\n");
      out.write("  b8.imgPath = 'image/';\r\n");
      out.write("  b8.imgName = 'qz';\r\n");
      out.write("  b8.attachEvent( Property);\r\n");
      out.write("  bar.addButton(b8, '');\r\n");
      out.write("  bar.newGroup();\r\n");
      out.write("  \r\n");
      out.write("   \r\n");
      out.write("  \r\n");
      out.write("  bar.drawInto('buttonBar');\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<BODY  onselectstart=event.returnValue=false ondragstart=window.event.returnValue=false > \r\n");
      out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"2%\" height=24 bgcolor=\"#efefef\" >\r\n");
      out.write("\t<img src=\"image/toolbargrip.gif\"   align=\"absmiddle\"></td>\r\n");
      out.write("    <td width=\"82%\" nowrap valign=\"middle\"    bgcolor=\"#efefef\" >\r\n");
      out.write("\t<div id=\"buttonBar\" style=\"padding:1px; \"></div></td>\r\n");
      out.write("\t<td width=\"16%\" align=\"left\" valign=\"middle\" nowrap bgcolor=\"#Efefef\">\r\n");
      out.write("\t ");
      if (_jspx_meth_c_005fout_005f0(_jspx_page_context))
        return;
      out.write("   </td><td bgcolor=\"#Efefef\">\r\n");
      out.write("\t  <img src='image/click.gif' align=\"absmiddle\"></td>\r\n");
      out.write("\t  <td bgcolor=\"#Efefef\">\r\n");
      out.write("\t  <script language=\"javascript\">\r\n");
      out.write("\tfunction cb_commit_onclick()\r\n");
      out.write("\t{\r\n");
      out.write("\t   Save();\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("    var cb =new zbutton('cb_commit','保存流程定义','image/disk2.gif');\r\n");
      out.write("\t</script>\r\n");
      out.write("      \r\n");
      out.write("    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write(" <tr>\r\n");
      out.write("    <td height=2 colspan=\"5\" background=\"image/bk.gif\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<script languatge='javascript'>\r\n");
      out.write("  go();\r\n");
      out.write("</script>\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);
    }
  }

  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);
    // /flow_config_toolbar.jsp(273,2) 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("${flowname}", 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;
  }
}
