<!--<?php
include_once PrintEot('m_header');print <<<EOT
-->
<!--[if IE 6]>
<style>
.fixed {right:0;left:0;bottom:0;position: fixed;z-index:200}
#iefixed {margin: 0; overflow: hidden; zoom:1;height: 1px}
</style>
<script type="text/javascript">
function _fixBackground(){
	var body = document.body;
	var BLANK_GIF;
	if (body.currentStyle.backgroundAttachment != "fixed") {
		if (body.currentStyle.backgroundImage == "none") {
			body.runtimeStyle.backgroundImage = "url("+BLANK_GIF+")"; // dummy
			body.runtimeStyle.backgroundAttachment = "fixed";
		}
	}
}
window.onload = function(){
	_fixBackground();
}
</script>
<style type="text/css">
.fixed{
position: absolute;
bottom: auto;
clear: both;
width:expression(document.getElementById('iefixed').clientWidth);
left:expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ? documentElement.scrollLeft : document.body.scrollLeft););
top:expression(eval(document.compatMode &&
document.compatMode=='CSS1Compat') ?
documentElement.scrollTop
+(documentElement.clientHeight-this.clientHeight)
: document.body.scrollTop
+(document.body.clientHeight-this.clientHeight));}
</style>
<div id="iefixed"></div><![endif]-->
<div class="infobox cc" style="height:77px;">
<table border="0" cellpadding="0" cellspacing="0" class="vt">
	<tr>
		<td>
			<div class="p10 f14 b">随便看看</div>
			<div id="person-nav" style="position:absolute;bottom:-1px;_bottom:-2px;padding-left:0;width:600px;">
				<ul>
					<li id="b_0"><a href="{$basename}q=browse">社区热门</a></li>
					<li id="b_1"><a href="{$basename}q=browse&tab=1">记录</a></li>
					<li id="b_2"><a href="{$basename}q=browse&tab=2">相册</a></li>
					<li id="b_3"><a href="{$basename}q=browse&tab=3">分享</a></li>
					<li id="b_5"><a href="{$basename}q=browse&tab=5">群组</a></li>
					<li id="b_4"><a href="{$basename}q=browse&tab=4">最新帖子</a></li>
					<li id="b_6"><a href="{$basename}q=browse&tab=6">最新回复</a></li>
					<!-- <li id="b_6"><a href="{$basename}q=browse&tab=6">邻居</a></li> -->
				</ul>
			</div>
</td></tr></table>
</div>
<div class="c"></div>
<div  class="wrapB cc">
	<div class="contentC cc fl">
