<!--#include file="conn.asp"-->
<!--#include file="Star.INC"-->
<!--#include file="style.asp"-->
<%
If session("PassWord")="" or session("UserName")="" or session("PassWord")=null or session("UserName")=null Then
	Response.Write ("<script>alert(' 错误!\n\n您还没有登陆或登陆超时，请先登陆。');javascript:top.window.close();</script>")
	Response.end
End If
stats=session("UserName")&"的音乐盒"
%>
<%
action=request("action")
set rs=server.createobject("adodb.recordset")
if action="add" then
	Musicid=request.QueryString("id")
	sql="select * from ylmv_Box where UserName='"&session("UserName")&"' and Musicid="&Musicid
	rs.open sql,conn,1,3
	if not rs.EOF then
		errmsg=errmsg+"<SCRIPT language=JavaScript>alert(' 你已经收藏了此歌曲了! ');javascript:top.window.close();</SCRIPT>"
		call error()
		response.end
	else
		set rs2=server.createobject("adodb.recordset")
		sql2="select * from ylmv_MusicList where id="&Musicid
		rs2.open sql2,conn,1,1
		if (rs2.EOF and rs2.BOF) then
			errmsg=errmsg+"<SCRIPT language=JavaScript>alert(' 请正确选择歌曲! ');javascript:top.window.close();</SCRIPT>"
			call error()
			response.end
		else
			Wma=rs2("Wma")
			MusicName=rs2("MusicName")
			Singer=rs2("Singer")
			Classid=rs2("Classid")
			SClassid=rs2("SClassid")
			NClassid=rs2("NClassid")
		end if
		rs2.close
		set rs2=nothing
		rs.AddNew
		rs("UserName")=session("UserName")
		rs("Musicid")=Musicid
		rs("MusicName")=MusicName
		rs("Singer")=Singer
		rs("Wma")=Wma
		if Wma<>"" then
			rs("Wma")=true
		end if
		rs("Classid")=Classid
		rs("SClassid")=SClassid
		rs("NClassid")=NClassid
		rs.Update
	end if
	rs.Close
	Response.Redirect "musicbox.asp?action=show"
elseif action="del" then
	id=request("id")
	set rs=conn.execute("delete FROM ylmv_Box where UserName='"&session("UserName")&"' and id="&id)
	Response.Redirect "musicbox.asp?action=show"
elseif action="show" or action="" then
%>
<head>
<title>音乐盒 - 最新流行歌曲在线试听 免费听歌 免费在线听歌 mp3免费下载 零距离音乐无线 让您的心重新获得释放 ::...</title>
<meta name="keywords" content=" wma, WMA, wma下载, wma试听, WMA下载, Mp3, MP3, mp3下载, MP3下载, mtv, MTV, flash, FLASH, 免费音乐下载, 免费音乐试听, 在线视听, 流行歌曲, 经典老歌, DJ舞曲, dj舞曲, 免费电影, 电影下载, 服务器租用"/>
<meta name="description" content="六万首音乐在线试听，百万网友喜爱的音乐网站"/>
<meta http-equiv=content-type content='text/html; charset=gb2312'>  
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/css.css" rel="stylesheet" type="text/css" />
<SCRIPT language=javaScript src="images/Js.js"></SCRIPT>
<SCRIPT src="js/Top.Js"></SCRIPT>
</head>
<!--分类栏目开始-->
  <table cellSpacing=0 cellPadding=0 width=970 border=0>
    <tr>
      <td width=12><IMG height=40 src="images/skin2/top/p1.gif" width=12></td>
      <SCRIPT language=jscript.encode src="Js/Class.js"></SCRIPT> 
      <td width=12><IMG height=40 src="images/skin2/top/p2.gif" width=12></td>
    </tr>
  </table>
<!--分类栏目结束-->
<iframe scrolling="no" topmargin="0" width="970" height="40" marginwidth="0" marginheight="0" frameborder="0" align="center" src="indexlogin.asp"></iframe>
<TABLE cellSpacing=0 cellPadding=0 width=970 align=center border=0>
  <TBODY>
    <TR>
      <TD><IMG height=7 src="images/skin1/menu_bg2.gif" width=970></TD>
    </TR>
    <TR>
      <TD background=images/skin1/addr.jpg><TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
          <TBODY>
            <TR>
              <TD align=middle width="5%"><IMG height=17 src="images/skin1/arrows2.gif" 
            width=16></TD>
              
              <TD width="95%">您现在的位置：<a href='./'><font color=#000000>音乐频道</font></a> <font color=#000000>>></font> <font color=#000000> 音乐盒</font>&nbsp;&nbsp;&nbsp;<marquee scrolldelay="2" scrollamount="2"width="530"><script src="jstopgd.asp"  ></script>
                    </marquee></TD>
            </TR>
          </TBODY>
      </TABLE></TD>
    </TR>
    <TR>
      <TD background=images/skin1/addr_line.jpg height=4></TD>
    </TR>
  </TBODY>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="200" valign="top" bgcolor="F7F7F7"><table width="100%" border="0" cellspacing="4" cellpadding="0">
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
        
