自定义字母数组
<? $zm=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']; ?>
字母数组导航
<? for($i=0;$i<count($zm);$i++){ ?> <a target="_self" href="#goto<?=$bqr1['classid'].$zm[$i]?>"><?=$zm[$i]?></a> <? } ?>
按字母调用信息
<? for($i=0;$i<count($zm);$i++){ ?> <h3> <a name="goto<?=$bqr1['classid'].$zm[$i]?>" id="goto<?=$bqr1['classid'].$zm[$i]?>"><?=$zm[$i]?></a> </h3> <ul class="mingxing_list clearfix"> <? $sql=$empire->query("select title,titleurl from {$dbtbpre}ecms_video where ".ReturnClass($class_r[$bqr1[classid]][sonclass])." and infozm = '$zm[$i]' order by id desc"); while($bqr=$empire->fetch($sql)){ $bqsr=sys_ReturnEcmsLoopStext($bqr); $bqno++; ?> <li> <a href="<?=$bqr['titleurl']?>"><?=$bqr['title']?></a> </li> <?}?> </ul> <? } ?>