帝国CMS信息内容页调用相关专题名称及链接

  1. 获取专题ID

    [e:loop={"select ztid from [!db.pre!]enewsztinfo where classid='$navinfor[classid]' and id='$navinfor[id]'",1,24,0}] <?php $ztid = $bqr[ztid]; ?>
    调用专题名称及链接
  2. [e:loop={"select * from [!db.pre!]enewszt where ztid='$ztid'",1,24,0}] <a href="<?=$public_r[newsurl].$bqr[ztpath]?>"><?=$bqr[ztname]?></a> [/e:loop]

     

wx.jpg ywfw.jpg
热门