资 源 简 介
array("id"=>"1","parentid"=>0,"name"=>"一级栏目一"),
* 2 => array("id"=>"2","parentid"=>0,"name"=>"一级栏目二"),
* )
*/
function tree($array=array()) {
if(is_array($array)) {
$arr = array();
foreach($array as $temp) {
$arr[$temp["id"]] = $temp;
}
}
$this->arr = $arr;
$this->ret = "";
return is_array($arr);
}
//获取所有直系上级目录列表
function get_list($myid) {
if($this->arr[$myid]["parentid"]) {
$