<!--好友列表开始-->
<table width="756" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr valign="top"> 
    <td align="left">
  <table border="0" cellpadding="0" cellspacing="0" class="Page-deeptable">
        <tr> 
          <td width="103" class="righttable01"><img src="images/web/dl_01_02.jpg" width="9" height="9" align="absmiddle"> 
            <strong>我的好友</strong></td>
            <td  align="right" class="righttable01"></td>
        </tr>
        <tr align="left" valign="top"> 
          <td height="150" colspan="2" class="righttable02" align=center>  
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align=center>
          <tr>
<?php
$a=1;
global $db;
	$sql="select * from s_friend where S_namea='".$chsh_web_name."' order by s_id desc";
		$Arr=getuserpage($sql,"15");//sql,每页显示条数
		$result=$db->query($Arr[2]);
		$numdate="a";
		if($result){
			while ($row = $db ->fetch_array($result)){
		$numdate="b";
	$us=$db->getrow("select * from S_users where S_name='".$row['S_Nameb']."'");
if(($a==6)||($a==11)) echo "</tr><tr><td height=5></td></tr><tr>";
?>
          <td><table width="100" border="0" align="left" cellpadding="2" cellspacing="0">
              <tr> 
                <td height="73" align="left"><a href="<?php echo userlink('index',$row['S_Nameb'])?>"><IMG src="<?php echo piclink("logo",$us['S_Logo'])?>" onerror="this.onerror=null;this.src='images/avatar/noface_small.gif'" name="dis" width="100" height="131" class="line4" border="0"></a></td>
              </tr>
              <tr> 
                <td height="20" align="left" class="lefttable03"><a href="<?php echo userlink('index',$row['S_Nameb'])?>"><?php echo $us["S_RealName"]?></a></td>
              </tr>
            </table>
          </td>
<?php
$a=$a+1;
}
}
?>
   </tr></table>
		   
	  <!-- 好友列表循环 end-->

	
			</td>
        </tr>
        <tr> 
          <td height="8"></td>
        </tr>
        <tr> 
          <td width="153" class="righttable01"></td>
            <td  align="right" class="righttable01"><?php echo $Arr[0];?></td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="8"></td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<table width="756" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="8"></td>
  </tr>
</table>
<table width="756" border="0" align="center" cellpadding="0" cellspacing="0" class="bottomtable">
  <tr> 
    <td><div align="center">
</div></td>
  </tr>
</table>