<script language="JavaScript">
setCurrent('b_{$tab}','b_0','current');
</script>
<!--
EOT;
if(!$tab){print <<<EOT
-->
		<div class="cc">
			<div class="fl cc" style="padding:1.5em 0 .8em;width:280px;">
				<div class="boxB pr cc">
<!--flash-->
<style>
.pwSlide {padding:4px;background:#fff;position:relative;width:270px;height:180px;overflow:hidden;}
.pwSlide a:hover{text-decoration:none;z-index:1;}
.pwSlide a img{position:absolute;}
.pwSlide h2 {width:270px;height:33px;line-height:33px;position:absolute;bottom:0px;z-index:3;font-size:14px;overflow:hidden;padding:0 5px;background:#fff;}
.pwSlide ul {z-index:2;position:absolute;right:8px;bottom:40px;}
.pwSlide ul li {float:left;width:18px;height:13px;line-height:15px;text-align:center;margin-left:1px;background: url($imgpath/focus1.gif) no-repeat;}
.pwSlide ul li a {display:block;width:18px;height:13px;font-size:10px;font-family:Tahoma;color:#FFFFFF;}
.pwSlide ul li a:hover, .pwSlide ul li a.sel {color:#fff;text-decoration:none;background: url($imgpath/focus2.gif) no-repeat;}
</style>

				<div id="pwSlidePlayer" class="pwSlide" onmouseover="pwSlidePlayer('pause');" onmouseout="pwSlidePlayer('goon');">
<!--
EOT;
$tmpCount = 0;
foreach ($newPics as $key=>$value) {
$tmpCount++;
print <<<EOT
-->
					<div id="Switch_$key" style="display:none;">
						<a href="$value[url]"><img src="$value[image]" title="$value[title]" width="270" /></a>
                        <h2><a href="$value[url]">$value[title]</a></h2>
					</div>
<!--
EOT;
}print <<<EOT
-->
					<ul id="SwitchNav"></ul>
				</div>
				<div class="c"></div>
				<script type="text/javascript" src="js/picplayer.js"></script>
				<script language="JavaScript">pwSlidePlayer('play',1,$tmpCount);</script>
				</div>
			</div>
			<div class="fl cc" style="padding:1.5em 0; width:60%">

				<div class="u-postlist-s">
					<ul>
<!--
EOT;
foreach($newThreads as $value){print <<<EOT
-->
						<li class="gray1"><a href="{$basename}q=user&u=$value[authorid]"><img src="$pwModeImg/nophoto.gif" class="portrait-s"/></a> &nbsp;<a href="" class="u-name">$value[author]</a> &nbsp;<a href="$value[url]" class="s2">$value[title]</a> &nbsp;{$value[replies]}个回复</li>
<!--
EOT;
}print <<<EOT
-->
					</ul>
				</div>
			</div>
		</div>
		<div class="contentC-main fl">
			<div class="boxB pr cc"><span class="cirB1"></span><span class="cirB2"></span><span class="cirB3"></span><span class="cirB4"></span>
				<h6 class="b pdD cc"><span class="fl">成员</span>  <span class="more fr"><a href="{$basename}q=friend">查看更多</a></span> </h6>
				<div class="list-img cc list-img-B">
					<ul>
<!--
EOT;
foreach($members as $value){print <<<EOT
-->
						<li><a href="$value[url]"><img src="$value[image]"  class="portrait-m"/></a>
							<p><a href="$value[url]">$value[title]</a></p>
						</li>
<!--
EOT;
}print <<<EOT
-->
					</ul>
				</div>
			</div>
			<div class="boxB pr cc mt8 mb8"><span class="cirB1"></span><span class="cirB2"></span><span class="cirB3"></span><span class="cirB4"></span>
				<h6 class="b pdD cc"><span class="fl">分享</span><span class="more fr"><a href="{$basename}q=share">查看更多</a></span></h6>
				<div class="list-dlA list-dlA-A cc p10">
<!--
EOT;
if($newShares){
foreach($newShares as $value){
if($value[uid]==$winduid){
	$author = '你';
}else{
	$author = "<a href=\"{$basename}q=user&u=$value[uid]\" class=\"b s1\">$value[username]</a> ";
}print <<<EOT
-->
		<dl class="cc" id="share_{$value[id]}">
<!--
EOT;
$ddclass = 'title2 bdbA';
if($value[face]){
$ddclass = 'title1 bdbA';
print <<<EOT
-->
			<dt class="fl"><img src="$value[face]" /></dt>
<!--
EOT;
}print <<<EOT
-->
			<dd class="$ddclass">
				<p class="boxE pdtb3">
					$author{$value[type_name]}<br /><span class="gray1 small">$value[postdate]</span>

				</p>
				<p class="f14 s1 b">
<!--
EOT;
if($value[type]=='video'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/vd.gif" class="vthumb" onclick="javascript:showShare('$value[host]','$value[hash]',this,'$value[id]')"/>
<!--
EOT;
}elseif($value[type]=='music'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}elseif($value[type]=='flash'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}print <<<EOT
-->
					$value[title]
				</p>
<!--
EOT;
if($value[descrip]){print <<<EOT
-->
				<p class="text">$value[descrip]</p>
<!--
EOT;
}print <<<EOT
-->
			</dd>
		</dl>
<!--
EOT;
}}else{print <<<EOT
-->
<p class="text mt8">暂无分享信息</p>
<!--
EOT;
}print <<<EOT
-->
		</div></div></div>
		<div class="contentC-side cc fr">
			<div class="boxB  pr cc"><span class="cirB1"></span><span class="cirB2"></span><span class="cirB3"></span><span class="cirB4"></span>
				<h4 class="pdD"> <span class="b">群组</span> <small><a href="{$basename}q=groups">所有群组</a></small> </h4>
				<div class="list-dlA list-dlA-C p10">
					<dl>
<!--
EOT;
foreach($reGroups as $value){print <<<EOT
-->
						<dd class="cc"> <img src="$value[cnimg]" class="fl pdr" width="60" /><a href="{$basename}q=group&cyid=$value[id]" class="f14 b s1  pdr">$value[cname]</a><br />
							<!-- <span class="s1">{$value[members]}成员</span><br /> -->
							{$value[members]}成员</dd>
<!--
EOT;
}print <<<EOT
-->
					</dl>
				</div>
			</div>
		</div>
<!--
EOT;
}elseif($tab == 1){print <<<EOT
-->
<div class="c"></div>
	<div class="cc" style="margin:.5em">
		<ul class="revert cc">
<!--
EOT;
foreach($newWrite as $value){print <<<EOT
-->
			<li><p class="f14"><a href="{$basename}q=user&u=$value[uid]"><img src="$value[icon]" class="portrait-s"/></a> <a href="{$basename}q=user&u=$value[uid]">$value[username]</a>: &nbsp;$value[content]<em>$value[postdate]</em></p></li>
<!--
EOT;
}print <<<EOT
-->
		</ul>
		<div class="c"></div>
	</div>
<!--
EOT;
}elseif($tab == 2){print <<<EOT
-->
		<div class="cc pdD mt8" style="margin-top:3em">
			<div class="table-list table-list-B">
<!--
EOT;
if (!empty($albumdb)) {
foreach ($albumdb as $key => $value) {print <<<EOT
-->
			<table cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td class="tac table-list-img"><a href="{$basename}q=photos&a=album&aid=$value[aid]"><img src="$value[lastphoto]" width="80" /></a></td>
					<td valign="top"><a href="{$basename}q=photos&a=album&aid=$value[aid]" class="f14 b s1 pdr">{$value[aname]}</a>
						<p class="text">
						<a href="{$basename}q=user&uid=$value[ownerid]">$value[owner]</a><br />
						<span class="gray1">$value[photonum]张照片|更新于 $value[lasttime]</span><br />
<!--
EOT;
if (isset($smphoto[$value['aid']])) {print <<<EOT
-->
						<span class="list-img2">
<!--
EOT;
foreach ($smphoto[$value['aid']] as $k => $v) {print <<<EOT
-->
						<a href="{$basename}q=photos&a=view&pid=$v[pid]"><img src="$v[path]" /></a>
<!--
EOT;
}print <<<EOT
-->
						</span>
						<a href="{$basename}q=photos&a=album&aid=$value[aid]">浏览更多&laquo;</a>
<!--
EOT;
}else{print <<<EOT
-->

						相册暂时没有照片
<!--
EOT;
}print <<<EOT
-->
						</p></td>
				</tr>
			</table>
<!--
EOT;
}} else {print <<<EOT
-->
		<table cellpadding="0" cellspacing="0" width="100%"><tr><td class="tac">暂时没有相册信息</td></tr></table>
<!--
EOT;
}print <<<EOT
-->

		</div>
	</div>

<!--
EOT;
}elseif($tab == 3){print <<<EOT
-->

			<div class="cc mt8 mb8" style="margin-top:3em">
				<div class="list-dlA list-dlA-A cc p10">
<!--
EOT;
if($newShares){
foreach($newShares as $value){
if($value[uid]==$winduid){
	$author = '你';
}else{
	$author = "<a href=\"{$basename}q=user&u=$value[uid]\" class=\"b s1\">$value[username]</a> ";
}print <<<EOT
-->
		<dl class="cc" id="share_{$value[id]}">
<!--
EOT;
$ddclass = 'title2 bdbA';
if($value[face]){
$ddclass = 'title1 bdbA';
print <<<EOT
-->
			<dt class="fl"><img src="$value[face]" /></dt>
<!--
EOT;
}print <<<EOT
-->
			<dd class="$ddclass">
				<p class="boxE pdtb3">
					$author{$value[type_name]}<br /><span class="gray1 small">$value[postdate]</span>

				</p>
				<p class="f14 s1 b">
<!--
EOT;
if($value[type]=='video'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/vd.gif" class="vthumb" onclick="javascript:showShare('$value[host]','$value[hash]',this,'$value[id]')"/>
<!--
EOT;
}elseif($value[type]=='music'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}elseif($value[type]=='flash'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="http://static.hainei.com/img/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}print <<<EOT
-->
					$value[title]
				</p>
<!--
EOT;
if($value[descrip]){print <<<EOT
-->
				<p class="text">$value[descrip]</p>
<!--
EOT;
}print <<<EOT
-->
			</dd>
		</dl>
<!--
EOT;
}}else{print <<<EOT
-->
<p class="text mt8">暂无分享信息</p>
<!--
EOT;
}print <<<EOT
-->
		</div></div>

<!--
EOT;
}elseif($tab == 4 || $tab == 6){print <<<EOT
-->
<div class="cc" style="margin-top:3em">
	<div class="table-list2">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--
EOT;
if (!empty($article)) {
foreach ($article as $key => $value) {print <<<EOT
-->
			<tr>
				<td>
					<a href="$value[url]" target="_blank" class="pdr">$value[title]</a>$value[postdate]<br />
					<a href="thread.php?fid=$value[fid]" target="_blank" class="gray1">{$forum[$value[fid]][cname]}</a>
				</td>
				<td><a href="{$basename}q=user&u=$value[authorid]">$value[author]</a></td>
				<td>$value[replies]/$value[hits]</td>
			</tr>
<!--
EOT;
}} else {print <<<EOT
-->
			<tr>
				<td>没有主题</td>
			</tr>
<!--
EOT;
}print <<<EOT
-->
		</table>
	</div>
</div>
<!--
EOT;
}elseif($tab == 5){print <<<EOT
-->
<div class="cc" style="margin-top:3em">
	<div class="table-list table-list-B">
<!--
EOT;
if (!empty($reGroups)) {
foreach ($reGroups as $key => $value) {print <<<EOT
-->
		<table cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td class="tac"><img src="$value[cnimg]" width="100" /></td>
				<td width="70%" valign="top"><a href="{$basename}q=group&cyid=$value[id]" class="f14 b s1 pdr">{$value[cname]}</a><p class="text">分类：{$o_classdb[$value[classid]]}<br />人数：<span class="s2">$value[members]</span><br />简介：$value[descrip]</p></td>
				<td width="20%" class="tar" valign="top"><a href="{$basename}q=group&cyid=$value[id]">浏览此群组</a><br /></td>
			</tr>
		</table>
<!--
EOT;
}} else {print <<<EOT
-->
		<p class="gray2">您还没有加入任何群组！</p>
<!--
EOT;
}print <<<EOT
-->
</div></div>
<!--
EOT;
}print <<<EOT
-->
	</div>
	<div class="sidebarC cc fr"></div></div></div>
<script language="javascript" src="mode/o/js/share.js"></script>
<!--
EOT;
?>-->