<!--<?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>
						<form method="post" action="{$basename}q=write&do=post" onsubmit="submitwrite(this);return false;">
						<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><span id="showtosign">&nbsp;<input id="writetosign" type="checkbox" name="tosign" value="1" checked="checked">&nbsp;同步个性签名</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='想说点什么?';}" onfocus="if(this.value=='想说点什么?'){this.value='';}" />
								<span class="status-co"></span>
							</div>
							<div id="writepost" class="fl" style="padding:0 1px; margin-left:.3em;">
								<input type="button" value=" 发布 " class="bt" onclick="submitwrite(this.form)"/>
							</div><div class="c"></div>
							<div style="padding:.3em 0">
								&nbsp;<a href="{$basename}q=photos&a=upload">发照片</a> &nbsp; <a href="javascript:;" onclick="return pwForumList(false,true);" style="cursor:pointer;">论坛发贴</a> &nbsp; <a href="{$basename}q=share">分享东东</a>
							</div>
						</div></form>
					</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(o) {
	if (getObj('writetext').value == '' || getObj('writetext').value == '想说点什么?') {
		showDialog('error','记录内容必须在3～200个字节之间');
		return false;
	}
	ajax.submit(o);
	return true;
}
</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 img">
<!--
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&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="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>
<!--
EOT;
if (!empty($mfriends)) {
print <<<EOT
-->
			<div class="home-sider-item cc">
				<h3 class="b">可能认识</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 onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$value[uid]')" style="cursor: pointer;" title="加为好友"><img src="$imgpath/$stylepath/u-adf.gif" /></a>&nbsp;<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 class="home-sider-item cc">
				<h3 class="b">{hot_title_home}</h3>
				<div class="u-postlist-s">
				<style>.u-postlist-s li{ padding-left:.5em;width:96%}</style>
					<ul class="cc">
					<pw id="hot_title_home" name="论坛热门" stamp="subject" num="10"/>
					<loop>
						<li>
							<span class="fl">
								<a href="{url}" class="blue">{title,30}</a>
							</span>
							<span class="fr">
								{replies}个回复
							</span>
						</li>
					</loop>
					</ul>
				</div>
			</div>
			<div class="c"></div>
			<div class="home-sider-item cc">
				<h3 class="b">{hot_forum_home}</h3>
				<div class="c"></div>
				<div class="listTable" style="margin:.5em 0">
					<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;
?>-->