注意的一点:就是添加友情链接前要添加分类;

1、文字形式

[e:loop={‘select * from [!db.pre!]enewslink where checked=1 and classid=1 order by myorder’,20,24,0}]
<li><a href=”<?=$bqr[lurl]?>” title=”<?=$bqr[lname]?>” target=”_blank”><?=$bqr[lname]?></a></li>
[/e:loop]

 

2、图片形式

[e:loop={‘select * from [!db.pre!]enewslink where checked=1 and classid=1 order by lid’,3,24,0}]
<li><a href=”<?=$bqr[lurl]?>” title=”<?=$bqr[lname]?>” target=”_blank”><img src=”<?=$bqr[lpic]?>”/></a></li>
[/e:loop]

 

3、下拉形式

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