<!--<?php
include_once PrintEot('m_header');
print <<<EOT
-->
<div class="cc bgA" style="padding-top:10px;">
<div class="c"></div>
<div class="wrapB cc">
<!-- inset portrait module --><!--内容 begin-->
<div class="contentC cc fl">
	<!--内容侧栏 begin-->
	<div class="contentC-side cc fl">
		<div class="boxB bgB pr cc">
			<span class="cirA1"></span>
			<span class="cirA2"></span>
			<span class="cirA3"></span>
			<span class="cirA4"></span>
			<div class="tac p10 bdbA cc">
				<img class="pic" src="$usericon[0]" width="$usericon[2]" height="$usericon[3]" border="0">
                <div class="tal mt8">
<!--
EOT;
if(empty($isU)){print <<<EOT
-->
                    <ul class="listAppItem xl-app">
						<li>
							<a class="i-d" style="cursor: pointer;" onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$userdb[uid]')">添加为好友</a>
						</li>
                    </ul>
<!--
EOT;
}elseif($isU == 1){print <<<EOT
-->
                    <ul class="listAppItem xl-app">
						<li>
							<a class="i-d" style="cursor: pointer;" onclick="sendmsg('pw_ajax.php?action=deletefriend&fuid=$userdb[uid]')">解除好友</a>
						</li>
						<li>
							<a class="i-s" style="cursor: pointer;" id="message" onclick="sendmsg('pw_ajax.php?action=msg&touid=$userdb[uid]','','message')">发短消息</a>
						</li>
                    </ul>
<!--
EOT;
}print <<<EOT
-->
                </div>
			</div>
<!--
EOT;
if($privacy['profile']){print <<<EOT
-->
			<h6 class="bdbA boxC pdD">基本资料</h6>
			<div class="p10  cc">
            <p>性别：
<!--
EOT;
if($userdb['gender']==1){print <<<EOT
-->
男
<!--
EOT;
}elseif($userdb['gender']==2){print <<<EOT
-->
女
<!--
EOT;
}else{print <<<EOT
-->
保密
<!--
EOT;
}print <<<EOT
-->
			</p>
            <p>生日：$userdb[bday]</p>
            <p>来自：$userdb[location]</p>
			</div>
<!--
EOT;
}if($privacy['info']){print <<<EOT
-->
			<h6 class="bdbA boxC pdD bdtA">个人信息</h6>
			<div class="p10  cc">
            	<p>个人主页 ： $userdb[site]</p>
            	<p>自我简介 ： $userdb[introduce]</p>
            </div>
<!--
EOT;
}if($privacy['credit']){print <<<EOT
-->
			<h6 class="bdbA boxC pdD bdtA">个人积分</h6>
			<div class="p10  cc">
				<p>{$credit->cType[rvrc]} ：<span class="s1 b">$userdb[rvrc]</span> {$credit->cUnit[rvrc]}</p>
				<p>{$credit->cType[money]} ：<span class="s2 b">$userdb[money]</span> {$credit->cUnit[money]}</p>
				<p>{$credit->cType[credit]} ：<span class="s3 b">$userdb[credit]</span> {$credit->cUnit[credit]}</p>
			</div>
<!--
EOT;
}print <<<EOT
-->
		</div>
	</div>

	<div class="contentC-main cc fr">
		<div class="cc mb8">
			<dl>
				<dt>
					<span class="b f14">$userdb[username]</span> <span class="gray2">(有{$userdb['visits']}人看过)</span>
				</dt>
				<dd class="gray1">$userdb[honor]</dd>
			</dl>
		</div>
		<div id="person-nav" class="cc">
			<ul>
				<li class="current">
					<a href="{$basename}q=user&u=$uid">动态</a>
				</li>
				<li>
					<a href="{$basename}q=write&u=$uid">记录</a>
				</li>
				<li>
					<a href="{$basename}q=photos&u=$uid">相册</a>
				</li>
				<li>
					<a href="{$basename}q=share&u=$uid">分享</a>
				</li>
				<li>
					<a href="{$basename}q=article&u=$uid">帖子</a>
				</li>
				<li>
					<a href="{$basename}q=friend&u=$uid">好友</a>
				</li>
			</ul>
		</div>
		<div class="c">
		</div>
		<div id="minifeed" class="cc pdD">
