<!-- #include file="include/config.asp" -->
<!-- #include file="include/other.asp" -->
<!-- #include file="../include/jk_emoney.asp" -->
<%
dim session_view,lis_true,l_power,l_emoney,emsg,p_id,powerchecks
tit="试听歌曲"
id=trim(request.querystring("id"))
if id="" then 
call music_error(" 请先选择歌曲！")
response.End()
end if

call web_head(0,0,4,0,0)

if instr(id,",")>0 then
  i=0
  id=replace(id," ","") 
  if not(isnumeric(id)) then call music_error(" 请先选择歌曲！")
  
   if not music_se.music_free then '不免费时处理权限

  sql = "select * from music_song where id in ("&id&")"
  set rs=joekoe_cms.exec(sql,1)
  do while not rs.eof
    i=i+1
    l_power=rs("power")
    l_emoney=rs("emoney")
	if powercheck(l_power)=false then
    response.write joekoe_cms.js_put("alert(""错误信息：\n\n部分内容你没有足够的权限操作！\n\n也可能您还没有注册和登陆本站。"");",1)
    response.write joekoe_cms.js_put("window.close();",1)
	response.end
    end if
    if emoneycheck(l_emoney,n_sort,rs("id"))=false then
	response.write joekoe_cms.js_put("alert(""错误信息：\n\n部分内容你没有购买,请所有购买后再操作！\n\n也可能您还没有注册和登陆本站。"");",1)
    response.write joekoe_cms.js_put("window.close();",1)
	response.end
    end if
    rs.movenext
  loop
  rs.close
  
  end if 
else

    if not music_se.music_free then '不免费时处理权限

  sql = "select power,emoney,name from music_song WHERE id="&id
  set rs=joekoe_cms.exec(sql,1)
  l_power=rs(0)
  l_emoney=rs(1)
  if powercheck(l_power)=false then
    response.write joekoe_cms.js_put("alert(""错误信息：\n\n您没有足够的权限进行刚才的操作！\n\n也可能您还没有注册和登陆本站。"");",1)
    response.write joekoe_cms.js_put("window.close();",1)
   end if
  call emoney_notes(l_power,l_emoney,n_sort,id,2,"")
  rs.close
end if

end if




session_view="jk"&joekoe_cms.rand_num(8)
session(joekoe_cms.web_cookies&"_music")=session_view
response.clear



%>

<html>
<NOSCRIPT><IFRAME src="index.asp"></IFRAME></NOSCRIPT>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">
<title>试听歌曲- 音乐试听</title>
</head>
<BODY scroll=no style="MARGIN: 0px" oncontextmenu="return false">
<INPUT type=hidden id=session_view value='<%response.write session_view%>'>
<IFRAME frameBorder=0 name=window_left scrolling="NO" src=player.asp?id=<%response.write id%>&session_view=<%response.write session_view%>  style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:100%;Z-INDEX:2"></IFRAME>
</body></html>

<%
call web_end(0,1)
%>