<?php include_once('web_left.php');?>
    <td width="493" align="left"><table border="0" cellpadding="0" cellspacing="0" class="righttable">
        <tr> 
          <td class="righttable01" align="left"><img src="images/web/dl_01_02.jpg" width="9" height="9" align="absmiddle"> 
            <strong>我的舞曲</strong></td>
          <td align="right" class="righttable01"><a href="<?php echo userlink('music',$chsh_web_name)?>" target=_blank><img src="images/web/more_01.gif" width="38" height="14" border="0" align="absmiddle"></a>&nbsp;</td>
        </tr>
        <tr align="left" valign="top"> 
          <td height="150" colspan="2" class="righttable02">
		  
		   <!--我的舞曲开始-->
	<table width="100%" border="0" cellpadding="0" cellspacing="0" id="list">
<?php
	global $db;
	$sql="select * from s_video where S_Direct='".$chsh_web_name."' and S_IsHide=0 order by s_id desc";
	$rs=$db->query($sql);
	$num=$db->num_rows($rs);
	if($num==0) echo "";
	$nums=10;
	if($num<$nums){
		$j=$num;
	}else{
		$j=$nums;
	}
	for($i=0;$i<$j;$i++){
		$row=$db->fetch_array($rs);
?>
        <tr> 
          <td width="5%"><?php echo ($i+1)?>.</td>
          <td width="63%"><a href="<?php echo S_SiteDomain.LinkUrl("s_video",$row['S_ClassID'],1,$row['S_ID'])?>" target=_blank><font color="<?php echo $row["S_Color"]?>"><?php echo $row["S_Name"]?></font></a></td>
          <td width="15%"><?php echo datetime($row["S_AddTime"])?></td>
          <td width="17%"><a href="do.php?ac=fav&id=<?php echo $row["S_ID"]?>" target="_blank">收藏</a>&nbsp;&nbsp;<a href="<?php echo S_SiteDomain.S_SitePath?>down.php?id=<?php echo $row["S_ID"]?>"  target="_blank">下载</a></td>
        </tr>
<?php
}
?>
       </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="8"></td>
              </tr>
            </table>
	 <!--我的舞曲结束-->
		  </td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="8"></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="righttable">
        <tr> 
          <td class="righttable01" align="left"><img src="images/web/dl_01_02.jpg" width="9" height="9" align="absmiddle"> 
            <strong>我的文章</strong></td>
          <td align="right" class="righttable01"><a href="<?php echo userlink('blog',$chsh_web_name)?>" target=_blank><img src="images/web/more_01.gif" width="38" height="14" border="0" align="absmiddle"></a>&nbsp;</td>
        </tr>
        <tr valign="top"> 
          <td height="150" colspan="2" class="righttable02">
		  <!--日记开始-->
<?php
	global $db;
	$sql="select * from s_article where S_Author='".$chsh_web_name."' order by s_id desc";
	$rs=$db->query($sql);
	$num=$db->num_rows($rs);
	if($num==0) echo "";
	$nums=2;
	if($num<$nums){
		$j=$num;
	}else{
		$j=$nums;
	}
	for($i=0;$i<$j;$i++){
		$row=$db->fetch_array($rs);
?>
		  <table width="98%" border="0" cellpadding="5" cellspacing="0" class="righttable06">
              <tr>
                <td height="25"><a href="<?php echo S_SiteDomain.LinkUrl("s_article",$row['S_ClassID'],1,$row['S_ID'])?>" target=_blank><strong><?php echo $row['S_Name']?></strong></a></td>
              </tr>

              <tr>
                <td height="25"><?php echo substr($row['S_Content'],0,50)?></td>
              </tr>
              <tr>
                <td height="25"><a href="<?php echo S_SiteDomain.LinkUrl("s_article",$row['S_ClassID'],1,$row['S_ID'])?>" target=_blank>查看详细内容...</a></td>
              </tr>
              <tr>
                <td height="25" align="right" class="righttable05">添加时间：<?php echo $row['S_AddTime']?>|查看次数：<?php echo $row['S_Hits']?></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="8"></td>
              </tr>
            </table>
<?php
}
?>
		  </td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="8"></td>
        </tr>
      </table>
      <table border="0" width="100%" cellpadding="0" cellspacing="0" class="righttable">
	   <tr>
	    <td>
	  <table border="0" cellpadding="0" cellspacing="0" class="righttable">
       
        <tr> 
          <td class="righttable01" align="left"><img src="images/web/dl_01_02.jpg" width="9" height="9" align="absmiddle"> 
            <strong>我的好友</strong></td>
          <td align="right" class="righttable01"><a href="<?php echo userlink('friend',$chsh_web_name)?>" target=_blank><img src="images/web/more_01.gif" width="38" height="14" border="0" align="absmiddle"></a>&nbsp;</td>
        </tr>
		</table>
		</td>
		</tr>
		  <tr>
		  <td>
	  <table border="0" cellpadding="0" width="100%" cellspacing="0"  > 
        <tr>
