<!--#include file="function.asp"-->
<%CheckAdmin3%>
<!--#include file="conn.asp"-->
<!--#include file="Star.inc"-->
<%

set rs=server.createobject("adodb.recordset")
founerr=false


act=request("act")

select case act
    case "SetIsGood"       
     sql="select IsGood from MusicList where id="&request("id") 
		rs.open sql,conn,1,3
		if not rs.EOF then
			if rs("IsGood")=true then
				rs("IsGood")=false
			else
				rs("IsGood")=true
			end if
			rs.update
		end if
		rs.close
    case "isCheck"         
      sql="select isCheck from MusicList where id="&request("id") 
		rs.open sql,conn,1,3
		if not rs.EOF then
			if rs("isCheck")=1 then
				rs("isCheck")=0
			else
				rs("isCheck")=1
			end if
			rs.update
		end if
		rs.close
   end select


	
	set rs=nothing
	conn.close
	set conn=nothing
response.write "<script language=javascript>location.href='javascript:history.go(-1)';</script>"
%>






