//获取顶级栏目名
function GetTopTypenameById($id)
{
global $dsql;
$row = $dsql->GetOne("SELECT typename,topid FROM idea_arctype WHERE id= $id");
if ($row['topid'] == '0')
{
return $row['typename'];
} else {
$row1 = $dsql->GetOne("SELECT typename FROM idea_arctype WHERE id= $row[topid]");
return $row1['typename'];
}
}
关键词:dede,根据,任意,栏目,获取,顶级,名称,的,获取, 标签:
更多资讯请收藏关注
网站模板(www.1yc.cn)