<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="java.util.*" %>
<%@ page import="com.gx.webpage.engine.menupage.designdbengine.factory.*" %>
<%@ page import="com.gx.webpage.engine.menupage.designdbengine.valueobject.*" %>
<%@ page import="com.gx.webpage.framework.valueobject.*" %>
<%@ page import="com.gx.webpage.engine.menupage.designdbengine.api.*" %>
<%@ page import="com.gx.webpage.framework.util.inoutformat.DataBean" %>
<Html>
<Head>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="./../../../../webpage/common/css/common.css" rel="StyleSheet"  type="text/css" />
<script language="javascript" src="./../../../../webpage/common/engine/constant.js"></script>
<script language="JScript.Encode" src="./../../../../webpage/common/engine/common.js"></script>
<%
    String errStr = "";
    boolean isError = false;
    UserInfoCtxModel uicm = new UserInfoCtxModel();
    String parentMenuUuid = DataBean.getStr(request,"parentMenuUuid");
    try{
      uicm.setUserId(operID);
        uicm.setNeedAcl(true);
        uicm.setAclType(uicm.ACLTYPE_ROW);
        uicm.setRowCatPath("com.cc.menu");
        Collection colPerIds = new ArrayList();
        colPerIds.add("search");
        uicm.setRowColPerId(colPerIds);
        if(parentMenuUuid!=null && parentMenuUuid.trim().length()>0){
          EbiMenuMgr delegate = MenuFactory.getInstance().getEbiMenuMgr();
            Collection col2 = delegate.findSysMenusBySystemIdAndLevelAndParentUuid(
                                        SysMenuModel.SYSID_FRAMEWORK,SysMenuModel.MENULEVEL_TWO,parentMenuUuid,true,uicm);
if(col2==null || col2.size()==0){
%>
    您无访问本系统的权限，请与管理员联系
<%
            return;
            }
            Iterator it2=col2.iterator();
            int i = 1;
            out.write("<script language='javascript'>");
            while(it2.hasNext()){
                SysMenuModel sm2 = (SysMenuModel)it2.next();
                if(!sm2.getParentUuid().equals(parentMenuUuid)){
                    continue;
                }
                String name2 = sm2.getName();
                StringBuffer outBuffer = new StringBuffer();
                outBuffer.append("OutBarFolder"+i+"=new Array('"+name2+"'");
                Collection col3 =delegate.findChildSysMenus(sm2.getUuid(),false,true,uicm);
                Iterator it3 = col3.iterator();
                while(it3.hasNext()){
                    SysMenuModel sm3 = (SysMenuModel)it3.next();
                    outBuffer.append(",'"+sm3.getIcon()+"','"+sm3.getName()+"','"+sm3.getTargetPage()+"','"+sm3.getParentTarget()+"','"+sm3.getUuid()+"'");
                    }
                outBuffer.append(");");
                out.write(outBuffer.substring(0));
                i++;
                }
            out.write("</script>");
            }
        }catch(Exception err){
        errStr = DataBean.getErrStr(err);
            isError = true;
        }
%>
<script language="javascript">
    document.write("正在展开菜单...");
    OB_Top=0;
    OB_Left=0;
    OB_Margin=10;
    OB_Width=document.body.clientWidth;
    OB_Height=document.body.clientHeight;
    OB_SlideSpeed=30;
    OB_BackgroundColor="#abcadc";
    OB_ItemsSpacing=25;
    OB_BorderWidth=1;
    OB_BorderStyle="ridge";
    OB_BorderColor="#255DE0";
    OB_IconsWidth=32;
    OB_IconsHeight=32;
    OB_ButtonFontFamily="arial";
    OB_ButtonFontSize=9;
    OB_ButtonFontColor="#ffffff";
    OB_ButtonHeight=25;
    OB_ButtonWidth=document.body.clientWidth-2;
    OB_ButtonBgColor= "#0066cc";
    OB_LabelFontFamily="arial";
    OB_LabelFontSize=9;
    OB_LabelFontColor="black";
    OB_LabelMargin=3;
    OB_UpArrow="/portal/common/image/icon/arrowup.gif";
    OB_DownArrow="/portal/common/image/icon/arrowdown.gif";
    OB_ArrowWidth=15;
    OB_ArrowHeight=15;
    OB_ArrowSlideSpeed=10;
    OB_FolderItem=4;
    function MenuBody_OnResize()
    {
        if(OB_Height != document.body.clientHeight)
        {
            window.location.reload(false);
        }
    }
//-->
</script>
</HEAD>
<BODY class=Login SCROLL="no" onresize="MenuBody_OnResize();">
</BODY>
<%if(!isError){%>
<script language="javascript" src="./../../../../webpage/common/engine/constant.js"></script>
<%}%>
</HTML>
