<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
//公告
$spacegg='';
if($addur['spacegg'])
{
	$spacegg=$addur['spacegg'];
}
//导航菜单
$dhmenu='';
$modsql=$empire->query("select mid,qmname from {$dbtbpre}enewsmod where usemod=0 and showmod=0 and qenter<>'' order by myorder,mid");
while($modr=$empire->fetch($modsql))
{
	$dhmenu.="<td width=70 height=24 onmouseover='ChangeMenuBg(this,mod".$modr[mid].")' onmouseout='ChangeMenuBg2(this,mod".$modr[mid].")' align='center' onclick=\"self.location.href='list.php?userid=$userid&mid=$modr[mid]';\"><font color='#FFFFFF' id='mod".$modr[mid]."'><strong>".$modr[qmname]."</strong></font></td>";
}
?>
<!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=gb2312" />
<title><?=$spacename.$pagetitle?>_短文学网</title>
<link href="/templets/member/common/css/common.css" type="text/css" rel="stylesheet" />
<link href="/templets/member/person/css/style.css" type="text/css" rel="stylesheet" />
<link id="theme_bg_link" href="/templets/member/bg/anjing/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/templets/member/common/js/jquery.js"></script>
<script type="text/javascript" src="/templets/member/common/js/duan.js"></script>
</head>
<body>
<!--头部开始-->
<div id="tool">
  <div class="tool_content">
   <?
require(ECMS_PATH.'e/template/incfile/head.php');
?>
    <dl>
      <dd><a href="index.php?dopost=randuser" class="icon_03">随便逛逛</a> </dd>
      <dt><script>
document.write('<script src="/e/member/login/loginjsspace.php?t='+Math.random()+'"><'+'/script>');
</script></dt>
    </dl>
  </div>
</div>
<!--头部结束--><!--主部分开始-->
<div id="main_warp" class="main_warp">
  <div class="main_bg">
    <div class="mian_content">
      <!--头像开始-->
<div id="head" class="head"> <a href="<?=$spaceurl?>"><img src="<?=$userpic?>" alt="<?=$spacename?>" /></a> </div>
<!--头像结束-->
<!--空间标题和描述开始-->
<div id="space_info" class="space_info">
<h1 id="space_title" class="space_title" ><?=$spacename?></h1>
<div id="space_desc" class="space_desc" ><?=$usersay?></div>
</div>
<!--空间标题和描述结束-->
<!--菜单开始-->
<div id="space_menu" class="space_menu">
<ul>
  <li><a href="<?=$spaceurl?>"><span>首页</span></a></li>
  <li><a href="list.php?userid=<?=$userid?>&mid=1&classid=3"><span>日记</span></a></li>
  <li><a href="list.php?userid=<?=$userid?>&mid=1"><span>文集</span></a></li>
  <li><a href="UserInfo.php?userid=<?=$userid?>"><span>资料</span></a></li>
  <li><a href="gbook.php?userid=<?=$userid?>"><span>留言</span></a></li>
</ul>
</div>
<!--菜单结束-->
<!--空间关注开始-->
<div id="space_atten" class="space_atten"> <a href="javascript:;" data-mid="<?=$userid?>"><span>关注TA</span></a> <span class="atten_num"><?=$addur[gzfen]?></span><strong>人关注</strong> <strong>积分：</strong><span class="atten_nums"><?=$ur[userfen]?></span> </div>
<!--空间关注结束-->
<!--个人描述开始-->
<div id="profile_desc" class="profile_desc" ><?=$spacegg?></div>
<!--个人描述结束-->
<!--访客开始-->
<div id="space_visitors" class="space_visitors">
<div class="space_visitors_warp">
    <h2>最近访客</h2><a href="javascript:;" class="next" data-mid="<?=$userid?>" data-page="2"><span>换一组</span></a>
    <div class="visitors_list">
      <ul>
      <?php
$fksql=$empire->query("select * from {$dbtbpre}enewsmember_visitor where userid='".$userid."' and type='0' order by addtime desc limit 12");
while($rs=$empire->fetch($fksql))
{

        if($rs[userid])
        {
                $fkxxrs=$empire->fetch1("select userid,truename,userpic from {$dbtbpre}enewsmemberadd where userid=$rs[uid] limit 1");
				 $fku=$empire->fetch1("select username from {$dbtbpre}enewsmember where userid=$rs[uid] limit 1");
?><li><a title="<?=$fku[username]?>" href="/e/space/index.php?userid=<?=$fkxxrs[userid]?>"><img src="<?=$fkxxrs[userpic]?$fkxxrs[userpic]:'/e/data/images/nouserpic.gif'?>" alt="<?=$fku[username]?>" /></a></li>
<?php        
        }

}
?>   


              </ul>
    </div>
</div>
</div>
<!--访客结束-->      <!--主要部分开始-->
     
   