<!--#include file="chkhk.asp" -->
<!--#include file="conn.asp"-->
<!--#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
	albumid=request.QueryString("id")
	sql="select * from ylmv_albumbox where UserName='"&session("UserName")&"' and albumid="&albumid
	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_special where specialid="&albumid
		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
			
			Name=rs2("Name")
			NClass=rs2("NClass")
			NClassid=rs2("NClassid")
			pic=rs2("pic")
			info=rs2("intro")
		end if
		rs2.close
	        set rs2=nothing 
		rs.AddNew
		rs("UserName")=session("UserName")
		rs("albumid")=albumid
		rs("albumName")=name
		rs("Singer")=NClass
		rs("NClassid")=NClassid
		rs("pic")=pic
		rs("info")=info
		rs.Update
	end if
	rs.Close
		Response.Redirect "albubox.asp?action=show"
elseif action="del" then
	id=request("id")
	set rs=conn.execute("delete FROM ylmv_albumbox where UserName='"&session("UserName")&"' and id="&id)
	Response.Redirect "albubox.asp?action=show"
	
elseif action<>"del" and action<>"add" 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="950" 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" bgcolor="F7F7F7">
                                      <tr> 
                                        <td height="25" align="center"><font color="#333333">专辑收藏列表</font></td>
                           </tr>            
<%
'///////////////////////////////////////////////////////////////////////////////////////
'#####################################################################################
%>
<%
	sql="select * from ylmv_albumbox where UserName='"&session("UserName")&"'"
	rs.open sql,conn,1,1
	if rs.EOF and rs.BOF then
%>
<tr>
                                        <td height="25" align="center" bgcolor="#FFFFFF"><font color="#333333">你尚未收藏任何专辑</font></td>
                                      </tr>
<%
'///////////////////////////////////////////////////////////////////////////////////////
'#####################################################################################
%>
 <%
	else
    do while not rs.EOF 
	i=i+1
%>
<tr>
                                        <td height="25" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="4" cellpadding="0">
                                            <tr>
                                              <td width="72%"><table>
                                                  <tr> 
                                                    <td> <font color="#333333"><b><font face=Verdana, Arial, Helvetica, sans-serif size=4><%=i%></font></b></font></td>
                                                  </tr>
                                                  <tr> 
                                                    <td><font color="#333333">专辑名字：<A href="Musiclist/ylmv_<%=rs("albumid")%>.html"><%=rs("albumName")%></a> </font></td>
                                                  </tr>
                                                  <tr> 
                                                    <td><font color="#333333">演唱歌手：<%=rs("Singer")%></font></td>
                                                  </tr>
                                                  <tr> 
                                                    <td><font color="#333333">删除收藏：<a href="albubox.asp?action=del&id=<%=rs("id")%>">删除</a></font></td>
                                                  </tr>
                                                  <tr> 
                                                    <td><A href="Musiclist/ylmv_<%=rs("albumid")%>.html"><font color="#FF0000">点击进入欣赏此专辑</font></a></td>
                                                  </tr>
                                                </table></td>
                                              <td width="28%"><font color="#333333"><a href="Musiclist/ylmv_<%=rs("albumid")%>.html"><img src="<%=rs("pic")%>" width="100" height="100" border=0 ></a></font></td>
                                            </tr>
                                          </table></td>
                                      </tr>
<%
'###########################################################################                 ' ///////////////////////////////////////////////////////////////////////////////
%>
<%
	rs.MoveNext
    loop
%>
                                          </table>
<%
end if
%>
</td>
                                      </tr>
                                      <tr>
                                        <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
                                      </tr>
                                        </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
%>
