-
function GetTopTypename($id) { global $dsql; $row = $dsql->GetOne("SELECt typename,topid FROM dede_arctype WHERe id= $id"); if ($row['topid'] == '0') { return $row['typename']; } else { $row1 = $dsql->GetOne("SELECt typename FROM dede_arctype WHERe id= $row[topid]"); return $row1['typename']; } } function GetTopTypeEnName($id) { global $dsql; $row = $dsql->GetOne("SELECt typedir,topid FROM dede_arctype WHERe id= $id"); if ($row['topid'] == '0') { $en = $row['typedir']; } else { $row1 = $dsql->GetOne("SELECt typedir FROM dede_arctype WHERe id= $row[topid]"); $en = $row1['typedir']; } $l=split("/", $en); $en=array_pop($l); return strtolower($en); }
写到 includecommon.func.php 最后
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)