<!--<?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 src="$usericon[0]" width="$usericon[2]" height="$usericon[3]" border="0">
                <div class="tal mt8">
                	 <ul class="listAppItem xl-app">
<!--
EOT;
if($ismyfriend == false && $winduid != $u){print <<<EOT
-->
                   		<li>
							<a id="fri_icon" class="i-d" style="cursor: pointer;" onclick="changeFriend('$userdb[uid]');"><span id="friendstate">添加为好友</span></a>
						</li>

<!--
EOT;
}elseif($ismyfriend == true){print <<<EOT
-->
						<li>
							<a id="fri_icon" class="i-t" style="cursor: pointer;" onclick="changeFriend('$userdb[uid]');"><span id="friendstate">解除好友</span></a>
						</li>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($u!=$winduid){print <<<EOT
-->
						<li>
							<a class="i-s" style="cursor: pointer;" id="message" onclick="sendmsg('pw_ajax.php?action=msg&touid=$userdb[uid]','','message')">发短消息</a>
						</li>
						<li>
							<a class="i-o" style="cursor: pointer;" id="share" onclick="shareOtherType('share_user');">分享用户</a>
						</li>
<!--
EOT;
}print <<<EOT
-->
					</ul>
                </div>
			</div>
<script language="javascript">
function changeFriend(u){
	var friendstate = getObj('friendstate');
	if (friendstate.innerHTML == '添加为好友'){
		ajax.send('mode.php?m=o&q=ajax&action=addfriend&u='+u,'',function(){
			var rText = ajax.request.responseText.split('\t');
			if (rText[0] == 'success') {
				getObj('fri_icon').className = 'i-t';
				friendstate.innerHTML = '解除好友';
				showDialog('success','操作成功!',1);
			} else {
				ajax.guide();
			}
		});
	}else if(friendstate.innerHTML == '解除好友'){
		pwConfirm('是否确认解除',friendstate,function(){
			ajax.send('mode.php?m=o&q=ajax&action=delfriend&u='+u,'',function(){
				var rText = ajax.request.responseText.split('\t');
				if (rText[0] == 'success') {
					getObj('fri_icon').className = 'i-d';
					friendstate.innerHTML = '添加为好友';
					showDialog('success','操作成功!',1);
				} else {
					ajax.guide();
				}
			});
		});
	}
}
</script>
<div id="share_user" style="display:none;">
	<div class="h b">分享</div>
	<div class="menu-text">
		<ul class="nemu-list cc">
			<li>
				<div class="gray">摘要：</div>
				<div class="exp">
					分享了一个用户 <b>$userdb[username]</b>
				</div>
			</li>
		</ul>
		<div class="c"></div>
		<ul class="nemu-list cc">
			<li>
				<div class="gray">描述：</div>
				<textarea  style="width:330px;height:60px;"></textarea>
			</li>
		</ul>
		<div class="menu-bt tac">
			<input class="bt3" type="button" value=" 确 定 " style="width:80px;" onclick="postShareOtherType('user','$userdb[uid]');">
			&nbsp;
			<input class="bt" type="button" value="取消" onclick="closep();"/>
		</div>
	</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="blue b">$userdb[rvrc]</span> {$credit->cUnit[rvrc]}</p>
				<p>{$credit->cType[money]} ：<span class="blue 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=$u">动态</a>
				</li>
				<li>
					<a href="{$basename}q=write&u=$u">记录</a>
				</li>
				<li>
					<a href="{$basename}q=photos&u=$u">相册</a>
				</li>
				<li>
					<a href="{$basename}q=share&u=$u">分享</a>
				</li>
				<li>
					<a href="{$basename}q=article&u=$u">帖子</a>
				</li>
				<li>
					<a href="{$basename}q=friend&u=$u">好友</a>
				</li>
				<li>
					<a href="{$basename}q=groups&u=$u">群组</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) {
$add_classname = getAppClassName($value['type']);
print <<<EOT
-->
						<dl class="cc list-dlB-A">
							<dt class="xl-app fl"><a class="aimg $add_classname fl">&nbsp;</a></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>
<!--
EOT;
if ($ismyfriend) { print <<<EOT
-->
				<dd><div class="mb8"><textarea maxlength="200" cols="60" rows="5" id="board"/></textarea></div>
					<input type="hidden" id="board_uid" value="$u">
					<input class="bt3" type="button" value=" 留言 " onclick="postBoard();"/>&nbsp;&nbsp;
				</dd>
<!--
EOT;
} print <<<EOT
-->
<!--
EOT;
foreach ($boards as $value) { print <<<EOT
-->
				<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==$u || $groupid==3) { print <<<EOT
-->
							<dd class="fr"><a style="cursor: pointer;" onclick="pwConfirm('是否确定删除本条留言',this,function(){delBoard('$value[id]')})" title="删除" class="o-del gray">删除</a></dd>
<!--
EOT;
} print <<<EOT
-->

							<dd class="fl cc">

								<a href="{$basename}q=user&u=$value[uid]">$value[username]</a>
								<span class="gray">$value[postdate] 留言道:</span>
								<div class="pdD">
									$value[title]
								</div>
<!--
EOT;
if ($value[uid]==$winduid || $winduid==$u) { 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=$u">更多留言</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 height130">
					<dd>
						<a href="{$basename}q=user&u=$value[uid]"><img src="$value[icon]" class="portrait-m"/></a>
					</dd>
					<dt>
<!--
EOT;
if ($value['thisvisit']) {
print <<<EOT
-->
					<span><img src="$imgpath/$stylepath/head-ol.gif" title="在线" align="absmiddle" /></span>
<!--
EOT;
}print <<<EOT
-->
					<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 height130">
					<dd>
						<a href="{$basename}q=user&u=$value[uid]"><img src="$value[icon]" class="portrait-m"/></a>
					</dd>
					<dt>
<!--
EOT;
if ($value['thisvisit']) {
print <<<EOT
-->
						<span><img src="$imgpath/$stylepath/head-ol.gif" title="在线" align="absmiddle" /></span>
<!--
EOT;
}print <<<EOT
-->
						<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=$u" class="gray fr">更多</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 class="c"></div>
	</div>
</div>
</div>
</div></div>
<!--
EOT;
?>-->
