<!--<?php
include_once PrintEot('m_header');
print <<<EOT
-->
   <div class="infobox pr cc">
        <div class="p10">
            <table border="0" cellpadding="0" cellspacing="0" class="vt">
                <tr>
                    <td width="65">
                    	<a href="{$basename}q=user&u=$uid"><img src="$faceimg" class="portrait-m" /></a>
					</td>
<!--
EOT;
if ($uid==$winduid) {print <<<EOT
-->
					<td>
						<p class="pd8">
	                    	<span class="b f14 pdr">{$username}</span>
							<a href="{$basename}q=user&u=$u">返回首页</a>
						</p>
						<div class="tabA" style="position:absolute;bottom:-1px;_bottom:-2px;padding-left:0;width:600px;">
						<ul>
							<li id="type_new"><a href="{$basename}q=write">最新记录</a></li>
							<li id="type_view"><a href="{$basename}q=write&do=view">我发表的</a></li>
							<li id="type_my"><a href="{$basename}q=write&do=my">@我的</a></li>
						</ul>
                    </div>
<script language="JavaScript">
setCurrent('type_$do','type_new','current');
function ajaxurl(o) {
	read.obj = o;
	ajax.send(o.href,'',ajax.get);
}
function submitwrite(e) {
	var keychar;
	if (window.event) {
		keychar = e.keyCode;
	} else if(e.which) {
		keychar = e.which;
	}

	if (keychar == 13) {
		getObj('submitwrite').click();
		return false;
	}
	return String.fromCharCode(keychar);
}
</script>
					</td>
<!--
EOT;
}else{print <<<EOT
-->
					<td>
	                	<p class="pd8">
	                    	<span class="b f14 pdr">{$username}</span>
							<a href="{$basename}q=user&u=$u">返回首页</a>
						</p>
	                    <div class="tabA" style="position:absolute;bottom:-1px;_bottom:-2px;padding-left:0;width:600px;">
							<ul>
								<li class="current"><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>
							</ul>
	                    </div>
	                </td>
<!--
EOT;
}print <<<EOT
-->

                </tr>
            </table>
        </div>
    </div>

<div class="wrapB cc mt8">
	<div class="contentB">
<!--
EOT;
if ($uid==$winduid) {print <<<EOT
-->
		<div style="padding-left:1em">
			<div class="fl boxB pr" style="padding:0 1px">
				<input type="text" class="ip" style="border-color:#fff; width:400px" id="writetext" value="输入点什么吧" onblur="if(this.value==''){this.value='输入点什么吧';getObj('writepost').style.display='none';}" onfocus="if(this.value=='输入点什么吧'){this.value='';getObj('writepost').style.display='';}" onkeypress="return submitwrite(event);"/>
				<span class="status-co"></span>
			</div>
			<div id="writepost" class="fl" style="padding:0 1px; margin-left:.3em;display:none">
				<input type="button" value=" 发布 " class="bt" id='submitwrite' onclick="read.obj=this;ajax.send('{$basename}q=write&do=post','text='+getObj('writetext').value,function(){window.location.reload();});" />
			</div>
			<div class="c"></div>
		</div>
<!--
EOT;
}print <<<EOT
-->
		<div class="c"></div>
		<div class="list-dlA list-dlA-B">
<!--
EOT;
if (!empty($writedata)) {
$db_blogsource = array('web'=>'网页','other'=>'其他');
foreach ($writedata as $key => $value) {print <<<EOT
-->
			<dl id="write_$value[id]">
				<dd class="cc">
					<p class="f14">
<!--
EOT;
if($do == 'view' && $uinfo['icon']){print <<<EOT
-->
						<img class="fl pdr" src="$uinfo[icon]" width="45" />
<!--
EOT;
}elseif($value[icon]){print <<<EOT
-->
						<img class="fl pdr" src="$value[icon]" width="45" />
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($do == 'view'){print <<<EOT
-->
						<a class="s1 pdr" href="{$basename}q=user&u=$uinfo[uid]">$uinfo[username]</a>
<!--
EOT;
}else{print <<<EOT
-->
						<a class="s1 pdr" href="{$basename}q=user&u=$value[uid]">$value[username]</a>
<!--
EOT;
}if (isset($touids[$value['touid']])) {print <<<EOT
-->
						@<a class="s1 pdr" href="{$basename}q=user&u=$value[touid]">{$touids[$value['touid']]}</a>
<!--
EOT;
}print <<<EOT
-->
						<span class="f14">$value[content]</span>
					</p>
					<p>
						<span class="gray1">$value[postdate]</span>
<!--
EOT;
if($groupid == 3 || $value[uid]==$winduid){print <<<EOT
-->
						<a href="{$basename}q=write&do=del&id=$value[id]" onclick="ajaxurl(this);getObj('write_$value[id]').parentNode.removeChild(getObj('write_$value[id]'));return false;">删除</a>
<!--
EOT;
}print <<<EOT
-->
					</p>
			<div id="com_write_$value[id]" class="write-reply">
				<a style="cursor: pointer;" class="flatcmt-get" onclick="javascript:showCommList('write','$value[id]','com_write_$value[id]',this)">回复({$value[c_num]})</a>
			</div>
				</dd>
			</dl>
<!--
EOT;
}} else {print <<<EOT
-->
			<dl>
				<dd class="cc">
					<p>
						暂无记录
					</p>
				</dd>
			</dl>
<!--
EOT;
}print <<<EOT
-->
		</div>$pages
	</div>
</div></div>
<script language="JavaScript" src="mode/o/js/comment.js"></script>
<!--
EOT;
?>-->