<?
//-----------------------------------------------------------------------------
//    ID002同学录 单班级 (PHP & MySQL) 1.0 标准版
//-----------------------------------------------------------------------------
//    Copyright(C) aNErG, 2003. All rights reserved
//
//    技术支持 http://anerg.126.com
//-----------------------------------------------------------------------------
//    本软件对个人完全免费使用
//
//    如用于商业用途,您必须与我联系并支付RMB ￥20
//-----------------------------------------------------------------------------
 if (empty($HTTP_COOKIE_VARS["class_username"])){echo "请先<a herf=index.php>登录</a>！";exit;}
include ('conn.php') ;
require('java.js');
$query="select username,useremail,sex,userqq,usermsn,usericq,birthday,userphone,mobilephone,userinfo,add_date from classuser where username='$name'";
$result=mysql_db_query("$dbname",$query);
$arr=mysql_fetch_array($result);
         $username=$arr["username"];
		 $useremail=$arr["useremail"];
		 $sex=$arr["sex"];
		 $userqq=$arr["userqq"];
		 $usermsn=$arr["usermsn"];
		 $usericq=$arr["usericq"];
		 $birthday=$arr["birthday"];
		 $userphone=$arr["userphone"];
		 $mobilephone=$arr["mobilephone"];
		 $userinfo=$arr["userinfo"];
		 $add_date=$arr["add_date"];
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>成员详细资料</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="0" topmargin="10" marginwidth="0" marginheight="0">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center"><? echo "成员 $username 的详细资料"; 
	echo "<br>";
	echo "&nbsp;&nbsp;&nbsp;&nbsp;";
	echo "<a href=\"###\" onclick=\"Popup('sendu2u.php?u2u_to=$username','send',400,200);\">";
	echo "给 $username 发一条消息";
	echo "</a>";
	?>
	
      </div>
      <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#7597B0">
        <tr> 
          <td width="49%"><div align="center">用户名</div></td>
          <td width="51%"><div align="center"><?php echo $username ?></div>
        </td>
        </tr>
        <tr> 
          <td><div align="center">E-mail</div></td>
          <td><div align="center"><?php echo "<a href='mailto:$useremail'>$useremail</a>" ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">B or G</div></td>
          <td><div align="center"><?php echo $sex ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">QQ</div></td>
          <td><div align="center"><?php echo $userqq ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">MSN</div></td>
          <td><div align="center"><?php echo $usermsn ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">ICQ</div></td>
          <td><div align="center"><?php echo $usericq ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">电话</div></td>
          <td><div align="center"><?php echo $userphone ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">手机</div></td>
          <td><div align="center"><?php echo $mobilephone ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">生日</div></td>
          <td><div align="center"><?php echo $birthday ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">加入时间</div></td>
          <td><div align="center"><?php echo $add_date ?></div></td>
        </tr>
        <tr> 
          <td><div align="center">个人介绍</div></td>
          <td><div align="center">
              <table width="80%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><?php echo $userinfo ?></td>
                </tr>
              </table>
            </div></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
<?php require("bottom.php"); ?>