집 >
기사 > 백엔드 개발 > php侧拉菜单 漂亮,可以向右或者向左展开,支持FF,IE_PHP
php侧拉菜单 漂亮,可以向右或者向左展开,支持FF,IE_PHP
WBOY원래의
2016-06-01 12:23:00939검색
IE8必须增加子菜单,隐藏 复制代码 代码如下:
mysql_select_db($database_lr, $lr); $query = mysql_query("SELECT * FROM bigclass order by sort"); while($row=mysql_fetch_array($query)) { $bigclassid=$row['bigclassid']; $bigclassname_leftmenu=$row['bigclassname']; if ($htmlname==1){ $bigclass_htmlname_leftmenu=$bigclassname_leftmenu;//大类名称 $bigclass_htmlname_leftmenu=tihuan($bigclass_htmlname_leftmenu); } if ($htmlname==0){ $bigclass_htmlname_leftmenu=$bigclassid; } ?>
// mysql_select_db($database_lr, $lr); $query_num="select count(*) from smallclass where bigclassid='$bigclassid'"; $rs_num=mysql_query($query_num); $myrow_num = @mysql_fetch_array($rs_num); $smallclass_num=$myrow_num[0]; if ($smallclass_num>0){ echo "id=arrow"; } ?>> " class="bigclasslink" > mysql_select_db($database_lr, $lr); $query_small = mysql_query("SELECT * FROM smallclass where bigclassid='$bigclassid' order by sort"); if ($smallclass_num==0) { echo "