<div class="content">
<?php
global $db;
$sql1="Select * from s_pic where S_ID=$id";
$row1=$db->getrow($sql1);
$rowu=$db->getrow("Select * from s_pic where S_ID<$id and s_user='".$chsh_web_name."' order by S_ID desc");
if($rowu){
$slink=getuserpic($chsh_web_name,$rowu['S_ID']);
}else{
$slink="#";
}
$rowd=$db->getrow("Select * from s_pic where S_ID>$id and s_user='".$chsh_web_name."' order by S_ID asc");
if($rowd){
$xlink=getuserpic($chsh_web_name,$rowd['S_ID']);
}else{
$xlink="#";
}
$picnum=$db -> num_rows($db -> query("select * from s_pic where S_user='".$chsh_web_name."'"));
?>
	<div class="main">
		<div class="box photo photo_list">
			<h3 id="img"><a href="<?php echo S_SiteDomain?>/user/space.php?ac=pic" target="_blank">管理相册</a><a href="<?php echo userlink('pic',$u)?>" class="h3_a1">我的相册</a>-<?php echo $u?></h3>
			<div class="page1"> <img onload="DrawImage(this,610,700);"  src="images/arrow_left.gif" /><a href="<?php echo $slink?>">上一张</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共<?php echo $picnum?>张&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?php echo $xlink?>">下一张</a><img onload="DrawImage(this,610,700);"  src="images/arrow_right.gif" /></div>
			<div class="img_x"><a href="<?php echo $xlink?>" title="下一张"><img onload="DrawImage(this,610,700);"  src="<?php echo $row1["S_Url"]?>"></a></div>
			<p class="tex_center"><span><?php echo $u?></span>
			<em>上传时间：<?php echo $row1['S_Addtime']?>&nbsp;&nbsp;</em><a href="<?php echo $row1["S_Url"]?>" target="_blank">查看原图</a><br />
			<span>相片介绍：</span><?php echo $u?>
			</p>			
		</div>
	</div>
	<div class="right">
	  
<div class="rig user">  
	<h3><a href="javascript:CopyUrl('<?php echo userlink('index',$u)?>','复制地址成功,您可以发给你的好友分享!');">推荐</a><span><?php echo userlink('index',$u)?></span></h3>
	<div class="user_info">
		<p class="user_pic"><img alt="用户头像" src="<?php echo $chsh_web_logo?>"  onerror="javascript:this.src='images/none.gif'" /></p>
		<ul class="people">
            <li>
            <div class="number"><?php echo getusercount($chsh_web_name,'hy')?></div>
            <a href="<?php echo userlink('friend',$u)?>" target="_blank">关注</a>
            </li>
            <li>
            <div class="number"><?php echo getusercount($chsh_web_name,'fs')?></div>
            <a href="<?php echo userlink('fs',$u)?>" target="_blank">粉丝</a>
            </li>
            <li class="dele">
            <div class="number"><?php echo $chsh_web_hits?></div>
            <a href="javascript:;">人气</a>
            </li>
    </ul>
    <div class="about" id="about"><a href="javascript:;" onclick="AddFriend('<?php echo $u?>');" class="see">+ 关注</a><a href="<?php echo userlink('book',$u)?>" class="rep">留言</a></div>
		<h2><?php echo $chsh_web_nicheng?></h2>
		<div class="medal">
		    <ul><li><img src="images/Special/<?php echo $vip?>.gif" border="0" title="VIP会员"></li><li><img src="images/Special/<?php echo $realname?>.gif" border="0" title="实名认证"></li><li><img src="images/Special/<?php echo $musician?>.gif" border="0" title="音乐人"></li><li><img src="images/Special/<?php echo $recommend?>.gif" border="0" title="推荐歌手"></li><li><img src="images/Special/<?php echo $star?>.gif" border="0" title="明星会员"></li></ul>
		    <ul></ul>
		    <p class="user_mode">
			    会员ID： <?php echo $chsh_web_userid?><br />
			    来自：<?php echo $chsh_web_city?>&nbsp;&nbsp;
                            当前：<?php echo $chsh_web_zx?><br />
			    注册时间：<?php echo $chsh_web_addtime?><br />
			    上次登录：<?php echo $chsh_web_logtime?>
            </p>
		</div>
	</div>
</div>
        <div class="rig intro">
	        <h3><a href="javascript:;">更多&gt;&gt;</a> 个人介绍</h3>
	        <p><?php echo $chsh_web_qm?></p>
        </div>
</div>
</div>
