<?
include_once("inc/config.php");
include_once("inc/publicfun.php");
include_once("inc/ftbbsdbclass.php");
include_once("conn.php");

$userid=$_GET["userid"];
$query = "SELECT * FROM {$tablepre}ftbbsmb";
$ftbbsmb=makecache('ftbbsmb.html',$query,$expire);
$htmlsign=$ftbbsmb[37];
if ($htmlsign==1){
$syurl=$userid.".html";
$bkurl="boker-".$userid.".html";
$hyurl="haoyou-".$userid.".html";
$xcurl="photo-".$userid.".html";
$zlurl="my-".$userid.".html";
}
else
{
$syurl="home.php?userid=".$userid;
$bkurl="boker.php?userid=".$userid;
$hyurl="haoyou.php?userid=".$userid;
$xcurl="myphoto.php?userid=".$userid;
$zlurl="mypinfo.php?userid=".$userid;
}

$sql="select * from {$tablepre}clubuser where clubuser_id=".$userid;
$rs=mysql_query($sql);
$myrow = mysql_fetch_array($rs);
$numrows = mysql_num_rows($rs);
if ($numrows != 0){
   $username=$myrow["clubuser_name"];
   $userimg=$myrow["userimg"];
   $homepagetitle=$myrow["homepagetitle"];
   $cssfile="blogcss/".$myrow["cssfile"];
   $bokeer=$myrow["bokeer"];
   if ($cssfile=="" || empty($cssfile) || $cssfile=="blogcss/"){
   $cssfile="blogcss/2.css";
   }
   if ($userimg==""){
      $blogheadimg="blogimages/nophoto.gif";
   }
   else{
      $blogheadimg="userheadimg/".$userimg;
   }
}
else{
   echo "<br><br><br><br><center>用户不存在</center>";
   exit;
}
?>
<html><head><meta http-equiv=Content-Type content="text/html; charset=<?=$charset?>">
</head>
<script language="javascript" src="js/publicfun.js"></script>
<body>
<center>
<title><?=$username?>的个人档案</title>
<link rel="stylesheet" type="text/css" href="<?=$cssfile?>">
<?
include_once("usernav.php");
include_once("myhead.php");
?>
<div class="stage">
<div class="stagepad">
<div style="width:100%">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
	<tr><td class="modtl" width="7">&nbsp;</td>
	<td class="modtc" nowrap>
		<table border="0" cellspacing="0" cellpadding="0"><tr><td>
		<div class="modhead"><span class="modtit">个人档案</span> </div>
		</td></tr></table>
	</td>
	<td class="modtc" nowrap align="right"></td>
	<td class="modtr" width="7">&nbsp;</td>
	</tr></table>
<div id="m_blog" class="modbox">
<div style="width:100%">
            
          <div style="position:relative;margin:0 0 0 203px"> 
            <div style="position:absolute;left:-203px;top:5px"> 
              <table width="190" border="0" cellspacing="0" cellpadding="0" class="photo">
                <tr> 
                  <td align="center" class="image"><img src="<?=$blogheadimg?>" border="0" width="84"> 
                    <div class="line"></div></td>
                </tr>
                <tr> 
                  <td height="28" align="center"> <div class="opt"> <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?>"> <img src="blogimages/ico_sendmsg.gif" border="0" align="absmiddle">发送消息</a> 
                    </div></td>
                </tr>
              </table>
            </div>
            <table width="100%" border="0" cellspacing="5" cellpadding="0" class="f12">
              <tr> 
                <td width="113" class="tit"><span style="font-weight: 400">用户名：</span></td>
                <td width="412"> 
                  <?=$username?>
                </td>
              </tr>
              <tr> 
                <td class="tit"><span style="font-weight: 400">性别：</span></td>
                <td> 
                  <?=$myrow["clubuser_sex"]?>
                </td>
              </tr>
              <tr> 
                <td class="tit"><span style="font-weight: 400">邮箱：</span></td>
                <td> 
                  <?=$myrow["clubuser_email"]?>
                </td>
              </tr>
              <tr> 
                <td class="tit"><span style="font-weight: 400">婚姻状态：</span></td>
                <td> 
                  <?=$myrow["clubuser_marriage"]?>
                </td>
              </tr>
              <tr> 
                <td class="tit"><span style="font-weight: 400">住址：</span></td>
                <td> 
                  <?=$myrow["clubuser_address"]?>
                </td>
              </tr>
              <tr> 
                <td class="tit"><span style="font-weight: 400">注册时间：</span></td>
                <td> 
                  <?=$myrow["clubuser_reg_date"]?>
                </td>
              </tr>
              <tr> 
                <td valign="top" class="tit"><span style="font-weight: 400">blog标题：</span></td>
                <td valign="top"> 
                  <?
				   if ($myrow["homepagetitle"]==""){
				     echo "这家伙很懒什么没有填写";
					 } 
					 else{ 
					 echo $myrow["homepagetitle"];
					 }?>
                </td>
              </tr>
              <tr> 
                <td valign="top" class="tit"><span style="font-weight: 400">简介：</span></td>
                <td valign="top"> 
                  <? if ($myrow["clubuser_note"]==""){ echo "这家伙很懒什么没有填写"; } else{ echo $myrow["clubuser_note"]; }?>
                </td>
              </tr>
            </table>
            <div class="pline">　</div>
          </div>
            <br>
</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>
</div>
</div>
<br>
<center>
<?
include_once("tail.php");
?></center>
</body></html>