01 function GetTopTypeName($typeid)02 {03 global $dsql;04 $typeRow = $dsql->GetOne("SELECT typename,topid FROM dede_arctype WHERE id= $typeid");05 if ($typeRow['topid'] == '0')06 {07 return $typeRow['typename'];08 }09 else10 {11 $typeRow1 = $dsql->GetOne("SELECT typename FROM dede_arctype WHERE id= $typeRow[topid]");12 return $typeRow1['typename'];13 }14 }
新闻热点
疑难解答