    <div class="content">
        
	<div class="mid">
		<h3>音乐盒</h3>
		<table class="song" cellpadding="0" cellspacing="0" id="list">
			<tr>
				<th><input type="checkbox" onClick="if(document.getElementById('idtop').checked==true){setCboxValue('ckid',1);return;}else{setCboxValue('ckid',2);return;};" id="idtop"   name="ckid" value="" /></th><th>歌曲名称</th><th>分类</th><th>歌手</th><th>收藏时间</th><th>试听</th><th>下载</th>
			</tr>
<?php
global $db;
	$sql="select * from ".Getdbname('fav')." where CS_user='".$cscms_name."' order by cs_id desc";
		$Arr=getuserpage($sql,"20",$op,$cscms_uid,$pages);//sql,每页显示条数
		$result=$db->query($Arr[2]);
                $num=$db->num_rows($result);
		if($result){
			while ($row = $db ->fetch_array($result)){
                        $class=$db->getrow("select * from ".Getdbname('class')." where CS_ID=".$row['CS_CID']."");
                        $rowr=$db->getrow("select * from ".Getdbname('dance')." where CS_ID=".$row['CS_DID']."");
?>
			<tr>
				<td><input type="checkbox" name="ckid" value="<?php echo $row["CS_ID"]?>" /></td>
				<td><a href="http://<?php echo CS_WebUrl.LinkUrl('play','dance','id',$row['CS_CID'],$row['CS_DID'])?>" target="_blank" title="<?php echo $rowr["CS_Name"]?>"><?php echo $rowr["CS_Name"]?><?php if($rowr["CS_Reco"]>1) echo '<img src="images/tj.gif" border="0" align="absmiddle" >';?></a></td>
				<td><?php echo $class["CS_Name"]?></td>
				<td><a href="<?php echo userlink('index',getuser('uid',$row['CS_User']))?>" target="_blank"><?php echo $rowr['CS_User']?></a></td>
				<td><?php echo GetTime($row["CS_AddTime"])?></td>
				<td><a href="http://<?php echo CS_WebUrl.LinkUrl('play','dance','id',$row['CS_CID'],$row['CS_DID'])?>" target="_blank" title="试听"><img src="images/list1.gif" alt="试听" /></a></td>
                                <td><a href="javascript:Popsboxif('下载歌曲',450,180,'http://<?php echo CS_WebUrl.CS_WebPath?>public/down.php?id=<?php echo $rowr['CS_ID']?>');" title="下载"><img src="images/list2.gif" alt="下载" /></a></td>
			</tr>
<?php
			}
		}
?>
		</table>
		<div class="pl_button yc_page">
				<dl>
                        	     <a href="javascript:clk('all','list')" class="brow">全选</a>
				     <a  href="javascript:clk('un','list')"  class="brow">反选</a>
				     <a href="javascript:;" onClick="clk('play','list');"  class="brow">连续播放</a>
				</dl>
		</div>
		<div class="page_list"><?php if($num>0) echo $Arr[0];?></div>
	</div>
 
    </div>

