<?	
		$iserror = 0;
		$uid = isset($uid)?intval($uid):0;
		
		$showuser = $db->query_object("select * from ".JIEQI_DB_PREFIX."_system_users where uid=".$uid);
		if(!$showuser){
				$iserror = 1;
				$pagecontent = "<b>访问失败！</b><br/>";
				$pagecontent .= "不存在该用户！<br/>";
				$url = array();
				$tourl = URL_book_index($url);
		}else{
				$smartydate = array("pagetitle" => $showuser->name."的资料",
											"userleveltitle" => $listuser->getmemberlevel($showuser->experience,"title"),
											"userlevel" => $listuser->getmemberlevel($showuser->experience,"level"),
											"usernextlevel" => $listuser->getmemberlevel($showuser->experience,"nextlevelscore"),
											"usergrouptitle" => iconv('GBK','UTF-8',$jieqiGroups[$showuser->groupid]),
											"egoldname" => iconv('GBK','UTF-8',JIEQI_EGOLD_NAME),
											);
				$smartydate["maxfriends"] = ($jieqiRight['system']['maxfriends']['honors'][$listuser->getmemberlevel($showuser->experience,"level")]=="") ? ($jieqiConfigs['system']['maxfriends']) : $jieqiRight['system']['maxfriends']['honors'][$listuser->getmemberlevel($showuser->experience,"level")];
				$smartydate["maxmessages"] = ($jieqiRight['system']['maxmessages']['honors'][$listuser->getmemberlevel($showuser->experience,"level")]=="") ? ($jieqiConfigs['system']['messagelimit']) : $jieqiRight['system']['maxmessages']['honors'][$listuser->getmemberlevel($showuser->experience,"level")];
				$smartydate["maxbookmarks"] =  ($jieqiRight['article']['maxbookmarks']['honors'][$listuser->getmemberlevel($showuser->experience,"level")]=="") ? ($jieqiConfigs['article']['maxbookmarks']) : $jieqiRight['article']['maxbookmarks']['honors'][$listuser->getmemberlevel($showuser->experience,"level")];
				$smartydate["dayvotes"] = ($jieqiRight['article']['dayvotes']['honors'][$listuser->getmemberlevel($showuser->experience,"level")]=="") ? ($jieqiConfigs['article']['dayvotes']) : $jieqiRight['article']['dayvotes']['honors'][$listuser->getmemberlevel($showuser->experience,"level")];
				$smartyObj->assign('getuser',$showuser);		
		}

		if($iserror == 0){
				$tplpath = "user/space.tpl";
		}else{
				$smartydate = array("pagetitle" => "用户空间",
												"pagecontent" => $pagecontent,
												"tourl" => $tourl,
												"redirecturl" => $tourl,
												);
												
				$tplpath = "public.tpl";
		}
?>