<!--
EOT;
if ($privacy['index']) {
if (!empty($feeds)) {
foreach ($feeds as $day => $feed) {
print <<<EOT
-->
			<dl class="mb8 pdD">
				<dt class="b bdbA">
					$day
				</dt>
				<dd class="cc">
					<div class="list-dlB">
<!--
EOT;
foreach ($feed as $key => $value) {print <<<EOT
-->
						<dl class="cc list-dlB-A">
							<dt class="app-icon fl"></dt>
							<dd class="bdbA">

								<a href="{$basename}q=user&uid=$value[uid]">$value[username]</a> $value[descrip]
<!--
EOT;
if (checkCommType($value[type]) && $value[typeid]>0) {
print <<<EOT
-->
							<div id="com_{$value[type]}_{$value[typeid]}">
								<P>
									<a style="cursor: pointer;" class="flatcmt-get" onclick="showCommList('$value[type]','$value[typeid]','com_{$value[type]}_{$value[typeid]}',this);">回复</a>
								</p>
							</div>
<!--
EOT;
}print <<<EOT
-->
							</dd>
						</dl>
<!--
EOT;
}print <<<EOT
-->
					</div>
				</dd>
			</dl>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
} else { print <<<EOT
-->
			<dl class="status-item">
				<dd class="status-info">
					暂时没有好友动态
				</dd>
			</dl>
<!--
EOT;
}}else{print <<<EOT
-->
			<dl class="status-item">
				<dd class="status-info">
					暂时无权限查看好友空间
				</dd>
			</dl>
<!--
EOT;
}if($privacy['msgboard']){print <<<EOT
-->
			<dl class="p10" id="board_container">
				<dt class="b mb8">留言板</dt>
				<dd><div class="mb8"><textarea class="txa" maxlength="200" cols="60" rows="5" id="board"/></textarea></div>
					<input type="hidden" id="board_uid" value="$uid">
					<input class="bt3" type="button" value=" 留言 " onclick="postBoard();"/>&nbsp;&nbsp;
<!--
EOT;
foreach ($boards as $value) { print <<<EOT
--></dd>
				<dd class="cc pdD" id="board_{$value[id]}">
					<div>
						<dl class="cc mt8">
							<dd class="fl pdr">
								<img src="$value[face]" class="fl pdr portrait-s" />
							</dd>
<!--
EOT;
if ($value[uid]==$winduid || $winduid==$uid || $groupid==3) { print <<<EOT
-->
							<dd class="fr b gray1"><a style="cursor: pointer;" onclick="pwConfirm('是否确定删除本条留言',this,function(){delBoard('$value[id]')})">×</a></dd>
<!--
EOT;
} print <<<EOT
-->

							<dd class="fl cc">

								<a href="{$basename}q=user&u=$value[uid]">$value[username]</a>
								<span class="gray1">$value[postdate] 留言道:</span>
								<div class="pdD">
									$value[title]
								</div>
<!--
EOT;
if ($value[uid]==$winduid || $winduid==$uid) { print <<<EOT
-->
								<div id="com_board_{$value[id]}">
									<a style="cursor: pointer;" class="flatcmt-get" onclick="javascript:showCommList('board','$value[id]','com_board_{$value[id]}',this)">回复($value[c_num])</a>
								</div>
<!--
EOT;
}print <<<EOT
-->
							</dd>
						</dl>
					</div>
				</dd>
<!--
EOT;
}print <<<EOT
-->
				<a href="{$basename}q=board&u=$uid">更多留言</a>
			</dl>
<!--
EOT;
}print <<<EOT
-->
		</div>
	</div>
	<!--核心内容 end-->
</div>
<script language="JavaScript" src="mode/o/js/comment.js"></script>
<script language="JavaScript" src="mode/o/js/board.js"></script>
<!--内容 end--><!--侧栏 begin-->
<div class="sidebarC cc fr">
	<div class="boxB bgA pr cc" style="margin-top:60px">
		<span class="cirA1"></span>
		<span class="cirA2"></span>
		<span class="cirA3"></span>
		<span class="cirA4"></span>
		<div class="home-sider-item">
			<h3 class="cc"><span class="fl">最近来访</span></h3>
			<div class="cc mt8 mb8">
<!--
EOT;
if($whovisit){
$c = 0;
foreach ($whovisit as $value) {
$c++;if($c>6)break;print <<<EOT
-->
				<dl class="member100 member65 height90">
					<dd>
						<a href="{$basename}q=user&u=$value[uid]"><img src="$value[icon]" class="portrait-m"/></a>
					</dd>
					<dt>
						<a href="{$basename}q=user&u=$value[uid]" class="u-name">$value[username]</a><br /><span class="gray2">$value[visittime]</span>
					</dt>
				</dl>
<!--
EOT;
}}else{print <<<EOT
-->
				<p class="tac">暂时还没有访客</p>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>
		<div class="home-sider-item">
			<h3 class="cc"><span class="fl">{$userdb[username]}访问过</span></h3>
			<div class="cc mt8 mb8">
<!--
EOT;
if($tovisit){
$c = 0;
foreach ($tovisit as $value) {
$c++;if($c>6)break;print <<<EOT
-->
				<dl class="member100 member65 height90">
					<dd>
						<a href="{$basename}q=user&u=$value[uid]"><img src="$value[icon]" class="portrait-m"/></a>
					</dd>
					<dt>
						<a href="{$basename}q=user&u=$value[uid]" class="u-name">$value[username]</a><br /><span class="gray2">$value[visittime]</span>
					</dt>
				</dl>
<!--
EOT;
}}else{print <<<EOT
-->
				<p class="tac">暂时还没有访问记录</p>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>
		<div class="home-sider-item">
			<h3 class="cc"><span class="fl">{$userdb[username]}的好友</span><a href="{$basename}q=friend&u=$uid" class="gray1 fr">显示全部
					<small class="gray2">
						▼
					</small>
				</a></h3>
			<div class="cc mt8 mb8">
<!--
EOT;
foreach ($friends as $key => $value) {
$value[showname] = substrs($value[username],8);
print <<<EOT
-->
				<dl class="member100 member65 height90">
					<dd>
						<a href="{$basename}q=user&u={$value[uid]}"><img title="{$value[username]}" src="$value[face]" class="portrait-m"/></a>
					</dd>
					<dt>
						<a href="{$basename}q=user&u={$value[uid]}" class="u-name">$value[showname]</a>
					</dt>
				</dl>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>
	</div>
</div>
</div>
</div></div>
<!--
EOT;
?>-->
