query(" SELECT cid,top FROM ".$db->prefix('u_type_category')." ORDER BY cid DESC ", 5, 0); $ret = array(); while(list($cid, $top) = $db->fetchRow($result)) { $ret['parent'][] = array( 'id' => $cid, 'title' => _U_TYPE_CATEGORY.'»»'.$myts->makeTboxData4Show($top), 'url' => 'index.php?mode=viewcat&cat='.$cid ); } $result = $db->query(" SELECT nid,a_title,hn FROM ".$db->prefix('u_typebbs')." as b WHERE sakujyo='f' ORDER BY v_day DESC ", 5, 0); if ($result) { while(list($nid, $title, $hn) = $db->fetchRow($result)) { $ret['parent'][] = array( 'id' => $nid, 'title' => _U_TYPE_NEWPOST.'»»'.$myts->makeTboxData4Show($title), 'url' => 'index.php?mode=single&article='.$nid ); } } return $ret; } ?>