帝国cms的网站导航,有两个栏目中想加入nofollow该怎么书写标签?
现用代码:
<li id="nvabar-item-index" class="<?=$homestyle?>"><a href="[!--news.url--]">首页</a></li>
<?php
$sql=$empire->query("select classid,classname,islast from {$dbtbpre}enewsclass where bclassid=0 and showclass=0 order by myorder,myorder asc");
while($s=$empire->fetch($sql)){
$tclass="";
$fr=explode('|',$class_r[$GLOBALS[navclassid]][featherclass]);
$topbclassid=$fr[1]?$fr[1]:$GLOBALS[navclassid];
if(($topbclassid==$s[classid])&&($ishome==0)){
$tclass='active';
}
$classurl=sys_ReturnBqClassname($s,9);
echo '<li id="navbar-category-'.$s[classid].'" class="submenu li-cate-'.$s[classid].' '.$tclass.'"><a href="'.$classurl.'">'.$s[classname].'</a>';
if(!$s[islast]){
$sql2=$empire->query("select classid,classname from {$dbtbpre}enewsclass where bclassid=$s[classid] and showclass=0 order by myorder,myorder asc");
$str="";
while($s2=$empire->fetch($sql2)){
$classurl2=sys_ReturnBqClassname($s2,9);
$str.='<li id="navbar-category-'.$s[classid].'" class="li-cate-'.$s[classid].'"><a href="'.$classurl2.'">'.$s2[classname].'</a></li>';
}
echo '<ul class="sub-menu">'.$str.'</ul>';
}
echo '</li>';
}
?>
</ul>