<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="gbase.menu.*"%>
<%@ include file="/admin/checkLogin.jsp" %>
<head>
<meta http-equiv=Content-Type content="text/html; charset=GB2312">
<title>系统管理左边菜单</title>
</head>
<body>
<%  //调用MenuTree类，得到菜单数组;
    MenuTree theMenuTree=new MenuTree();
    String record[][]=null;
    String role_id="0003";
    record=theMenuTree.getRoleHaveMenuTree(role_id);
    for(int i=0;i<record.length;i++){%>
<!--第一层-->
<%if(record[i][3].length()>0 && record[i][0].length()==3){
%>
<input name="leftmenu<%%=record[i][0]>" type="checkbox" value="1"><%=record[i][1]%><br>
<%}%>
<%if(record[i][3].length()<=0 && record[i][0].length()==3){
%>
<img src="../images/next.gif" width="14" height="14"/><%=record[i][1]%><br>
<%}%>

<!--第二层-->
<%if(record[i][3].length()>0 && record[i][0].length()==6){
%>
&nbsp;&nbsp;<input name="leftmenu<%%=record[i][0]>" type="checkbox" value="1"><%=record[i][1]%><br>
<%}%>
<%if(record[i][3].length()<=0 && record[i][0].length()==6){
%>
&nbsp;&nbsp;<img src="../images/next.gif" width="14" height="14"/><%=record[i][1]%><br>
<%}%>


<!--第三层-->
<%if(record[i][3].length()>0 && record[i][0].length()==9){
%>
&nbsp;&nbsp;&nbsp;&nbsp;<input name="leftmenu<%%=record[i][0]>" type="checkbox" value="1"><%=record[i][1]%><br>
<%}%>
<%if(record[i][3].length()<=0 && record[i][0].length()==9){
%>
&nbsp;&nbsp;&nbsp;&nbsp;<img src="../images/next.gif" width="14" height="14"/><%=record[i][1]%><br>
<%}%>

<%}%>
</body>

</html>
