王国CMS用动感标识启用tag的最详尽实例教程

2021-03-09 23:49 jianzhan

[e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}]        


a href=' ?=$public_r[newsurl]? e/tags/?tagname= ?=$bqr['tagname']? ' tagid']? ' title=' ?=$bqr[num]? 个话题讨论' target="_blank" ?=$bqr['tagname']? ( ?=$bqr[num]? ) /a


[e:loop={"select * from [!db.pre!]enewstags order by num DESC limit 20",0,24,0}]


echo ' a href="/e/tags/?tagname='.urlencode($bqr['tagname']).'"  target="_blank" title="'.$bqr['num'].'个话题讨论" '.$bqr['tagname'].'('.$bqr['num'].') /a


注解:[e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}]  sal查寻tag


      ?=$public_r[newsurl]? e/tags/?tagname= ?=$bqr['tagname']? 即 e/tag/?tagname=tag名字


      ?=$bqr[num]?  如:有关“漂亮美女”的tag词有是多少个,即统计分析tag有关数


li a href="/e/tags/?tagid= ?=$bqr['tagid']? "  target="_blank" ?=$bqr['tagname']? /a /li


[e:loop={"select * from [!db.pre!]enewstags order by num DESC limit 20",0,24,0}]


echo ' a href=" ?=$public_r[newsurl]? e/tags/?tagname='.urlencode($bqr['tagname']).'"  target="_blank" title="'.$bqr['num'].'个话题讨论" '.$bqr['tagname'].'('.$bqr['num'].') /a


------------------------------------------------------------------------------------------


[e:loop={"select * from [!db.pre!]enewstags order by tagid limit 20",45,24,0}]     tagid后加limit 20


[e:loop={"select * from [!db.pre!]enewstags order by num DESC limit 20",0,24,0}]  num DESC后加limit 20