<div class="dbzbox clearfix"> <?php $bclassid=$GLOBALS[navclassid]; //取得本栏目下的子栏目 ?> <?php for($n=0;$n<=5;$n++) //判断子栏目的个数,循环的次数 { if($n%2==0) //两个一组的循环 { ?> <div class="dbzlist"> <div class="dbzdh clearfix"> <ul class="tab_nav"> [e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` ASC ",7,24,0}] <?php if($bqno>$n&$bqno<=($n+2)){?> //$bqno是默认的序号,根据循环的序号来判断 <li class="selected"> <?=$bqr[classname]?> </li> <?php }?> [/e:loop] </ul> </div> <div class="tab_switch"> [e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` ASC ",7,24,0}] <?php if($bqno>$n&$bqno<=($n+2)){?> //$bqno是默认的序号,根据循环的序号来判断 <div class="tabcon selected"> <dl>[ecmsinfo] $bqr[classid],1,14,0,0,18,0[/ecmsinfo]</dl> <ul class="nrcon">[ecmsinfo]$bqr[classid],'1,4',26,0,0,17,0[/ecmsinfo]</ul> <div class="dbzbtn"><a href="<?=$bqsr[classurl]?>">详细了解<?=$bqr[classname]?></a></div> </div> <?php }?> [/e:loop] </div> </div> <?php }} ?> </div>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。