<?
function getclassurl($classids,$zi=0){
global $class_r,$empire,$dbtbpre;
$classr=explode(',',$classids);
if(!$classr)return true;
if($ecms_bq_sql){
while($bqr=$empire->fetch($ecms_bq_sql)){
$bqsr=sys_ReturnEcmsLoopStext($bqr);
echo $bqsr[titleurl].PHP_EOL;
}
}continue;
}
foreach($class_r as $lm){
if($lm[bclassid]==$myclassid){
getclassurl($lm[classid],$zi);
}
}
}
}
getclassurl('1,10',1);
?>
获取栏目1和栏目下的所有终极栏目id
list(,$myclass)=sys_ReturnMoreClass('1,10',1);
结果为:
|