网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   CmsWare (https://www.0058.net/forumdisplay.php?f=59)
-   -   帝国cms灵动标签调用友情链接 (https://www.0058.net/showthread.php?t=5130)

MacArthur 2015-05-07 09:35 AM

帝国cms灵动标签调用友情链接
 
帝国CMS默认的友情链接标签内置的格式太坑爹了,无法满足个性化需求。

可使用灵动标签来调用:

调用文字链接:


[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=2 order by lid',20,24,0}]
<a href="<?=$bqr[lurl]?>"target="_blank"><?=$bqr[lname]?></a>
[/e:loop]

调用图文链接:
[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=1 order by lid',3,24,0}]
<a href="<?=$bqr[lurl]?>" title="<?=$bqr[lname]?>" target="_blank"><img src="<?=$bqr[lpic]?>"/></a>
[/e:loop]

其中,classid=1 为友情链接分类ID,checkde=1 为审核过的链接。


下拉列表式友情链接调用:
<form id="form1" name="form1" method="post" action="">
<label for="FRIEND LINK ">友情链接:</label>
<select onchange="window.open(this.options[selectedIndex].value,'','');" name="FRIEND LINK" size="1" id="FRIEND LINK">
[e:loop={'select * from [!db.pre!]enewslink where checked=1 order by lid',20,24,0}]
<option value="<?=$bqr[lurl]?>">
<?=$bqr[lname]?>
</option>
[/e:loop]
</select>
</form>


All times are GMT +8. The time now is 10:38 PM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.