<?php
require("session_check.php");	
	$user_id=get_argg('user_id');
	$dbo = new dbex;
	dbtarget('w',$dbServs);
	
	//表定义区
	$t_users=$tablePreStr."users";
	$sql="select user_name,user_ico,user_marry,user_qq,user_blood,birth_province , birth_city , reside_province , reside_city  from $t_users where user_id='$user_id'";
	$member_info=$dbo->getRow($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/right.css">
</head>

<body>
	
 <div class='container' style='padding-top:5px;margin-top:0px'>
      <div class='rs_head' style='margin-top:0px'><?php echo $member_info['user_name'];?>的资料</div>
      </div>
           <table class='main main_left'>
             <tr>
               <th>姓名</th>
               <td><?php echo $member_info['user_name'];?></td>
               <td rowspan="3"><img src="../<?php echo $member_info['user_ico'];?>" /></td>
             </tr>
             <tr>
               <th>婚恋状态</th>
               <td>
               	<?php if($member_info['user_marry']==0) echo "保密";
               				if($member_info['user_marry']==1) echo "单身";
               				if($member_info['user_marry']==2) echo "已婚";
               	?>
			        </td>
             </tr>
             <tr>
               <th>生日</th>
               <td>
               <?php	
               if($member_info['birth_year']&&$member_info['birth_month']&&$member_info['birth_day']){
               	echo $member_info['birth_year']."年".$member_info['birth_month']."月".$member_info['birth_day']."日";
               	}else echo "未填";       	
               ?>  	   
						 </td>
             </tr>
             <tr>
               <th>血型</th>
               <td>
               <?php echo $member_info['user_blood'];?>
				</td>
             </tr>
             <tr>
               <th>QQ</th>
               <td>
               	<?php echo $member_info['user_qq'];?>
               	</td>
             </tr>
             <tr>
               <th>家乡</th>
               <td>
               <?php echo $member_info['birth_province'];?>&nbsp&nbsp<?php echo $member_info['birth_city'];?>
               	</td>
             </tr>
             <tr>
               <th>所在地</th>
               <td>
               	<?php echo $member_info['reside_province'];?>&nbsp&nbsp<?php echo $member_info['reside_city'];?>
               	</td>
             </tr>

           </table>
</body>
</html>
