', 20); $block['custom_htmlhead'][] = ' '; function buildNavi($start=0, $counter=0) { $t = array(); $struct = getStructureChildData($start); if($counter == 0) { $last = count($struct) - 1; } else { $last = 0; } $x = 0; foreach($struct as $value) { //if( isset($GLOBALS['LEVEL_KEY'][ $value['acat_id'] ]) ) { /* $p1 = ' path'; } else { $s = ''; $p1 = ''; } if($GLOBALS['content']['cat_id'] == $value['acat_id']) { $a1 = ' active'; $a3 = 'active'; } else { $a1 = $p1; $a3 = ''; } */ $s = buildNavi($value['acat_id'], $counter+1); if($s) { $g = ''; $g .= $s; $g .= LF . str_repeat(' ', $counter); $class = $counter ? ' class="fly"' : ' class="drop"'; $close_li = str_repeat(' ', $counter+1); } else { $g = ''; $class = ''; $close_li = ''; } if( $last && $last == $x ) { $enclose = ' class="enclose"'; } elseif( $x || ($counter == 0 && $x == 0) ) { $enclose = ''; } else { $enclose = ' class="enclose"'; } $l = str_repeat(' ', $counter+1) . ''; $l .= get_level_ahref($value['acat_id'], $enclose) . html_specialchars($value['acat_name']); $l .= $g; $l .= $close_li . ''; $t[] = $l; $x++; } if($counter) { $A = LF . str_repeat(' ', $counter) . ''; $B = LF . str_repeat(' ', $counter) . ''; } else { $A = ''; $B = ''; } $t = implode(LF, $t); if($t) { $t = $A . LF . str_repeat(' ', $counter) . '' . LF . $t . LF . str_repeat(' ', $counter) . ''. $B ; } return $t; } ?>