(一)、当前栏目ID或专题ID:$GLOBALS[navclassid]
通过这个变量可以输出这个栏目id的所有数据(如:select * from phome_enewsclass where classid='$GLOBALS[navclassid]')
(二)、使用范例:调用当前栏目下的栏目 ...
在userfun.php加入代以下自定义函数代码:
//获取栏目信息
function class_field($classid,$field){
global $empire,$dbtbpre;
$classid=(int)$classid;
$arr=array('classname','bname','classimg','classpagekey', ...