2011年11月15日星期二

帝国CMS100%简单实现导航高亮效果(方法二)

<body XXXXXXXXX>改为
<body id=”channle<?=user_GetTopBclassid($GLOBALS[navclassid])?>”>

然后把
//取得顶级栏目ID函数
function user_GetTopBclassid($classid){
global $class_r;
$fr=explode(‘|’,$class_r[$classid][featherclass]);
$topbclassid=$fr[1]?$fr[1]:$classid;//取得第一级栏目id
return $topbclassid;
}

加入到  e/class/userfun.php   中就可以了

=======注:这种方法动态页面都不能获取ID==========

openwrt 6300V2 USB无法显示的问题

lsusb and fdisk -l There's a method to turn USB power on which is probably not persistent. I hope this will help you. echo 0 > /sys/c...