<?php
	global $db;
	$sql="select s_id,s_nameb from s_friend where S_namea='".$chsh_web_name."' and s_lock=1 order by s_id desc";
	$rs=$db->query($sql);
	$num=$db->num_rows($rs);
	if($num==0) echo "";
	$nums=4;
	if($num<$nums){
		$j=$num;
	}else{
		$j=$nums;
	}
	for($i=0;$i<$j;$i++){
		$row=$db->fetch_array($rs);
	$us=$db->getrow("select * from S_users where S_name='".$row['s_nameb']."'");
?>  
          <td height="150" class="righttable02">
		  <table width="80" border="0" cellpadding="2" cellspacing="0">
              <tr> 
                <td height="73" align="left"><a href="<?php echo userlink('index',$row["s_nameb"])?>" target="_blank"><img src="<?php echo piclink("logo",$us["S_Logo"])?>" onerror="this.onerror=null;this.src='images/avatar/noface_small.gif'" width="92" height="126" border="0"></a></td>
              </tr>
              <tr> 
                <td height="20" align="left" class="lefttable03"><a href="<?php echo userlink('index',$row["s_nameb"])?>" target="_blank"><?php echo $us["S_RealName"]?></a></td>
              </tr>
            </table>
			
 </td>
<?php
}
?>  
        </tr>
		</table>
		</td>
		</tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="8"></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="righttable">
	  <tr>
	  <td>
	  <table border="0" cellpadding="0" cellspacing="0" class="righttable" >
        <tr> 
          <td class="righttable01" align="left"><img src="images/web/dl_01_02.jpg" width="9" height="9" align="absmiddle"> 
            <strong>我的相册</strong></td>
          <td align="right" class="righttable01"><a href="<?php echo userlink('pic',$chsh_web_name)?>" target=_blank><img src="images/web/more_01.gif" width="38" height="14" border="0" align="absmiddle">&nbsp;</a></td>
        </tr>
		</table>
		</td>
		</tr>
        <tr> 
		<td>
		<table border="0" cellpadding="0" cellspacing="0"  width="100%">
	      <tr>
<?php
	global $db;
	$sql="select * from s_pic where S_user='".$chsh_web_name."' order by s_id desc";
	$rs=$db->query($sql);
	$num=$db->num_rows($rs);
	if($num==0) echo "";
	$nums=4;
	if($num<$nums){
		$j=$num;
	}else{
		$j=$nums;
	}
	for($i=0;$i<$j;$i++){
		$row=$db->fetch_array($rs);
?>
          <td height="150" colspan="2" class="righttable02"><table width="80" border="0" cellpadding="2" cellspacing="0">
              <tr> 
                <td height="73" align="left"><a href="<?php echo getuserpic($row["S_User"],$row["S_ID"])?>" target=_blank><img src="<?php echo $row["S_Url"]?>" width="92" height="131" border="0"></a></td>
              </tr>
              <tr> 
                <td height="20" align="left" class="lefttable03"><a href="<?php echo getuserpic($row["S_User"],$row["S_ID"])?>" target=_blank><?php echo $row["S_User"]?></a></td>
              </tr>
            </table></td>
<?php
}
?>
	</tr>
	</table>
		</td>
        </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="8"></td>
        </tr>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="righttable">
        <tr> 
          <td class="righttable01" align="left"><img src="images/web/dl_01_02.jpg" width="9" height="9" align="absmiddle"> 
            <strong>我的留言</strong></td>
          <td align="right" class="righttable01"><a href="<?php echo userlink('book',$chsh_web_name)?>" target=_blank><img src="images/web/more_01.gif" width="38" height="14" border="0" align="absmiddle"></a>&nbsp;</td>
        </tr>
        <tr> 
          <td height="150" colspan="2" class="righttable02">
<?php
	global $db;
	$sql="select * from s_gbook where S_namea='".$chsh_web_name."' order by s_id desc";
	$rs=$db->query($sql);
	$num=$db->num_rows($rs);
	if($num==0) echo "";
	$nums=7;
	if($num<$nums){
		$j=$num;
	}else{
		$j=$nums;
	}
	for($i=0;$i<$j;$i++){
		$row=$db->fetch_array($rs);
	$us=$db->getrow("select * from S_users where S_name='".$row['S_Nameb']."'");
?>
		  <table width="98%" border="0" cellpadding="0" cellspacing="1" class="righttable06">
                    <tr> 
                      <td width="20%" rowspan="3" align="center" valign="top"><a href="<?php echo userlink('index',$row["S_Nameb"])?>" target="_blank"><img src="<?php echo piclink("logo",$us["S_Logo"])?>" onerror="this.onerror=null;this.src='images/avatar/noface_small.gif'" width="92" height="135" border="0"> </a>
                      </td>
                    </tr>
                    <tr> 
                      <td height="40" class="righttable04" style="word-break:break-all"> &nbsp;<?php echo str_decode(facehtml($row['S_Content']))?></td>
                    </tr>
                    <tr> 
                      <td align="right" class="righttable04"> 留言人：<a href="<?php echo userlink('book',$us["S_Name"])?>" target="_blank"><?php echo $us["S_RealName"]?></a>
                      &nbsp; 留言时间：&nbsp;<?php echo $row["S_AddTime"]?></td>
                    </tr>
                  </table>
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table> 

<?php
}
?>			 
			 </td>
        </tr>
		        <tr> 
          <td class="righttable01" align="left"><a href="<?php echo userlink('book',$chsh_web_name)?>"><img src="images/web/button01.gif" width="75" height="22" border="0" align="absmiddle"></a></td>
          <td align="right" class="righttable01"><a href="<?php echo userlink('book',$chsh_web_name)?>"><img src="images/web/more_01.gif" width="38" height="14" border="0" align="absmiddle"></a>&nbsp;</td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<table width="756" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="8"></td>
  </tr>
</table>
<table width="756" border="0" align="center" cellpadding="0" cellspacing="0" class="bottomtable">
  <tr> 
    <td><div align="center">
</div></td>
  </tr>
</table>