<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
	<tr><td class="modtl" width="7">&nbsp;</td>
	<td class="modtc" nowrap><div class="modhead"><span class="modtit">个人档案</span></div></td>
	<td class="modtc" nowrap align="right"></td>
	<td class="modtr" width="7">&nbsp;</td>
	</tr></table>
	<div id="m_pro" class="modbox">
<SCRIPT LANGUAGE="JavaScript">
<!--
var proMaxHeight = 150;
var proMaxWidth = 110;

function proDownImage(ImgD){ 
    var image=new Image(); 
    image.src=ImgD.src; 
    if(image.width>0 && image.height>0){ 
		var rate = (proMaxWidth/image.width < proMaxHeight/image.height)?proMaxWidth/image.width:proMaxHeight/image.height;
		if(rate <= 1){			
			ImgD.width = image.width*rate;
			ImgD.height =image.height*rate;
		}
		else {
                        ImgD.width = image.width;
                        ImgD.height =image.height;
                }
    } 
}
//-->
</SCRIPT>
		<div class="image"><img src="<?=$blogheadimg?>" border="0"></div>
		<div class="act">			
			<a href="friend_add.php?postuser=<?=$username?>"><img src='blogimages/ico_adfriend.gif' border='0' align='absmiddle'> 加为好友</a>|<a href="blogsms_add.php?postuser=<?=$username?>" target="_blank"><img src="blogimages/ico_sendmsg.gif" border="0" align="absmiddle"> 发送消息</a>
		</div>
		
  <div class="desc">欢迎来到我的空间<br>
    <a href="myinfo.php?userid=<?=$userid?>">查看详细信息</a></div>
	</div>

	<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8">
	<tr><td class="modbl" width="7">&nbsp;</td>
	<td class="modbc">&nbsp;</td>
	<td class="modbr" width="7">&nbsp;</td>
	</tr></table>
</div>
<div id="mod_profile" class="mod" rel="drag">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
	<tr><td class="modtl" width="7">&nbsp;</td>
	<td class="modtc" nowrap><div class="modhead"><span class="modtit">我的相册</span></div></td>
	<td class="modtc" nowrap align="right">
	
	</td>
	<td class="modtr" width="7">&nbsp;</td>
	</tr></table>
	<div id="m_pro" class="modbox">
       <div align="center">
<?
$sql="select upload_pic from {$tablepre}ftbbs_upload where bbs_blog_type=2 and sign=0 and clubuser_id=".$userid." order by indate desc limit 0,1";
$rs=mysql_query($sql);
$row = mysql_fetch_array($rs);
$numrows = mysql_num_rows($rs);
if ($numrows!=0){
   echo "<a href=myphoto.php?userid=".$userid."><img src=".$row["upload_pic"]." width=\"200\" border=\"0\" /></a>";
}
else{
   echo "相册还没有相片";
}
?>
	   </div>
       <!--<div align="center">上一张 下一张 </div>-->
    </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="3">
              <tr> 
                <td class="modbl" width="7">&nbsp;</td>
                <td class="modbc">&nbsp;</td>
                <td class="modbr" width="7">&nbsp;</td>
              </tr>
            </table>
</div>			
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
	<tr><td class="modtl" width="7">&nbsp;</td>
	<td class="modtc" nowrap><div class="modhead"><span class="modtit">其他</span></div></td>
	<td class="modtc" nowrap align="right"></td>
	<td class="modtr" width="7">&nbsp;</td>
	</tr>
</table>

<div id="comm_info" class="modbox">
<img src="blogimages/rss.gif" border="0" align="absmiddle" title="订阅RSS" alt="订阅RSS">&nbsp;&nbsp;<a href="blogrss.php?userid=<?=$userid?>" target="_blank">RSS订阅</a> 
<div class="line">&nbsp;</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8">
<tr><td class="modbl" width="7">&nbsp;</td>
<td class="modbc">&nbsp;</td>
<td class="modbr" width="7">&nbsp;</td>
</tr></table>