<!--#include file="user_left.asp"-->
          <td align="center">&nbsp;</td>
        </tr>
      </table> </td>
    <td width="576" valign="top"><table width="100%" border="0" cellspacing="3" cellpadding="0">
        <tr> 
          <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><div align="center">秘密：每添加一首歌词并通过审核则可以多放两首(甚至更多)歌曲!</div></td>
              </tr>
              <tr>
                <td><div align="center"><a href="#" onclick='window.open("user_mod.asp","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=380,height=450");'><font color="#FF0000">点击申请个人音乐网</font></a></div></td>
              </tr>
              <tr>
                <td><table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><img src="images/liebiao_bg1.gif" width="770" height="35"></td>
                    </tr>
                    <tr>
                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="1" bgcolor="#CCCCCC"><img src="images/1x1.gif" width="1" height="1"></td>
                            <td><table width="100%" border="0" cellspacing="4" cellpadding="0">
                                <tr>
                                  <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolordark="#FFFFFF" bgcolor="#eeeeee">
                                      <tr bgcolor="#F7F7F7"> 
                                        <td height=25 colspan=8 align=center>音乐收藏列表</td>
                                      </tr>
<form name="form" onsubmit="javascript:return ting2008();" target="ting2008" action="playsong.asp">                                      
<%
'/////////////////////////////////////////////////////////////////////////////
'##############################################################################
%>                                   
                                        <tr bgcolor="#FFFFFF"> 
                                          <td width="40" height=25 align=center><font color="#333333">选择</font></td>
                                          <td width="246" height=25 align=center><font color="#333333">歌曲名字</font></td>
                                          <td width="70" height=25 align=center><font color="#333333">歌手</font></td>
                                          <td width="40" height=25 align=center><font color="#333333">试听</font></td>
                                          <td width="40" height=25 align=center><font color="#333333">手机</font></td>
                                          <td width="70" height=25 align=center><font color="#333333">VIP下载</font></td>
                                          <td width="40" height=25 align=center><font color="#333333">点歌</font></td>
                                          <td width="40" height=25 align=center><font color="#333333">删除</font></td>
<%
	sql="select * from ylmv_Box where UserName='"&session("UserName")&"'"
	rs.open sql,conn,1,1
	if rs.EOF and rs.BOF then
%>
                                        
                                        <tr bgcolor="#FFFFFF"> 
                                          <td height="25" colspan=8 align=center><font color="#000000">你尚未收藏任何歌曲</font></td>
                                        </tr>
<%
	else
    do while not rs.EOF 
	i=i+1
%>
<tr bgcolor="#FFFFFF"> 
                                          <td height="25" align="center"> <input type="checkbox" name="id" value="<%=rs("musicid")%>"></td>
                                          <td height="25" ><font color="#333333"><%=i%>.<a href='MusicPlay/<%=rs("NClassid")%>/ylmv_<%=rs("musicid")%>.html' target='Ylmv'><font color="#333333"><%=rs("MusicName")%></font></a></font></td>
                                          <td width="70" height=25 align=center><a href='Special/ylmv_<%=rs("NclassID")%>.html' target=_'blank'><font color="#333333"><%=rs("Singer")%></font></a></td>
                                          <td width="40" height=25 align=center><a href='MusicPlay/<%=rs("NClassid")%>/ylmv_<%=rs("musicid")%>.html' target='Ylmv'><font color="#333333">试听</font></a></td>
                                          <td width="40" height=25 align=center><a href='Http://www.caishow.com/ring_body.asp?f=61780&search=<%=rs("MusicName")%>' target=_'blank'><font color="#333333">铃声</font></a></td>
                                          <td width="70" height=25 align=center><a href='Yxdown.asp?id=<%=rs("musicid")%>' target=_'blank'><font color="#333333">VIP下载</font></a></td>
                                          <td width="40" height=25 align=center><a href='dg/add.asp?MusicID=<%=rs("musicid")%>&musicname=<%=rs("MusicName")%>' target=_'blank'><font color="#333333">送友</font></a></td>
                                          <td width="40" height=25 align=center><a href="musicbox.asp?action=del&id=<%=rs("id")%>"><font color="#333333">删除</font></a></td>
                                        </tr>
<%
'####################################################################
'//////////////////////////////////////////////////////////////////////
%> 
<%
	rs.MoveNext
    loop
%>
<tr bgcolor="#FFFFFF"> 
                                          <td height="30" colspan="8" align="center"> 
                                  <input type="button" name="chkall"  value=" " onclick="CheckAll(this.form)" title="选择显示的所有歌曲" class="anniou" style="width: 62px; height: 23px; background-image: url('images/img/ly1.gif'); border-style: none; border-width: medium">
                                  <input type="button" name="chkOthers" value=" " onclick="CheckOthers(this.form)" title="反向选择歌曲" class="anniou"  style="width: 62px; height: 23px; background-image: url('images/img/ly2.gif'); border-style: none; border-width: medium">
                                  <input type="submit" name="player" value=" " title="请先选择你想听的歌曲后再点击播放" style="width: 62px; height: 23px; background-image: url('images/img/ly3.gif'); border-style: none; border-width: medium">
                                          </td>
                                        </tr>
                                    </form>   
  <%
end if
%>
                                   </table></td>
                                </tr>
                              </table></td>
                            <td width="1" bgcolor="#CCCCCC"><img src="images/1x1.gif" width="1" height="1"></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td valign="top" bgcolor="#CCCCCC"><img src="images/1x1.gif" width="1" height="1"></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<SCRIPT src="js/bottom.Js"></SCRIPT>
<% 
	
	rs.Close
else
	errmsg=errmsg+"<SCRIPT language=JavaScript>alert(' 操作错误! 请联系管理员. ');javascript:top.window.close();</SCRIPT>"
	founderr=true
end if
set rs=nothing
conn.close
set conn=nothing
if founderr=true then
	call error()
end if
%>