<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
//位置
$url="$spacename &gt; 个人介绍";
$pagetitle='的个人资料';
include("header.temp.php");
$registertime=eReturnMemberRegtime($ur['registertime'],"Y-m-d H:i:s");
//oicq
if($addur['oicq'])
{
	$addur['oicq']="<a href='http://wpa.qq.com/msgrd?V=1&amp;Uin=".$addur['oicq']."&amp;Site=".$public_r['sitename']."&amp;Menu=yes' target='_blank'><img src='http://wpa.qq.com/pa?p=1:".$addur['oicq'].":4'  border='0' alt='QQ' />".$addur['oicq']."</a>";
}
$xingge=trim($addur[xingge],'|');
$xingge=str_replace("|",',',$xingge);
if($addur[sex]=='男'){
	$sexcss=' info_man';
}else{
	$sexcss=' info_woman';
}
//统计文章
$wznum=$empire->gettotal("select count(*) as total from {$dbtbpre}ecms_news where userid='$userid' and ismember='1'");
//我的关注
$wgznum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsmember_visitor where uid='$uid' and type='0'");
//注册时间
$ltime=floor((time()-$ur[registertime])/86400);
if($ltime>365){
	$ntime=floor($ltime/365);
	$ltimetxt=$ntime.'年';
}else{
	$ltimetxt=$ltime.'天';
}

//简介
?>
 <div id="space_warp" class="space_info_warp">
        <div class="space_info_bg">
          <div class="space_info_content">
            <div class="content">
            	<h2 class="bread_title"><span>个人资料</span></h2>
                <div class="info <?=$sexcss?>">
                	<div class="info_logo"></div>
                    <div class="info_head">
                    	<div class="l">头像:</div>
                        <div class="r">
                        	<span><img src="<?=$userpic?>" alt="<?=$spacename?>" /></span>
                        </div>
                    </div>
                    <div class="info_uname">昵称: <?=$addur['truename']?></div>
                    <div class="info_birthday">生日: <?=$addur['csrq']?></div>
                    <div class="info_star">星座: <?=$addur['xingzhuo']?></div>
                    <ul class="info_list">
                    	<li><span>发布了<?=$wznum?>篇短文</span></li>
                        <li><span>赞了<?=$addur[diggfen]?>篇文章</span></li>
                        <li><span>被<?=$addur[gzfen]?>个作家关注</span></li>
                        <li><span>关注了<?=$wgznum?>个作家</span></li>
                        <li><span>短文学网安家<?=$ltimetxt?>了</span></li>
                    </ul>
                    <div class="info_marital">情感: <?=$addur['qinggan']?></div>
                    <div class="info_nature">性格: <?=$xingge?></div>
                    <div class="info_height">身高: <?=$addur['shenggao']?>cm</div>
                    <div class="info_blood">血型: <?=$addur['xuexing']?></div>
                    <div class="info_bodytype">体重: <?=$addur['tizhong']?>KG</div>
                    <div class="info_sex">性别: <?=$addur['sex']?></div>
                    <div class="info_measurements">三围: <?=$addur['xiongwei']?>-<?=$addur['yaowei']?>-<?=$addur['dianwei']?></div>
                    <div class="info_place">目前所在地: <?=$addur['mqarea']?></div>
                    <div class="info_oldplace">家乡所在地: <?=$addur['jxarea']?></div>
                </div>
                <div class="info_share">
                	<div class="bdsharebuttonbox" style="float:right;"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"1","bdMiniList":false,"bdPic":"","bdStyle":"1","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];</script>
                </div>
            </div>
          </div>
        </div>
      </div>
  
<?php
include("footer.temp.php");
?>