<?php
include_once("inc/config.php");
include_once("inc/publicfun.php");
include_once("inc/ftbbsdbclass.php");
include_once("conn.php");
include_once("touxianfun.php");
include_once("ftbbs_nav.php");
include_once("inc/ftcode.php");
include_once("checkuser.php");

$ftbbsuserid=intval($_GET["ftbbsuserid"]);
$ftbbsuser=ftbbs_request($_GET["ftbbsuser"]);
$query = "SELECT * FROM {$tablepre}ftbbsmb";
$ftbbsmb=makecache('ftbbsmb.html',$query,$expire);
$defaulthome=$ftbbsmb[31];

include_once("homeurl.php");
if ($ftbbsuserid==""){
$sql="select clubuser_id,clubuser_name,payuser,userimg,clubuser_email,clubuser_address,clubuser_reg_date,clubuser_enter_count,clubuser_sex,clubuser_marriage,clubuser_lasttime,signname,postnum,jingyuan,tili from {$tablepre}clubuser where clubuser_name='".$ftbbsuser."'";
}else{
$sql="select clubuser_id,clubuser_name,payuser,userimg,clubuser_email,clubuser_address,clubuser_reg_date,clubuser_enter_count,clubuser_sex,clubuser_marriage,clubuser_lasttime,signname,postnum,jingyuan,tili from {$tablepre}clubuser where clubuser_id='".$ftbbsuserid."'";
}
$rs=mysql_query($sql);
$row = mysql_fetch_array($rs);
$rsnum= mysql_num_rows($rs);
if ($rsnum>0){
   $clubuser_id=$row[0];
   $clubuser_name=$row[1];
   $payuser=$row[2];
   $userimg=$row[3];
   $clubuser_email=$row[4];
   $clubuser_address=$row[5];
   $clubuser_reg_date=$row[6];
   $clubuser_enter_count=$row[7];
   $clubuser_sex=$row[8];
   $clubuser_marriage=$row[9];
   $clubuser_lasttime=$row[10];
   $signname=ubb($row[11]);
   $postnum=$row[12];
   $jingyuan=$row[13];
   $tili=$row[14];
}

$touxian=touxianvalue($jingyuan);
$jibie=jibievalue($jingyuan);
?>
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=utf-8>
<title>用户个人资料</title>
<script language=javascript src="inc/cookies.js"></script>
<script>
var stylecook = getCookie("STYLESHOW");
var style;
var strstyle;
if(stylecook=="")
{
 stylecook=1;
}
else
{
 stylecook++;
}
style="main0"+stylecook+".css";
strstyle="<link href=\"css/"+style+"\"  rel=\"stylesheet\" type=\"text/css\"> ";
document.write(strstyle);
</script>
</HEAD>
</head>
<body>
<?
if (get_cookie('ftbbstype')==1){
include_once("pbhead.php");
}
?>
<table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" class="maintbbg">
  <tr>
    <td> 
      <table width="100%" border=0 cellpadding=2 cellspacing=1 class="maintbbg">
        <tbody>
          <tr> 
            <td height="25" class="f12bg">&nbsp;<?=$userinfo?></td>
          </tr>
          <tr> 
            <td height="25" class="maintbtr3">&nbsp;<a href="<?=$homepage?>">论坛首页</a> >> 个人资料：</td>
          </tr>
          <tr>
            <td height="30" class="maintbtr3">
            <fieldset>
			<legend>个人资料:</legend>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="30%" valign="top"> 
                    <table width="190" border="0" align="center" cellpadding="0" cellspacing="0" class="photo">
                      <tr> 
                    <td align="center" class="image"><img src="userheadimg/<?=$userimg?>" border="0" width="84"> 
                    </td>
                  </tr>
                  <tr> 
                    <td height="28" align="center" class="f12"> <a href="friendbbs.php?userid=<?=$clubuser_id?>"> 
                        <img src='blogimages/ico_adfriend.gif' border='0' align='absmiddle'>加为好友</a> 
                        | <a href="smsbbs.php?postuser=<?=$clubuser_id?>"> 
                        <img src="blogimages/ico_sendmsg.gif" border="0" align="absmiddle">发送消息</a> 
                    </td>
                  </tr>
                </table>
				  </td>
                  <td><div align="center"></div>
                    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr class="f12"> 
                        <td width="16%" height="23"><div align="left">用 户 名：</div></td>
                        <td width="84%"><?=$clubuser_name?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td width="16%" height="23"><div align="left">用户级别：</div></td>
                        <td width="84%">
						<?
						if (get_cookie('payuser')==1){
						     echo "<font color=red>认证会员</font>";
							 }
						else 
						     echo "<font color=green>普通会员</font>";
						?>
						</td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">性&nbsp;&nbsp;&nbsp;&nbsp;别：</div></td>
                        <td><?=$clubuser_sex?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td width="16%" height="23"><div align="left">用户头衔：</div></td>
                        <td width="84%">
						<?=$touxian?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td width="16%" height="23"><div align="left">用户等级：</div></td>
                        <td width="84%">
						<?=$jibie?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td width="16%" height="23"><div align="left">用户体力：</div></td>
                        <td width="84%">
						<?=$tili?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td width="16%" height="23"><div align="left">用户积分：</div></td>
                        <td width="84%"><?=$jingyuan?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">邮&nbsp;&nbsp;&nbsp;&nbsp;箱：</div></td>
                        <td><?=$clubuser_email?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">婚姻状态：</div></td>
                        <td><?=$clubuser_marriage?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">个人博客：</div></td>
                        <td><a href="home.php?userid=<?=$clubuser_id?>" target="_blank">点击进入<?=$clubuser_name?>的个人空间</a></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">个人相册：</div></td>
                        <td><a href="myphoto.php?userid=<?=$clubuser_id?>" target="_blank">点击查看<?=$clubuser_name?>的个人相册</a></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">所属地址：</div></td>
                        <td><?=$clubuser_address?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">注册时间：</div></td>
                        <td><?=$clubuser_reg_date?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">登录次数：</div></td>
                        <td><?=$clubuser_enter_count?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">发 贴 数：</div></td>
                        <td><?=$postnum?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">上次登录：</div></td>
                        <td><?=$clubuser_lasttime?></td>
                      </tr>
                      <tr> 
                      <td colspan=2 height=1 background="images/dot.gif"></td>
                      </tr>
                      <tr class="f12"> 
                        <td height="23"><div align="left">个性签名：</div></td>
                        <td><?=$signname?></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
              </fieldset>
			  <br>
            </td>
          </tr>
        </tbody>
      </table>
    </td>
  </tr>
</table>
<?
mysql_free_result($rs);
$db->close(); 
include_once("inc/bbstail.php");
?>