<!--<?php
include_once PrintEot('m_header');
print <<<EOT
-->
<div class="bgA cc">
<div class="wrapB cc">
	<div class="contentB">
		<div id="home-state-editor">
			<table border="0" class="vt" style="table-layout:fixed; width:100%">
				<tr>
					<td width="60">
						<a href="{$basename}q=user"><img src="$faceurl" class="portrait-m" /></a>
					</td>
					<td>
						<div style="padding-left:1em">
							<div style="padding:0 0 .4em">
<!--
EOT;
if ($_G['allowhonor']) {print <<<EOT
-->
								<span id="honor">
<!--
EOT;
if ($winddb['honor']) {print <<<EOT
-->
									{$winddb[honor]}
<!--
EOT;
} else {print <<<EOT
-->
									您还没有设置个性签名
<!--
EOT;
}print <<<EOT
-->
								</span>
<!--
EOT;
}print <<<EOT
-->
							</div>
							<div class="c"></div>
							<div class="fl boxB pr" style="padding:0 1px">
								<input type="text" class="ip" style="border-color:#fff; width:400px" id="writetext" name="text" 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,ajax.guide);" />
							</div><div class="c"></div>
							<div style="padding:.3em 0">
								&nbsp;<a href="{$basename}q=photos&a=upload">发照片</a> &nbsp; <a onclick="read.open('menu_post_nav','post_nav',2);" style="cursor:pointer;" id="post_nav">论坛发贴</a> &nbsp; <a href="{$basename}q=share">分享东东</a>
							</div>
							$head_postlist
						</div>
					</td>
				</tr>
			</table>
		</div>
		<div id="all-status">
			<div id="status-cate">
				<div class="tabA">
					<ul>
						<li id='home_default'><a href="{$basename}q=home">好友近况</a></li>
						<li id='home_write'><a href="{$basename}q=home&f_type=write">记录</a></li>
						<li id='home_photo'><a href="{$basename}q=home&f_type=photo">相册</a></li>
						<li id='home_share'><a href="{$basename}q=home&f_type=share">分享</a></li>
						<li id='home_colony'><a href="{$basename}q=home&f_type=colony">群组</a></li>
						<li id='home_post'><a href="{$basename}q=home&f_type=post">帖子</a></li>
						<li id='home_friend'><a href="{$basename}q=home&f_type=friend">结交动态</a></li>
					</ul>
				</div>
			</div>
<script language="JavaScript">
setCurrent('home_$f_type','home_default','current');
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>
			<div class="c"></div>
			<div id="statuslist-home" class="cc pdD">
<!--
EOT;
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&u=$value[uid]">$value[username]</a>&nbsp;$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="javascript: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
-->
<script language="JavaScript" src="js/json.js"></script>
<script language="JavaScript" src="mode/o/js/comment.js"></script>
<!--
EOT;
} else { print <<<EOT
-->
				<dl class="status-item">
					<dd class="status-info p10">
						暂时没有好友动态
					</dd>
				</dl>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>
	</div>
	<div class="sidebarB">
		<div class="boxB bgB pr cc" style="margin-top:1em">
			<span class="cirA1"></span>
			<span class="cirA2"></span>
			<span class="cirA3"></span>
			<span class="cirA4"></span>
			<div class="home-sider-item">
				<h3 class="b">我的应用</h3>
				<div class="home-applist ptb1 xl-app">
					<a href="{$basename}q=write" class="i-k">记录</a>
					<a href="{$basename}q=article" class="i-a">帖子</a>
					<a href="{$basename}q=photos" class="i-j">相册</a>
					<a href="{$basename}q=groups" class="i-f">群组</a>
					<a href="{$basename}q=friend" class="i-d">好友</a>
					<a href="{$basename}q=share" class="i-l">分享</a>
				</div>
				<div class="c"></div>
				<div class="home-applist ptb1 bdt1">

				</div>
			</div>

			<!--<div class="home-sider-item">
				<h3>
					<span class="fl">最近来访</span>
					<a href="" class="gray1 fr">显示更多 <small class="gray2">▼</small></a>
				</h3>
				<div class="c"></div>
				<div style="margin:1em 0">
					<dl class="member100">
						<dd><a href=""><img src="$pwModeImg/portrait.jpg" class="portrait-m"/></a></dd>
						<dt><a href="" class="u-name">heiyo</a></dt>
					</dl>
					<dl class="member100">
						<dd><a href=""><img src="$pwModeImg/portrait.jpg" class="portrait-m"/></a></dd>
						<dt><a href="" class="u-name">heiyo</a></dt>
					</dl>
					<dl class="member100">
						<dd><a href=""><img src="$pwModeImg/portrait.jpg" class="portrait-m"/></a></dd>
						<dt><a href="" class="u-name">heiyo</a></dt>
					</dl>
					<div class="c"></div>
				</div>
			</div>-->

<!--
EOT;
if (!empty($mfriends)) {
print <<<EOT
-->
			<div class="home-sider-item cc">
				<h3>
					<span class="fl b">可能认识</span>
				</h3>
				<div class="c"></div>
				<div style="margin:1em 0">
<!--
EOT;
foreach ($mfriends as $value) {
if ($value[uid] == $winduid) continue;
print <<<EOT
-->
					<dl class="member100 height90">
						<dd><a href="{$basename}q=user&u=$value[uid]" target="_blank"><img src="$value[face]" class="portrait-m"/></a></dd>
						<dt><a href="{$basename}q=user&u=$value[uid]" target="_blank" class="u-name">$value[username]</a></dt>
					</dl>
<!--
EOT;
}print <<<EOT
-->
					<div class="c"></div>
				</div>
			</div>
<!--
EOT;
}print <<<EOT
-->
			<div>
				<div class="pdD b">{hot_title_home}</div>
				<div class="u-postlist-s">
					<ul>
					<pw id="hot_title_home" name="论坛热门" stamp="subject" num="10"/>
					<loop>
						<li class="gray1">
							<span class="fl">
								<a href="{url}" class="s2">{title,30}</a>
							</span>
							<span class="fr">
								{replies}个回复
							</span>
						</li>
					</loop>
					</ul>
				</div>
			</div>
			<div class="c"></div>
			<div class="bdt1 bdtA">
				<div class="pdD b">{hot_forum_home}</div>
				<div class="c"></div>
				<div class="listTable">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" >
						<tbody id="info_forum_tpost">
						<pw stamp="forum" name="今日版块排行" id="hot_forum_home" />
						<loop>
							<tr>
								<td class="forum-name">
									<div>
										<a href="{url}">
											{title}
										</a>
									</div>
								</td>
								<td class="forum-count">
									{value}
								</td>
							</tr>
						</loop>
						</tbody>
					</table>
				</div>
			</div>
			<div class="c"></div>
        	<div class="c"></div>
		</div>
	</div>
	</div>
</div></div>
<!--
EOT;
?>-->