- <?php
- //判断当前栏目是否有设置标题分类
- $tr=$empire->fetch1("select ttids from phome_enewsclassadd where classid=$GLOBALS[navclassid]");
- //上面这句如果用在标题分类列表页需要改为$tr=$empire->fetch1('select ttids from phome_enewsclassadd where ttids like "%'.$GLOBALS[navclassid].'%"');
- if ($tr[ttids]){
- ?>
- <div class="am-panel-bd" style=" padding:15px 5px; overflow:hidden;">
- <?
- $ttids=explode(',',trim($tr[ttids],","));
- foreach($ttids as $id){
- $ttname_sql=sys_ReturnEcmsLoopBq("select * from [!db.pre!]enewsinfotype where typeid=$id",0,24,0);
- while($bqr2=$empire->fetch($ttname_sql)){
- $tturl=sys_ReturnBqInfoTypeUrl($bqr2[typeid]);
- ?>
- <a class="ys4" href="<?=$tturl?>" target="_blank"><?=$bqr2[tname]?></a>
- <?php
- }//endwhile
- }//endfor
- ?>
- </div>
- <?
- }//ENDIF
- ?>
复制代码
|