欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

帝國CMS首頁通過loop標簽調(diào)用TAGS的實現(xiàn)代碼

  發(fā)布時間:2020-01-28 14:54:20   作者:佚名   我要評論
這篇文章主要介紹了帝國CMS首頁通過loop標簽調(diào)用TAGS的實現(xiàn)代碼,需要的朋友可以參考下

帝國CMS首頁無法調(diào)用TAGS,但是本人整理了一段可以使用的代碼分享給大家。

[e:loop={0,13,3,0}]
          <?php
$fr=$empire->fetch1("select infotags from diansui_ecms_news_data_1 where id='$bqr[id]'");
?>
<?php
$alltag="";
$tag=explode(",",$fr[infotags]);
for($t=0;$t<count($tag);$t++)
{
$alltag.='<a href="/tags-'.urlencode($tag[$t]).'-0.html">'.$tag[$t].'</a>';
}
?>
<?php
if($bqr[titlepic])
{
?>
<li class='clearfix'><span class='fl'><a href='<?=$bqsr['titleurl']?>'  target='_blank' rel='nofollow'><img src='<?=$bqr['titlepic']?>' alt='<?=$bqr['title']?>' /></a></span><h3><a href='<?=$bqsr['titleurl']?>' title='<?=$bqr['title']?>' target='_blank'><?=$bqr['title']?></a></h3><p><?=$bqr['smalltext']?>...<a href='<?=$bqsr['titleurl']?>' title='更多' target='_blank'>[更多]</a></p><div class='mn-lis-tit'><span class='mn-date'><?=date('Y-m-d',$bqr[newstime])?></span><span class='mn-category ml25'>類目:<a href='<?=$bqsr[classurl]?>'><?=$bqsr[classname]?></a></span><span class='mn-keyword ml25'>關鍵詞:<?=$alltag?>
</span></div></li>
<?php
}
else
{
?>
<li class='clearfix border'><h3><a href='<?=$bqsr['titleurl']?>' title='<?=$bqr['title']?>' target='_blank'><?=$bqr['title']?></a></h3><p><?=$bqr['smalltext']?>...<a href='<?=$bqsr['titleurl']?>' title='更多' target='_blank'>[更多]</a></p><div class='mn-lis-tit'><span class='mn-date'><?=date('Y-m-d',$bqr[newstime])?></span><span class='mn-category ml25'>類目:<a href='<?=$bqsr[classurl]?>'><?=$bqsr[classname]?></a></span><span class='mn-keyword ml25'>關鍵詞:<?=$alltag?></span></div></li>
<?php
}
?>
[/e:loop]

大家根據(jù)自己的需要修改代碼結構與樣式即可。

相關文章

最新評論