<!--<?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=$u"><img src="$faceimg" class="portrait-m"/></a></td>
                    <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;padding-left:0;width:600px;">
							<ul>
<!--
EOT;
if($u == $winduid){
print <<<EOT
-->

								<li id="see_friend"><a href="{$basename}q=$q&see=friend">好友最新分享</a></li>
								<li id="see_self"><a href="{$basename}q=$q&see=self">我的分享</a></li>
								<li id="see_favor"><a href="{$basename}q=$q&see=favor">私有收藏</a></li>
<script language="JavaScript">
setCurrent('see_$see','see_self','current');
</script>
<!--
EOT;
}else{
$friendHeaderGuide = creatFriendsHeader($u);
print <<<EOT
-->
	$friendHeaderGuide
<!--
EOT;
}print <<<EOT
-->
							</ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
<div class="wrapB cc mt8">
<div class="contentB cc fl">
<!--
EOT;
if($count){print <<<EOT
-->
	<div class="pdD boxA mb8">&nbsp;共&nbsp;{$count}&nbsp;条</div>
	<div class="list-dlA list-dlA-A" style="overflow:hidden">
<!--
EOT;
foreach($shares as $value){
if($value[uid]==$winduid){
	$author = '你';
}else{
	$author = "<a href=\"{$basename}q=user&u=$value[uid]\" class=\"b blue\">$value[username]</a> ";
}print <<<EOT
-->
		<dl class="cc" id="share_{$value[id]}">
<!--
EOT;
$ddclass = 'title2';
if($value[face]){
$ddclass = 'title1';
print <<<EOT
-->
			<dt class="fl"><img src="$value[face]" /></dt>
<!--
EOT;
}print <<<EOT
-->
			<dd class="$ddclass">
				<p class="boxE" style="padding:5px 0 5px 10px;">				
					<span class="fr"><a class="a-reply" style="margin-right:10px" href="{$basename}q=$q&see=recommend&id=$value[id]" onclick="return ajaxurl(this,'read_$read[lou]');">推荐<span>+</span></a></span>
					$author{$value[type_name]} <span class="gray small">$value[postdate]</span>
<!--
EOT;
if($winduid==$value[uid] || $groupid==3){print <<<EOT
-->
					<a onclick="pwConfirm('是否确认删除',this,function(){delShare('$value[id]')})" style="cursor: pointer;" class="o-del gray">删除</a>
<!--
EOT;
}print <<<EOT
-->	
				</p>
<script language="JavaScript">
function ajaxurl(o) {
	read.obj = o;
	ajax.send(o.href,'',ajax.get);
	return false;
}
</script>
				<p class="f14 blue b">
<!--
EOT;
if($value[type]=='video'){print <<<EOT
-->
					<img title="播放" style="cursor: pointer;" src="$pwModeImg/share_v.png" 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="$pwModeImg/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="$pwModeImg/musicplay.gif" onclick="javascript:showShare('$value[type]','$value[link]',this,'$value[id]')"/>
<!--
EOT;
}elseif(in_array($value[type],array('user','group'))){print <<<EOT
-->
					<a href="$value[link]"><img src="$value[image]" width="100"/></a>
<!--
EOT;
}elseif(in_array($value[type],array('photo','album'))){print <<<EOT
-->
					<a href="$value[link]"><img src="$value[image]" width="100"/></a>
<!--
EOT;
}print <<<EOT
-->
					$value[title]
				</p>
<!--
EOT;
if($value[descrip]){print <<<EOT
-->
				<p class="text">$value[descrip]</p>
<!--
EOT;
}print <<<EOT
-->
				<div id="com_share_$value[id]">
					<p class="mt8">
						<a style="cursor: pointer;" onclick="javascript:showCommList('share','$value[id]','com_share_$value[id]',this)">回复({$value[c_num]})</a>
					</p>
				</div>
			</dd>
		</dl>
<!--
EOT;
}print <<<EOT
-->
	</div>$pages
<!--
EOT;
}else{print <<<EOT
-->
<p class="text p10">暂无分享信息</p>
<!--
EOT;
}print <<<EOT
-->
</div>

	<div class="sidebarB1 fr cc">
<!--
EOT;
if($u==$winduid){print <<<EOT
-->
		<div class="boxA bgA pr pdD mb8 cc"><span class="cirA1"></span><span class="cirA2"></span><span class="cirA3"></span><span class="cirA4"></span>
			<form action="{$basename}q=sharelink" method="post" name="shareform">
				<h2 class="blue b pdD">分享网页、视频、音乐</h2>
				<div class="mb8 cc">
					<div class="pdD">
						链接：<input type="text" class="input" name="link" value="http://" tabindex="1" style="width:95%" />
					</div>
					<div class="pdD">
						描述：<textarea rows="3" id="descrip" name="descrip" tabindex="2" style="width:95%"  /></textarea>
						<span id="descrip_warn" class="gray fr" style="margin-right:5px;">限 300 字节</span>
					</div>

					<input type="hidden" name="ifhidden" value='1' align="middle" />

					<div class="pdD">
						<input type="button" class="bt3" value="分 享" tabindex="3" onclick="postShare(0);"/>
						<input type="button" class="bt" value="收藏为私有" tabindex="4" style="_padding:0;" onclick="postShare(1);" />
					</div>
				</div>
			</form>
		</div>
		<div class="boxA bgA pr pdD cc">
			<span class="cirA1"></span>
			<span class="cirA2"></span>
			<span class="cirA3"></span>
			<span class="cirA4"></span>
			<h2 class="blue b pdD">支持直接播放的视频网站有：</h2>
			<div class="c"></div>
			<div class="pdD">
			Youtube、优酷、酷6、新浪视频、搜狐视频。</div>
		</div>
<!--
EOT;
}print <<<EOT
-->
		<div class="boxA bgA pr pdD mt8 cc">
			<span class="cirA1"></span><span class="cirA2"></span><span class="cirA3"></span><span class="cirA4"></span>
			<h2 class="black b pdD">分类</h2>
			<div class="c"></div>
			<div class="list-liA list-liA1 bdtA">
				<ul>
					<li><a href="{$thisbase}">全部</a></li>
					<li><a href="{$thisbase}type=user">用户</a></li>
<!--
EOT;
if($db_dopen){print <<<EOT
-->
					<li><a href="{$thisbase}type=diary">日志</a></li>
<!--
EOT;
}print <<<EOT
-->
					<li><a href="{$thisbase}type=photo">照片</a></li>
					<li><a href="{$thisbase}type=album">相册</a></li>
					<li><a href="{$thisbase}type=group">群组</a></li>
					<li><a href="{$thisbase}type=video">视频</a></li>
					<li><a href="{$thisbase}type=music">音乐</a></li>
					<li><a href="{$thisbase}type=flash">flash</a></li>
					<li><a href="{$thisbase}type=web">网页</a></li>
				</ul>
			</div>
		</div>
<script language="JavaScript">
function postShare(type){
	var form = document.shareform;
	var link = form.link.value;
	var preg = /^http\:\/\/.{4,255}$/;
	if (!preg.test(link)) {
		showDialog('error','链接地址出错，链接地址必须已：http://开头');
		return false;
	}
	form.ifhidden.value = type;
	form.submit();
}
var charset = '$db_charset';
initCheckTextNum('descrip','descrip_warn',300);
</script>
</div>
</div></div>
<script language="javascript" src="mode/o/js/share.js"></script>
<script language="JavaScript" src="mode/o/js/comment.js"></script>
<!--
EOT;
?>-->