<!--<?php
include_once uTemplate::PrintEot('header');
include_once uTemplate::PrintEot('space_appleft');
print <<<EOT
-->
<script type="text/javascript">
var space_uid = '$uid';
var transmitAction = 'my';

function resizeImg(ele){
	var a=ele;
	if(a.width<30||a.height<30){
		setTimeout(function(){
			resizeImg(a);
		},10)
		return false;
	}
	if(a.width>100){
		
			a.width = 100;
			
		} else if(a.height>100){
			a.height=100;
		}
}
</script>
<script type="text/javascript" src="js/pw_weibo.js"></script>
<script type="text/javascript" src="apps/weibo/js/post.js"></script>
<div class="sideD">
<!--
EOT;
if(!$indexRight && $indexValue =='1'){print <<<EOT
-->
<div class="boxA">
	<table width="100%">
		<tr><td height="400">
			<div class="space_msg"><img src="u/images/space/report.png" align="absmiddle" />由于对方的隐私设置，容许好友可见！立即 <a href="$db_bbsurl/pw_ajax.php?action=addfriend&touid={$space['uid']}" onclick="return ajaxurl(this);">加为好友</a></div>
		</td></tr>
	</table>
</div>
<!--
EOT;
}elseif(!$indexRight && $indexValue =='2'){print <<<EOT
-->
<div class="boxA">
	<table width="100%">
		<tr><td height="400">
			<div class="space_msg"><img src="u/images/space/report.png" align="absmiddle" />对方设置了隐私，您没有权限查看</div>
		</td></tr>
	</table>
</div>
<!--
EOT;
}else{print <<<EOT
-->
	<div class="boxA">
		<h2><span>新鲜事</span></h2>
		<div class="cc">
<!--
EOT;
if ($weiboList) {
	include_once PrintEot("writesmile");
	require_once uTemplate::printEot('weibo_model');
	$weiboModelTemplate->photoPop();
	$do=='detail' && $weiboModelTemplate->showPhotoOnload(true);
print <<<EOT
-->
			<div class="conFeed" id="weiboFeed">
<!--
EOT;
	foreach ($weiboList as $key => $value) {
		$method = $weiboService->getViewType($value['type']);
		$weiboModelTemplate->$method($value);
	}
	if ($count > $perpage) {print <<<EOT
-->
		<div class="cc p10">$pages</div>
<!--
EOT;
	}
    if($do == 'detail' && $indexRight){
    if($mid && $weiboList[0]['content'] == '' && !$weiboList[0]['type']){
print <<<EOT
-->
	<div class="f14 tac p15">此条新鲜事已删除！</div>
<!--
EOT;
    }elseif($isGM || $weiboList['authorid']=$GLOBALS['winduid'] ) {
print <<<EOT
-->
<script type="text/javascript">
var transmitAction = 'reloaddelay';
setTimeout(function(){getcomments('comment','{$value['mid']}','');},300);
</script>
<!--
EOT;
}}print <<<EOT
-->
			</div>
<!--
EOT;
} else {print <<<EOT
-->
			<div class="f14 tac p15">这家伙好懒，一条新鲜事都没留下！</div>
<!--
EOT;
}print <<<EOT
-->
		</div>
    </div>
<!--
EOT;
}print <<<EOT
-->
</div>
<!--
EOT;
require_once(uTemplate::printEot('footer'));
?>-->