<!--<?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{
print <<<EOT
-->
								<li><a href="{$basename}q=write&u=$u">記錄</a></li>
								<li><a href="{$basename}q=photos&u=$u">相冊</a></li>
								<li class="current"><a href="{$basename}q=share&u=$u">分享</a></li>
								<li><a href="{$basename}q=article&u=$u">帖子</a></li>
								<li><a href="{$basename}q=friend&u=$u">好友</a></li>
<!--
EOT;
}print <<<EOT
-->
							</ul>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>


<div class="wrapB cc mt8">

<div class="contentC cc fl">
<div class="contentC-main fl">
	<div class="cc">
</div>
<!--
EOT;
if($count){print <<<EOT
-->
	<div class="pdD">共{$count}條</div>
	<div class="list-dlA list-dlA-A">
<!--
EOT;
foreach($shares 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">
<!--
EOT;
if($winduid==$value[uid] || $groupid==3){print <<<EOT
-->
					<a onclick="pwConfirm('是否確認刪除',this,function(){delShare('$value[id]')})" style="cursor: pointer;" class="a-reply fr ">刪除<span>X</span></a>
<!--
EOT;
}print <<<EOT
-->
					$author{$value[type_name]} <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="$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;
}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>
						<a style="cursor: pointer;" class="flatcmt-get" 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="contentC-side fr cc">
		<div class="boxA bgA pr pdD mb8"><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">
				<h4 class="s1 b pdD">分享網頁、視頻、音樂</h4>
				<div class="mb8 cc">
					<div class="pdD">
						鏈接︰<input type="text" class="txa" name="link" value="" tabindex="1" style="width:95%" />
					</div>
					<div class="pdD">
						描述︰<textarea rows="3" class="txa" name="descrip" tabindex="2" style="width:95%"  /></textarea>
					</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" onclick="postShare(1);" />
					</div>
				</div>
			</form>
		</div>
		<div class="boxA bgA pr pdD">
			<span class="cirA1"></span>
			<span class="cirA2"></span>
			<span class="cirA3"></span>
			<span class="cirA4"></span>
			<h4 class="s1 b pdD">我們支持的視頻網站有︰</h4>
			Youtube、優酷、酷6、新浪視頻、搜狐視頻。
		</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();
}
</script>

</div>
<div class="sidebarC cc">

</div>

</div></div>
<script language="javascript" src="mode/o/js/share.js"></script>
<script language="JavaScript" src="mode/o/js/comment.js"></script>
<!--
EOT;
?>-->