<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?
/**
 * @version		1.0
 * @package		HonoWeb->HonoBBS
 * @copyright	Copyright (C) HonoWeb. All rights reserved.
 * @Website		www.honoweb.com.您好
 */
 ?>
<?
 if($bbs_config_row['bbs_link_style']==1)
 {
 ?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" class="bar" style="padding-left:10px; "><img src="<?=$BBSFolder?>/images/doticon.gif" width="10" height="9"> <font class="bar1"> 友情链接 </font> </td>
  </tr>
  <tr>
    <td height="50" class="righttd"><div  class="righttop_left">
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
	<tr>
      <?
		$sql="select * from  ".$TableBbs_link." where is_verify=1 and booklet_type=1 order by sortid";
		$result=$db->getAll($sql);
		for($i=0;$i<count($result);$i++)
		{
			
		?>
				 <td align="center"> <a target="_blank" href="<?=$result[$i]['link_url']?>">
				 
					<?=$result[$i]['booklet_name']?>
				
					</a>				</td>
     <?
	}
	?>
		</tr>
	 </table>
    </div></td>
  </tr>
</table>
 <?
	}
	?>
<?
 if($bbs_config_row['bbs_link_style']==2)
 {
 ?>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" class="bar" style="padding-left:10px; "><img src="<?=$BBSFolder?>/images/doticon.gif" width="10" height="9"> <font class="bar1"> 友情链接 </font> </td>
  </tr>
  <tr>
    <td height="50" class="righttd"><div  class="righttop_left">
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
	<tr>
      <?
		$sql="select * from  ".$TableBbs_link." where is_verify=1 and booklet_type=2 order by sortid";
		$result=$db->getAll($sql);
		for($i=0;$i<count($result);$i++)
		{
			
		?>
				 <td align="center"> <a target="_blank" href="<?=$result[$i]['link_url']?>">
					<img width="100" height="40"  src="<?=$BBSFolder?>/upload/bbs_link/<?=$result[$i]['picture']?>" border="0" >
				</a>				
				</td>
     <?
	}
	?>
		</tr>
	 </table>
    </div></td>
  </tr>
</table>
 <?
	}
	?>