帝国cms调用当前页面tags标签和内容页面tags方法

帝国cms调用当前页面列表tags标签方法

  1. [e:loop={"select a.* from yisvip_com_enewstags a LEFT JOIN yisvip_com_enewstagsdata b ON a.tagid=b.tagid where b.classid=’".$GLOBALS[navclassid]."’ and a.isgood!=’1′ group by a.tagid order by a.num DESC limit 20",500,24,0}]
  2.                                 <a target="_blank" href="/tags/<?=$bqr[‘tagid’]?>.html"><?=$bqr[‘tagname’]?></a>
  3.             [/e:loop]

复制代码

内容页面

  1. 本文标签:[e:loop={"select * from [!db.pre!]ecms_news_data_1 where id = ‘".$navinfor[id]."’ limit 0,30",1,24,0}]
  2. <?
  3. $a="$bqr[infotags]";
  4. $str=str_replace(‘,’, ‘,’, $a);
  5. $tag=”;
  6. $t= explode(",", $str);
  7. for($i=0;$i<count($t);$i++)
  8. {
  9. if($t[$i])
  10. {
  11. $rr=$empire->fetch1("select tagid from {$dbtbpre}enewstags where tagname=’$t[$i]’ limit 1");
  12. $tagslink="/tags-".$rr[tagid].".html";
  13. $tag.="<a href=’$tagslink’ target=’_blank’>".$t[$i]."</a> ";
  14. }
  15. }
  16. echo $tag;
  17. ?>
  18. [/e:loop]

复制代码

  1. 本文专题:
  2. [e:loop={‘select ztid from yisvip_com_enewsztinfo where classid=’.$navinfor[classid].’ and id=’.$navinfor[id],10,24,0}] <a target="_blank" href="/<?=$class_zr[$bqr[ztid]][ztpath]?>"><?=$class_zr[$bqr[ztid]][ztname]?></a>[/e:loop]

复制代码

温馨提示:本文最后更新于2022-09-12 11:37:48若文章内容或图片失效,请在下方留言或联系丁塔克
本站资源均为作者提供和网友推荐收集整理而来,仅供学习和研究使用,请在下载后24小时内删除,谢谢合作!
© 版权声明
THE END
点赞9 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容

热门圈子总有聊不完的话题
星球求救信号帮助是一种美德