$sql="SELECT * FROM dede_arctype where topid=0 and ishidden = 0 order by sortrank asc,id asc";
$dsql->SetQuery($sql);
$dsql->Execute();
$topids= array();
while($arr = $dsql->GetArray())
{
    $typeurl = GetOneTypeUrlA($arr);     //获得栏目地址
}