<!-- #include file="include/con_music.asp" -->
<!-- #include file="include/con_music_other.asp" -->
<!-- #include file="include/jk_emoney.asp" -->
<% 
dim temp1,furl,session_view,lis_true,music_power,music_emoney
tit="试听歌曲"
id=trim(request.querystring("id"))
if not(isnumeric(id)) then call music_error(" 请先选择歌曲！")

call web_head(0,0,4,0,0)
session_view="jk"&joekoe_cms.rand_num(8)
session(joekoe_cms.web_cookies&"_music")=session_view
if id="" then  call music_error("")
  if instr(id,",")>0 then
    id=replace(id," ","")
    sql="select * from music_song where id in ("&id&")"
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3
    while not rs.eof
    
    temp1=temp1&"DATA("""&rs("singer")&" - "&rs("name")&""",""music_geturl.asp?id="&rs("id")&"&session_get="&session_view&"&action=series"");"&vbcrlf    
',"""&server.URLEncode("upload/"&rs("smi")&"")&"""
    rs.movenext
    wend
 
  else
    sql="select * from music_song where id="&id 
    call joekoe_cms.exec(sql,-1)
    rs.open sql,conn,1,3 
    if rs.eof then 
      response.clear
      response.write joekoe_cms.js_put("alert(""错误的ID参数：\n\n您勿向本站提交非法信息！"");window.close();",1) 
    else 
      
      temp1="DATA("""&rs("singer")&" - "&rs("name")&""",""music_geturl.asp?id="&id&"&session_get="&session_view&""");"
',"""&server.URLEncode("upload/"&rs("smi")&"")&"""
      rs("hits")=rs("hits")+1 
      rs.Update 
    end if 
    rs.Close
  end if 
set rs=nothing
response.clear
%>
START();
TYPE("歌曲试听");
<%=temp1%>
END();