"display=none" cellspacing="0" cellpadding="0">
<?
listchildtree($childdepartment,$basenum);//递归调用函数本身来显示其他孩子节点
}//end if?>
</table>
<?}//end while
}//end function?>
<html>
<head>
<title>无限级菜单测试</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href=http://www.dvbbs.net/tech/php/"../text.css" type="text/css">
<script language="javascript">
function expands(expid,picid) //显示图片张合的js
{ // alert("this.document.all["+expid+"].style.display");
if(this.document.all[expid].style.display=="none")
{ this.document.all[expid].style.display="block";
this.document.all[picid].src=../../"leaf.gif";
}
else
{
this.document.all[expid].style.display="none";
this.document.all[picid].src=../../"parent.gif";
}
}
</script>
</head>
<body bgcolor="#ffffff" text="#000000">
<?
require("do_mysql.php");
$tree = new db_sql;
$tree->connect();//连接数据库,可根据需要换成自己的代码
$sql="select departmentid,departmentname from test where length(departmentid)=3";//提出最上层节点(祖宗节点),根据需要自己修改
$result=$tree->query_first($sql);
?>
<div align="center
<?
listchildtree($childdepartment,$basenum);//递归调用函数本身来显示其他孩子节点
}//end if?>
</table>
<?}//end while
}//end function?>
<html>
<head>
<title>无限级菜单测试</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href=http://www.dvbbs.net/tech/php/"../text.css" type="text/css">
<script language="javascript">
function expands(expid,picid) //显示图片张合的js
{ // alert("this.document.all["+expid+"].style.display");
if(this.document.all[expid].style.display=="none")
{ this.document.all[expid].style.display="block";
this.document.all[picid].src=../../"leaf.gif";
}
else
{
this.document.all[expid].style.display="none";
this.document.all[picid].src=../../"parent.gif";
}
}
</script>
</head>
<body bgcolor="#ffffff" text="#000000">
<?
require("do_mysql.php");
$tree = new db_sql;
$tree->connect();//连接数据库,可根据需要换成自己的代码
$sql="select departmentid,departmentname from test where length(departmentid)=3";//提出最上层节点(祖宗节点),根据需要自己修改
$result=$tree->query_first($sql);
?>
<div align="center
| 对此文章发表了评论 |
