帝国CMS友情链接调用方法总结(三种)

一、调用文字链接

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

二、调用图片链接

[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=分类ID order by lid',20,24,0}] <li><a href="<?=$bqr[lurl]?>"><img src="<?=$bqr[lpic]?>" border="0"/></a></li> [/e:loop] [e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=分类ID order by myorder ',20,24,0}] <a href="<?=$bqr[lurl]?>"><?=$bqr[lname]?></a> [/e:loop]

三、调用下拉式的友情链接

<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>

声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:312334557@qq.com 我们将配合处理!

原文地址:《帝国cms友情链接三种调用方法(帝国cms调用栏目别名)》发布于2022-10-08 14:20:03

相关推荐